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 ...Security Exception Error after installSecurity Exception Error after install
Previous
 
Next
New Post
1/28/2008 1:37 PM
 
I've given the permissions to IUSR_ and NETWORK_SERVICE, I've also tried to give them to EVERYONE but I always get this message:

(I have instaled over XP, SQL Express w/ SP2)

Can you please help me?

Thanks in advance,

Adalberto



Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

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

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.IO.Path.GetFullPath(String path) +98
DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.GetFileName(String FileName) +136
DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.Insert(String CacheKey, Object objObject, Boolean PersistAppRestart) +37
DotNetNuke.Entities.Host.HostSettings.GetHostSettings() +325
DotNetNuke.Common.Globals.GetHostPortalSettings() +10
DotNetNuke.Common.Globals.GetPortalSettings() +79
DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule.Init(HttpApplication application) +198
System.Web.HttpApplication.InitModulesCommon() +66
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +814
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +243
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +106
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +340





--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832


 
New Post
1/28/2008 2:42 PM
 

This particular issue has to do with the permissions allowed to your application by the .NET Framework, not with Windows file permissions.  It seems that your web application is hosted in an environment that isn't allowed to access the file system.  Are you using a hosting provider, or are you hosting it yourself?

The first place to check is your web.config, make sure that the trust element is either commented out or set to Medium or Full.  If so, you'll need to get access to the machine.config to examine what trust level the server is set to.

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
1/29/2008 9:38 AM
 

I am getting the same issue trying to set up at 1and1.com.

The trust level in the web.config for DNN is commented out, but if I set it here, I can override the machine.config correct?

If so, what do I want the setting to be for practical public site use?

Thanks for this comment - it is hitting the spot.

Leif

 
New Post
1/29/2008 9:49 AM
 

I guess I am screwed, I get a error that my web.config can't impact the trust section excerpt is

"the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file"

So I guess I can't get DNN up running there with all capabilities. Much of it can run, just not the things relating to users (so far -not sure what I don';t know yet...)

Thanks

Leif

 
New Post
1/29/2008 10:25 AM
 

Actually, you can't override the machine.config with a more priviledged trust level in your web.config.  A Medium trust level is what you should want for a practical public site.  Looking through the forums, it appears that there are a number of people who have had issues and given up with 1and1, thought there is also a guide for successful 1and1 installation (from 2006).

I hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Security Exception Error after installSecurity Exception Error after install


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