Subject: System.Security.SecurityException
Prev Next
You are not authorized to post a reply.

AuthorMessages
jbevUser is Offline
New Poster
New Poster
Posts:3

07/26/2010 3:20 PM  

Been working on this DNN install for the longest time.  Could really use some help on this...


Environment:

- Win 2003 R2 Service Pack 2

- IIS 6.0

- SQL 2005 Server

- Server is part of a domain

- DNN 5.4.4

- .NET 3.5 SP1 installed


Server Error in '/DNNMedBill' Application.

Security Exception

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() +58 
System.AppDomainSetup.VerifyDir(String dir, Boolean normalize) +93 
System.AppDomain.get_BaseDirectory() +33 
DotNetNuke.Common.Initialize.InitializeApp(HttpApplication app) +291 
DotNetNuke.Common.Initialize.Init(HttpApplication app) +145 
DotNetNuke.Common.Global.Global_BeginRequest(Object sender, EventArgs e) +560 
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 

- Logged in as local administrator during install

- Set full control to DNN folder to "network services"

- Set modify permissions to IUSR_SERVERNAME

- DefaultAppPool Identity is set to the predefined "network service"

- Tried re-register ASP.NET with IIS and restarted defaultwebsite and DefaultAppPool

 

I checked the event log of the server and saw this

Application information:
    Application domain: /LM/W3SVC/1/Root/DNNMedBill-4-129243967985679072
    Trust level: WSS_Minimal<---- Would this be causing problems?
    Application Virtual Path: /DNNMedBill
    Application Path: D:\DNNMedBill\
 

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

07/26/2010 3:25 PM  
My guess is that your trust level is an issue.

Partial trust is ok, but Minimal isn't good.

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
jbevUser is Offline
New Poster
New Poster
Posts:3

07/26/2010 3:44 PM  
Do I need to change the trust level in the web.config file? I didn't make any changes to the trust level for the DNN web.config file?

Sharepoint is installed on this server, would sharepoint be causing conflict?
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

07/26/2010 3:49 PM  
It is possible that Sharepoint is doing it. I believe the trust leve can be set in IIS.....

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
jbevUser is Offline
New Poster
New Poster
Posts:3

07/26/2010 9:15 PM  
Just a follow up. Finally got it working, ended up creating a whole new IIS website then added a host header. Thanks for
taking the time to help out Mitchel.
chrisadamUser is Offline
New Poster
New Poster
Posts:3

08/30/2010 1:14 AM  

 

  1. On the Web server, open Administrative Tools, and then double-click Microsoft .NET Framework Configuration.
  2. Expand Runtime Security Policy, expand Machine, and then expand Code Groups.
  3. Right-click All_Code, and then click New.
  4. Select Create a new code group. Give your code group a relevant name, such as the name of the applications share. Click Next.
  5. In the Choose the condition type for this code group list, select URL.
  6. In the URL box, type the path of the share in the following format:
    file:////\\computername\sharename\*
    Note Replace computername with the name of the computer that is hosting the remote share. Replace sharename with the name of the share.
  7. Click Next. On the next page, select Use an existing permission set, and then selectFullTrust.
  8. Click Next, and then click Finish.
  9. Restart Microsoft Internet Information Services (IIS) to restart the ASP.NET worker process.

__________________________________________________________________

 

Want to get-on Google's first page and loads of traffic to your website? Hire a SEO Specialist from SKG Technologies [url=http://www.skgtechnologies.com/]seo pecialist [/url]

 

You are not authorized to post a reply.
Forums >Development Discussion >DotNetNuke > System.Security.SecurityException



ActiveForums 3.7