I wrote an ASP.Net which acts as our company's hub of reporting services. I reference to the MSDN, having the following settings:
rs = New ReportingService()
rs.UseDefaultCredentials = True
rs.PreAuthenticate = True
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
and testing under the Visual Studio 2008, it works fine. However once I publish it to the IIS (5.5) on my development PC (Windows XP) for pre-production deployment testing, and access it from another workstation, it results at "HTTP 401: Unauthorized error". (But it works by local access)
I have the following lines in the Web.config:
<authentication mode="Windows"/>
<identity impersonate="true"/>
<authorization>
<deny users="?"/>
</authorization>
And I've the following settings in the IIS Server:
- NO Anonymous Access (under Directory Security)
- Use Integrated Windows Authentication (under Directory Security)
Please kindly advise!
Many thanks. William