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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...System.Security.Permissions.FileIOPermission problem in 4.5.1System.Security.Permissions.FileIOPermission problem in 4.5.1
Previous
 
Next
New Post
4/18/2007 9:14 AM
 

I installed 4.5.1 source from scratch with a new SQL 2000 DB on my WinXP development PC.

DNN comes up fine and I log into the site. I then copy some files to the portals/_default folder and go to file manager to re-sync. After I re-sync I get

DotNetNuke Error: - Version 04.05.01


Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

I have double checked file permissions and everything there is fine. I have googled this and found some suggestions to change web.config entry:

    <trust level="Medium" originUrl=".*" />
to

    <trust level="Full" originUrl=".*" />

After I have done this I restart the app and bingo, all works. I then change the trust level back to medium, restart, and it still works! I added a few more files and use file manager again to reproduce the issue, but it won't fail now.

I want to move this new site to a hosting provider and I am somewhat concerned that the problem willl re-occur there. Can anyone shed more light on this??

 

 

 
New Post
4/18/2007 2:11 PM
 

That is a very interesting issue.  You should be ok as long as the ASP.NET process has full access to the directory.  AFAIK the trust level doesn't have "much" effect on the file operations, however when in doubt I'd go with full trust...


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/30/2007 11:22 AM
 

I have received this error as well.  Since the trust level is normally set in machine.config I simply commented this out and all worked as expected. I believe the default is Full so commenting this line out has the same effect as changing this to Full in your web.config. Just another way of handling this.


Vinny Malanga
IMI Software, Inc.
 
New Post
5/12/2007 8:21 PM
 

Hi All,

I had a similar issue and it was caused by insufficient NTFS permissions.  See my other post here.

/W

 
New Post
5/22/2007 12:10 PM
 

I am currently having this issues as well.  My website is hosted with 1and1 and after installing 4.5.1 I get this error very frequently when browsing the site.

Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

 

1and1 support has said that the site does not run at full trust, and I have commented out that line in the web.config.

 

There are several other setting that they had me change to the web.config based on their FAQ for install DNN 3.0.13.  Other than that they have be very unhelpful and have suggested I install version 3.0.13 or get a dedicated server from them so that I can run it at full trust.

Here are the other settings I have adjusted in the web.config based on their faq:

 

 

c. Enable impersonation.
<identity impersonate="true"/> already exists in the Web.config file,
but it is commented out. Un-comment it by removing <!-- It should look as follows:

<identity impersonate="true"/> 
<!--
<authentication mode="Windows">
</authentication>
-->



d. Disable changes in maximum file size. (Very important!)
The tag <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" />
has to be commented out. Use <!-- and -->

e. Change database owner.
In the section <data defaultProvider="SqlDataProvider">, the string
databaseOwner="dbo" has to be replaced with databaseOwner="dbo123456789" (the
database username)

 

Also per their instructions I have granted all permissions to the IUSR and Network Services.

 

Does anyone have any other suggestions?  I have looked over the existing posts but they have not resolved my issue.  1and1 support has been fairly unhelpful, but I really don't what to take the time to switch providers at the moment.

 

 

 

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...System.Security.Permissions.FileIOPermission problem in 4.5.1System.Security.Permissions.FileIOPermission problem in 4.5.1


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