简体   繁体   中英

ASP.NET app access to UNC shared DB file works as IIS virtual directory but not as an IIS website

This one is killing me. I have an ASP.net (2.0 Framework) app that uses integrated security. IIS is setup appropriately and works fine as a virtual directory off the default website. My OLEDB connection (Jet 4.0) works fine and connects to a database file via network share (\\GIS1\\GIS Server - PublicWorks_StreetSigns).

BUT, when I create an IIS "website" and point it to the exact same home directory I get an error...

Error getting data from DBF. '\\GIS1\\GIS Server - PublicWorks_StreetSigns' is not a valid path.

Do I have to do something different in a website versus a virtual off the default website to make this work? I've triple checked the virtual settings against the website settings and everything is the same.

Thanks in advance.

I would check the identity of the application pool servicing each website. My guess is that the default identity of the app pool doesn't have permissions to that path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM