Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryError when uploading a new documentError when uploading a new document
Previous
 
Next
New Post
9/2/2005 7:46 AM
 
Anyone come against this error when uploading a new document?

Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed

The server is running on medium trust, and the DNN version is 3.1.1.

Cheers

Ken
 
New Post
9/2/2005 8:11 AM
 
The full error from the log is detailed below

AssemblyVersion: 03.01.01
Method: N/A - Reflection Permission required
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: ***********************
UserID: *
UserName: ***************
ActiveTabID: 75
ActiveTabName: Downloads
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.*******************.co.uk/Other/Downloads/tabid/75/ctl/UserUpload/mid/437/Default.aspx
ExceptionGUID: a72af9ae-7969-438a-b535-c14870723f8f
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
Message: DotNetNuke.Services.Exceptions.PageLoadException: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. ---> System.Security.SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. at Gooddogs.Repository.RepositoryBL.AddFile(String strFileNamePath, String strExtension, String strImagePath, String strImageExtension, RepositoryInfo pRepository, String strContentType, String strImageContentType) at Gooddogs.Repository.RepositoryBL.UploadFiles(Int32 PortalID, Int32 ModuleID, String fileURL, String imageURL, Object objFile, Object objImageFile, RepositoryInfo pRepository) at Gooddogs.Repository.UserUpload.btnUpdate_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace ---
StackTrace:
Source:

 
New Post
9/2/2005 8:39 AM
 
The current version ( 3.0.16 ) does not work in Medium Trust. I am working to understand the issue and will hopefully have a fix soon.
 
New Post
9/2/2005 9:05 AM
 
Thanks for the info. If you need any help to track it down please let me know.

Ken
 
New Post
9/8/2005 7:06 AM
 

Hello,

I have the same error message - Did you solve the problem?

I am programming on a file upload module that creates a directory and puts the file into this directory. A file upload into the rootdir works fine.....

Cheers

Olli

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryError when uploading a new documentError when uploading a new document


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out