all groups > sql server reporting services > november 2006 >
You're in the

sql server reporting services

group:

Server report request failed with HTTP status 401: Unauthorized pr



Server report request failed with HTTP status 401: Unauthorized pr Brian Orrell
11/7/2006 1:28:25 PM
sql server reporting services: Just created a new report that uses report services. I have created the
report in the Report Manager website and am able to view it from there.
However, when I include a reportviewer control on a page and try to view the
page I get the error: "The request failed with HTTP status 401: Unauthorized.
". Is there a way to programmatically set the credentials since this seems
to be a credential problem. Specifically can you set the credentials without
Re: Server report request failed with HTTP status 401: Unauthorized pr Matt Ranlett
11/7/2006 1:43:42 PM
Hello Brian,

I recently had a similar problem which, while not specifically accessing
Reporting Services, might be helpful to you.

Pattern your code like this snippet and you should be fine...
static void Main(string[] args)
{
localhost.HelloService s = new client.localhost.HelloService();
s.Credentials = new System.Net.NetworkCredential("kirke", "MyDomainPassword",
"northamerica");
Console.WriteLine(s.HelloWorld());
}



I wrote the entire story here: http://devcow.com/blogs/adnrg/archive/2006/11/02/Who_am_I_A_NetworkCredential_saga.aspx



[quoted text, click to view]

Re: Server report request failed with HTTP status 401: Unauthorized pr Matt Ranlett
11/7/2006 1:45:44 PM
Hello Brian,

I recently had a similar problem which, while not specifically accessing
Reporting Services, might be helpful to you.

Pattern your code like this snippet and you should be fine...
static void Main(string[] args)
{
localhost.HelloService s = new client.localhost.HelloService();
s.Credentials = new System.Net.NetworkCredential("kirke", "MyDomainPassword",
"northamerica");
Console.WriteLine(s.HelloWorld());
}



I wrote the entire story here: http://devcow.com/blogs/adnrg/archive/2006/11/02/Who_am_I_A_NetworkCredential_saga.aspx



[quoted text, click to view]

Re: Server report request failed with HTTP status 401: Unauthorized pr Matt Ranlett
11/7/2006 9:41:46 PM
Hello Brian,

I recently had a similar problem which, while not specifically accessing
Reporting Services, might be helpful to you.

Pattern your code like this snippet and you should be fine...
static void Main(string[] args)
{
localhost.HelloService s = new client.localhost.HelloService();
s.Credentials = new System.Net.NetworkCredential("kirke", "MyDomainPassword",
"northamerica");
Console.WriteLine(s.HelloWorld());
}



I wrote the entire story here: http://devcow.com/blogs/adnrg/archive/2006/11/02/Who_am_I_A_NetworkCredential_saga.aspx



[quoted text, click to view]

AddThis Social Bookmark Button