I have an ASP file that is trying to make a webservice request to an ASP.NET webservice running on the same server under the same virtual directory. In IIS the virtual directory is set up to disable anonymous access and "integrated windows authentication" is turned on.
So the problem is, when the user's machine requests to run the ASP page or even manually run the WebService.asmx .NET file, it works because the user's credentials are passed along, however when the ASP file tries to invoke the webservice we get a 401.2 - Unauthorized: Access is denied due to server configuration.
For example:
- "DIRECTORY\user1" from a browser on the user machine requests Service.asmx which works fine.
- "DIRECTORY\user1" from a browser on the user machine requests File1.asp which works fine.
- _________ from within File1.asp on the server requests Service.asmx which returns 401.2
So I assumed I needed to set NTFS permissions on WebService.asmx to allow the ASP account Read & Execute permissions, but I don't know what account it runs under, and upon further thought after reading some of the reponses, it seems like we aren't getting to the NTFS level, IIS is completely rejecting the request because anonymous access is turned off.
Does this indicate that we need to get the ASP process running under a domain account?