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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...OK...Now I Am FrustratedOK...Now I Am Frustrated
Previous
 
Next
New Post
4/20/2006 4:33 PM
 

Hi -

I was wondering if anyone can help me out here...

I am trying to install DNN 4.03 with the files located on a NAS drive. At first I got a lot of errors like “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.”  And  “System.Security.SecurityException”  I fixed this problem by changing the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config to use the low trust template.

Now I get the error:

Compiler Error Message: BC30451: Name 'Config' is not declared.

Source Error:

 Dim AutoUpgrade As Boolean

If Config.GetSetting("AutoUpgrade") Is Nothing Then

AutoUpgrade = True

Else

 (I used the  "Install DNN" not the source)

·        I used Winternals FileMon  on the iis server to check permissions and everything seems ok.

·        The NAS security is not set (open) and it does not prompt for a username and password when trying to access a drive

·        I can serve HTML pagers

 

I do get an error in my event log

Event Type:            Warning

Event Source:            ASP.NET 2.0.50727.0

Event Category:            Web Event

Event ID:            1310

Date:                4/20/2006

Time:                2:06:50 AM

User:                N/A

Computer:            XXXXXX

Description:

Event code: 3008

Event message: A configuration error has occurred.

Event time: 4/20/2006 2:06:50 AM

Event time (UTC): 4/20/2006 6:06:50 AM

Event ID: 85051c69998246e0aa48f9a6e1b91752

Event sequence: 4

Event occurrence: 2

Event detail code: 0

 

Application information:

    Application domain: /LM/W3SVC/1410509654/Root-1-127899866820712427

    Trust level: Full

    Application Virtual Path: /

    Application Path: \\XXX.XXX.XXX.XXX \Web\

    Machine name: XXXXXX

 

Process information:

    Process ID: 1632

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

 

Exception information:

    Exception type: ConfigurationErrorsException

    Exception message: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (\\XXX.XXX.XXX.XXX \Web\web.config line 55) (\\XXX.XXX.XXX.XXX \Web\web.config  line 55)

 

Request information:

    Request URL: http://www.xxx.com/Home/tabid/58/Default.aspx

    Request path: /Home/tabid/58/Default.aspx

    User host address: xxx.xxx.xxx.xxx

    User: 

    Is authenticated: False

    Authentication Type: 

    Thread account name: NT AUTHORITY\NETWORK SERVICE

 

Thread information:

    Thread ID: 1

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: False

    Stack trace:    at System.Web.Configuration.HttpModuleAction.get_Entry()

   at System.Web.Configuration.HttpModulesSection.CreateModules()

   at System.Web.HttpApplication.InitModules()

   at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)

   at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)

   at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)

   at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)

 Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 

Thanks -

John

 
New Post
4/20/2006 4:41 PM
 

Dotnetnuke can work in a partial trust environment, but requires medium trust (it will not work with low - in fact very little will work in low, including sql server access). Please note, when you change the security context of web applications (either via web.config or machine.config), you must recycle the application, either by unloading the application pool, or doing an IISRESET. Please take a look at the "DotNetNuke Code Access Security.pdf" doc in the documentation folder for further details on code access security.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/21/2006 6:20 AM
 

Hi - Thanks for your response

 

I changed my web.config to trust level="Medium"

 

and also

 

<IPermission class="WebPermission" version="1" Unrestricted="true" />

 

And went back to the same old error:

 System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral,”

 

 

I when changed the:

 

  <IPermission    class="FileIOPermission"                            

To reflect my UNC path and got a different error:

“Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed”

 

 

 

Reading on the internet… this means that I am trying to use a shared drive to serve the files…But that is what I am trying to accomplish?

 

Any help, thoughts or comments would be appreciated

 

Thanks - John

 

 
New Post
4/21/2006 9:23 AM
 

ah, that's the problem. .net requires sufficent permissions to open/execute files (see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/faq111700.asp for why, and http://www.gnonug.org/Support/FAQ/85.aspx for how to tweak permissions)

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...OK...Now I Am FrustratedOK...Now I Am Frustrated


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