HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...System.Security.Permissions.FileIOPermission after moving the websiteSystem.Security.Permissions.FileIOPermission after moving the website
Previous
 
Next
New Post
5/20/2009 9:02 PM
 

hi experts,

I moved the website from one hosting plan under luckyregister.com to another hosting plan, and I'm getting an error Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. I did not make any changes to website. the website was created for me by another person. Here is a details of error:

 

AssemblyVersion 04.08.04 PortalID 0 PortalName Northeastern Wisconsin's Local Builder/Remodeler Rating Guide UserID -1 UserName ActiveTabID 36 ActiveTabName Home - Green Bay Builder Ratings RawURL /home/default.aspx AbsoluteURL /home/default.aspx AbsoluteURLReferrer UserAgent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729) DefaultDataProvider DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID 204c38fc-7eb5-4937-819a-d0130081b76d 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 System.Security.CodeAccessSecurityEngine.Check StackTrace Message DotNetNuke.Services.Exceptions.PageLoadException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ---> 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 System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) at DotNetNuke.Modules.Repository.RepositoryBL.SetRepositoryFolders(Int32 ModuleId) at DotNetNuke.Modules.Repository.RepositoryDashboard.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 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 --- End of inner exception stack trace --- Source

 

Thank you for youe help in advanced.


 
New Post
5/21/2009 7:34 AM
 

Make sure, the ASP.net account ("Network service" by default) has full permissions on DNN installation folder including ALL subfolders and files. you may need to reapply permissions after moving the site.


Cheers from Germany,
Sebastian Leupold (DotNetNuke MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

 
New Post
5/21/2009 9:13 AM
 

The only persmssion/Settings   that I can change are:

1) IIS

     a) Anonymous Access (Yes/No)

     b) Set Application (Yes/No)

     c) Directory Browsing (Yes/No)

2) File Permissions

    a) Inherit from Parent

    b) Read

   c) Write

 

 I reapplied settings/permissions numourous times. Still no luck...

Thank you!

 
New Post
5/21/2009 9:46 AM
 

 it's file permissions for the installation directory (using windows file manager). Grant full permission to ASP.Net account ("Network Service" by default).


Cheers from Germany,
Sebastian Leupold (DotNetNuke MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

 
New Post
5/21/2009 10:12 AM
 

In the file manager the only permissions I can set are Read, Write, and Inherit.  There is not place in the hosting control panel specify permission for ASP.NET acocunt. I have FTP access, but you cannot set permissions using FTP. I am a little bit confused...OD i need to call the hosting company to reset it ?

 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...System.Security.Permissions.FileIOPermission after moving the websiteSystem.Security.Permissions.FileIOPermission after moving the website


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Start  Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.