Friday, February 10, 2012
  Search
Support Forum
Strange error when uploading a file
Last Post 03 Sep 2008 05:14 PM by Chad Rosenbohm. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Nico
New Member
New Member
Send Private Message
Posts:1


--
11 Aug 2008 06:03 PM  
Hello, I get the following error when uploading a file (see bellow). It seems like a credential error but I can't pinpoint the problem. The site is hosted as CrystalTech (shared hosting), the IIS account is set to Read/write on the DNN folder and all subdirectories. The only particular this is the site is sitting is a virtual directory (/tour). Also to prove we have the right credential, we are able to install new modules to this DNN installation.

Does anybody have any idea of the problem?

Thanks,
Nico

--
AssemblyVersion
: 04.08.03
PortalID: 0
PortalName: ----------
UserID: 1
UserName: caffeine
ActiveTabID: 72
ActiveTabName: Your Stories
RawURL: /tour/YourStories/tabid/72/Default.aspx
AbsoluteURL: /tour/Default.aspx
AbsoluteURLReferrer: ---
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 3b5bdf61-05b9-4bfe-8789-9766493399bf
InnerException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Code5Systems.FormMaster.Business.FormDataController.GetFormPostResults
StackTrace:
Message: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at Code5Systems.FormMaster.Business.FormDataController.GetFormPostResults(Int32 moduleId, Panel pnlForm, String modulePath, Int32 portalId, Int32 userId, Int32 formDataId) at Code5Systems.FormMaster.FormMaster.Submit_Click(Object sender, CommandEventArgs e) The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: MyComputer
Source:
Server Name: WEBE40


Steve Provencher
Moderator
Advanced Member
Advanced Member
Send Private Message
Posts:681


--
12 Aug 2008 12:02 PM  
Make sure that the Process Running the Web Application has full permissions on the /Portals folder on the web.

See your host on this issue. We have seen this before and Permissions is the issue.

Steve


Chad Rosenbohm
New Member
New Member
Send Private Message
Posts:2


--
03 Sep 2008 03:50 PM  
I am experiencing the same problem.  I have a clean install of DNN 4 on my laptop.  I have given EVERYONE full permissions on the entire dnn website folder and all subdirectories.  The only module i have installed is the latest Form Master PA. 

Any suggestions?

Thanks!

chadr@japrinting.com

Attachment: 193505785671.zip

Chad Rosenbohm
New Member
New Member
Send Private Message
Posts:2


--
03 Sep 2008 05:14 PM  

I found an Error in Line 603: .\compontents\FormDataController.vb

The code below errors out because the oFormFileDataInfo.FullFilePath does not have a value.  I put a try catch around this statement and fixed it.

If File.Exists(HttpContext.Current.Server.MapPath(oFormFileDataInfo.FullFilePath)) Then

File.Delete(HttpContext.Current.Server.MapPath(oFormFileDataInfo.FullFilePath))

End If

Thanks!

Chad



You are not authorized to post a reply.

Active Forums 4.2
Copyright 2004-2012 Code 5 Systems, LLC.