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 ...Running DNN from an UNC file server on IIS6Running DNN from an UNC file server on IIS6
Previous
 
Next
New Post
9/18/2006 8:21 AM
 

 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  

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Running DNN from an UNC file server on IIS6Running DNN from an UNC file server on IIS6


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