0
votes

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:

  1. NO Anonymous Access (under Directory Security)
  2. Use Integrated Windows Authentication (under Directory Security)

Please kindly advise!

Many thanks. William

1

1 Answers

0
votes

You probably never hear of delegation, right? http://msdn.microsoft.com/en-us/library/ff647404.aspx

Make delegation work, and then you can pass the credential to reporting services.