machine/ASPNET account? Like SQL Server does. Why does it work this way?)
"Wei Lu [MSFT]" <weilu@online.microsoft.com> wrote in message
news:wXl2SFPmGHA.4948@TK2MSFTNGXA01.phx.gbl...
> Hi Gary,
>
> Thank you for your posting!
>
> I will replied your question here. SSRS has some difference with other
> ASP.NET application. SSRS use the Windows Authentication to check the User
> and Role. So you need to pass your FormAuthentication to access the report
> web service.
>
> In your code, you use the DefaultCredentials to access the web services.
> Since you are using Form authentication, you need to create a custom
> credential and pass the credential to web services.
>
> Here is a sample for create a NewworkCredential:
>
> NetworkCredential myCred = new NetworkCredential(
> SecurelyStoredUserName,SecurelyStoredPassword,SecurelyStoredDomain);
> // Add your domain, user name and password here.
>
> CredentialCache myCache = new CredentialCache();
>
> myCache.Add(new Uri("www.contoso.com"), "NTLM", myCred);
>
> _rs.Credentials = myCache;
>
>
> Here is the article about NewworkCredential:
>
> NewworkCredential
>
http://msdn2.microsoft.com/en-us/library/system.net.networkcredential.aspx >
> Hope this will be helpful!
>
> Sincerely,
>
> Wei Lu
> Microsoft Online Community Support
>
> ==================================================
>
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
>
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>