I designed a dnn website on my laptop. I am working with Windows XP, IIS 5.1, ASP.NET 2.0 and DNN4.3.6.
Now I want to install the website on our server. The server works with Windows 2003, IIS 6.0, ASP.NET 2.0.
The following steps are made:
- Copy the DNN directory to the server,
- Copy the SQL database to our server and attach it,
- Setup permissions of the DNN directory,
- Setup IIS.
First I couldn't select ASP.NET 2.0 inside IIS 6.0. After re-register ASP.NET 2.0 the select was made automatically.
When opening the website the following error occures:
Server Error in '/FirstWebsite' 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() +59
System.Web.HttpRequest.get_PhysicalPath() +48
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +472
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Can someone help me with this error?
Thanks in advance.