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