I have a C # web service in .net 4.0. Webservice will create the file along the UNC path. If I let the Cassini web server in visual studio do authentication, it works fine. But if I changed the application to use IIS (Windows 7), then the file will not be created, but the error is not reported.
If I changed the location of the generated file to a local drive, then Cassini and IIS work fine, but only the Cassini web server will work for the UNC path.
I can only guess that the problem is with authentication, I tried various combinations of the following:
- UNC path allows access for all users
- In IIS Windows Authentication
- In anonymous IIS authentication
My Windows account has permission to create this file.
I did not try to impersonate the user, and I did not try to change the anonymous credentials to something with a lot of rights.
Does anyone know about the security-related differences between the Cassini web server and IIS that can cause these problems?
Thanks a lot, Mike
source
share