Unauthorized error

Unauthorized error

Post by Glenn Came » Tue, 20 Dec 2005 04:33:16


OK, I have fresh install of Microsoft CRM 3.0 on a server and using a
current instance of reporting services on a second server. When I click on
the reports link in the workplace section I get a 401: Unauthorized.

The further information says the the requested URL is home_reports.aspx and
it is a HTTPUnhandledExpection.

Does anyone know what this error is, where I can get further informaiton on
the error (there is nothing in the windows event logs) cause this product is
driving me insane.

Thanks
 
 
 

1. Experiencing Sporadic HTTP Error 401.1 - Unauthorized errors on IIS

2. WebRequests & 401 Unauthorized errors

Hi, I'm trying to make a WebRequest to url using the code below.

The url points to a large number XML files on my shared dev server via a virtual folder secured using basic authentication. I did this so I can run the application on my local machine and from the dev server but keep a single copy of the XML files only on dev server. The site uses Basic Authentication and both machines belong to the same domain

However, I ge

"The remote server returned an error: (401) Unauthorized. "

The weird thing this works when I run the code from the local machine all the time, but only ONCE from when I run the app on my dev server. Subsequent requests on the devserver's version return the 401 error. It's really strange in that it seems it loses my credentials on repeated requests. Suggestions on a fix or a better approach? Thanks, Dave

HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://mydevserv:1027/Secure/ReportsVirtDir/14330.XML";)
HttpContext cxt = HttpContext.Current
NetworkCredential nc = new NetworkCredential(cxt.Request.ServerVariables["AUTH_USER"], cxt.Request.ServerVariables["AUTH_PASSWORD"],"")
req.Credentials = nc
WebResponse resp = req.GetResponse(); <--ERRO
StreamReader sr = new StreamReader(resp.GetResponseStream())
string strStream = sr.ReadToEnd();

3. Remote Server returns 401 Unauthorized error

4. Unauthorized Error Messages in OWA/Exchange 2003

5. 401 Unauthorized error when submitting DELETE webdav request

6. 401 - Unauthorized" error

7. Unauthorized error when publishing projects

8. 401 UNAUTHORIZED Error After Installation

9. GetAllSubWebCollection 401 - Unauthorized Error

10. 402.1 Unauthorized error after installation

11. CUPS & unauthorized error msgs

12. OWA - Unauthorized error for all except Administrator

13. Unauthorized Error Calling Web Service

14. Receiving unauthorized error on SharePoint Portal 2007 Server

15. SPWebCollection.Add unauthorized error