Hi All, orgionally posted to the incorrect area...
I'm trying to run DNN from a UNC file share but keep getting a permissions error.
This is what I've done so far on the IIS server 'Server1':
- I've create a custom Application Pool on Server1 and set the Identity to run under a domain account.
- Added the domain account to the worker process group on Server1
- Created a virtual folder on Server1 that connects to \\server2\share$
- Assigned the 'custom Application Pool' to the virtual folder.
- Ensured ASP.NET 2 is enabled for the virtual folder
- given the domain account full control to the 'share' and 'security' on the Server2 (unc server)
- set the trust level to high in the web.config (
<
trust level="Full" originUrl="" />) on Server1 (just to try and rule out permissions for now)
Did not modify my web.config in the 'Framework\v2.0.50727\CONFIG' folder
<
location allowOverride="true">
<system.web>
<securityPolicy>
<trustLevel name="Full" policyFile="internal" />
.....
</securityPolicy>
<trust level="Full" originUrl="" />
</system.web>
</location>
- I've placed a custom aspx in the folder to confirm my worker process identity across the UNC share (Environment.UserName ). It is using my domain account
- Placed an aspx application in the UNC share to read, and write a text file to the folder to ensure the worker process has full permissions across the unc share. (so far it works)
- Now when I try to run DNN 4.3.4, I get the following error which seems to indicate that its a permissions issue but cant work it out.
In the act of desporation I've added the domain user account to to local administrators group on each server to try and rule out the permission issues. Still no joy!
If I configure IIS6 on the UNC file server (Server2) and point it to the folder (c:\....) DNN works perfectly.
Has anybody successfully used DNN on a UNC share with IIS6? We are planning to use it within a webfarm an point it to a central file store.
Our other 'simple' asp.net 2.0 applications work fine on a unc share, but not DNN.
Any help tackling this would be much appreciated. Thanks... here it the error I get
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.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +3492154
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +163
System.Web.CachedPathData.GetConfigPathData(String configPath) +382
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +132
System.Web.HttpContext.GetFilePathData() +27
System.Web.HttpContext.GetConfigurationPathData() +26
System.Web.Configuration.HttpCapabilitiesBase.GetBrowserCapabilities(HttpRequest request) +133
System.Web.HttpRequest.get_Browser() +197
System.Web.ErrorFormatter.RequiresAdaptiveErrorReporting(HttpContext context) +104
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42