IIS Website on UNC share
Hi, I'm trying to create an ASP.NET 2.0 Website on IIS 6 on Windows Server 2003 with the source directory being a 'share located on another computer'.When I place a simple test html document in the web site (on theUNC share) I can browse successfully to it.However, I'm getting the following exception when I try to browseaspx pages on thewebsiteSystem.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, ... ' failed.I have ensured the UNC share is fully accessible by 'Everyone' and 'ANONYMOUS LOGON' and that the local security policy allows anonymous access for the share. So, I can anonymously connect to the share and carry out read and write operations.I've spent some time trying to find out what the problem is and have come across a number of suggestions, such as trying to grant FullTrustfor the UNC on the server (http://support.microsoft.com/?id=320268) or adding the same user on both the IIS server and the server presenting the UNC share (eg. http://forums.devshed.com/iis-97/iis-unc-share-487829.html).None of these solutions has worked for me.Can someone tell me what I'm doing wrong? Or how to use a UNC for the source of an IIS ASP.NET2.0web site?usmhot.
June 12th, 2009 7:31pm

You quite possibly are running into an issue with network traversal. I would recommend running the application under a active directory user, either through impersonation in your web.config or in the directory security tab of your IIS webapplication.Filemon is always a good tool to help see file access issues. Just set the filter for w3wp.exe and attempt to access the page.
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2009 10:13am

Hi usmhot,Your issue is more related with IIS, i would recommend you to post your query in IIS forum where we have dedicatedengineers to answer your query. If IIS engineers feel that the issue is more likely with windows SMB protocol ( which is used for accessing shares or drives )please reply back to this thread and wewill resume troubleshooting.the IIS forum is http://forums.iis.net/thanks for understanding.sainath windows driver development.
June 14th, 2009 3:19pm

Hi Sainath,I do not think this issue is more related with IIS. I think this is a Windows security issue and has to do with trust levels, so please resume troubleshooting.I will post also inthe IIS forum.I don't care which forum finds the answer, I just want to get this sorted so I can get on with my job.ushot.
Free Windows Admin Tool Kit Click here and download it now
June 15th, 2009 11:06am

hi usmhot,i would like to know did you had a chance to post your query in IIS forum ?sainath windows driver development.
June 15th, 2009 11:06am

Hi Sainath, I have posted on the IIS forum as you suggested. I would still like the experts on Windows Server to try to find the answer. usmhot.
Free Windows Admin Tool Kit Click here and download it now
June 15th, 2009 11:34am

Hi Nicoh,I've tried running under an active directory user, but get the same error.Indeed, I tried the following1. domain based user with full access to both the IIS server and the server on which the UNC share resides2. local user with same credientials on both machinesNeither worked.I tried setting the UNCUserName and UNCPassword values directly into the metabase file for IIS.No joy.As it happens, I need this to work in my live environment, which is in a hosting site with no domain based security (i.e. no active directory as I understand it). Rather it's aworkgroup based network. When I originally tried configuring under these conditions I got the given error, so I tried it out in my development environment, which is active directory (domain based) and got the exact same error.usmhot.
June 15th, 2009 11:40am

hi there, the issue which you are experiencing is much to do with the IIS and the UNC authentication in IIS. Asa standalone share you have provided all the required access on the folder but when an application is accessing the UNC , its the job of IIS / any application to query the share and get its attributes , which i guess in your case is failing.And that was the reason i suggested you to post in IIS forum. I am pointing you to UNC authentication in IIS 6 , just browse through to check if you have missed any configuration.http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/f72cfb8b-84e4-47e1-824a-db1bbb4aebff.mspx?mfr=truesome good info about using aspx http://stackoverflow.com/questions/123628/iis-site-on-unc-share-is-it-problematicsainath windows driver development.
Free Windows Admin Tool Kit Click here and download it now
June 15th, 2009 1:19pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics