http-status-code-401

IIS 7.5 MVC 2 problem with 401.3 error.

I have a mixed WebForms/MVC application I'm trying to deploy to our staging environment, which is a fresh install of Server 2008 R2, with IIS 7.5. This application works fine while developing on anyone's local machine (via visual studio's web server), however when when it's hosted on the staging server we get the following error: HT...

How to generate sample 401, 403 http responses?

I want to generate sample http 401 403 responses in fiddler, how do I do that? is there any sites I can point to get this? ...

Return 401 from WCF service

How can I return a HTTP 401 from a WCF service? ...

SharePoint AJAX Web Part 401.2/3 errors

I recently began writing an AJAX web part for use in SharePoint and I am having a strange error. It seems that EnsurePanelFix() is causing the web part to throw a 401 error; in the log, both 401.2 and 401.3 errors are showing up right around the same time. I made some changes to EnsurePanelFix() after doing a bit of research on here and ...

Get content of response with StatusCode 401

Hello, I'm trying to establish a connection to a server that sends 401 Authentication Error for all my requests along with the normal html response. e.g. However, I also want to read the HTML response that is sent alongwith so that I can parse that. An example header exchange captured using LiveHTTPHeaders: Clearly, content-length is n...

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

Hi I'm trying to get the html code of certain webpage, I have a username and a password that are correct but i still can't get it to work, this is my code: private void buttondownloadfile_Click(object sender, EventArgs e) { NetworkCredentials nc = new NetworkCredentials("?", "?", "http://cdrs.globalpopsvoip.com/0000069/20091229/2009...

How to setup apache redirect or custom 401 document on Kerberos SSO login failure

Hi I have a working Kerberos SSO setup, I use apache and jboss with mod_jk. Apache is protecting (by kerberos) the auto-login.htm page with the following configuration: <Location /auto-login.htm> AuthType Kerberos AuthName "Kerberos Active Directory Login" KrbMethodNegotiate on KrbMethodK5Passwd on KrbAu...

customerrors for 401.2 in ASP.NET

I successfully implemented role based authorization in ASP.NET. When a person does not have the needed role he gets to see an error page for 401.2 not authorized. What I would like to accomplish now is to have a custom 401 page in my application and have it redirected there via settings in the web.config. I tried this: <customErrors m...

Having SQL injection like text in a texbox results in 401.1 on Submit

This is a follow up to my post back in August: http://stackoverflow.com/questions/1225042/asks-for-ad-credentials-connection-interrupted-on-postback The issue popped up again for a new record and I have determined that the offending text is "... Sharepoint site[semi-colon] update team schedule ...". Notice that "[semi-colon] update tea...

Response 401 when using Credentials AND proxy (calling web service)

I using VB.NET 2.0. I am trying to call a web service. This web service requires authentication. So, I am able to execute the web service when using Credentials only. But, when I add a local proxy (I tried with ezProxy Manager) I get a 401 error. I need to get this working with a proxy as well. Any ideas why this may fail? ...

401 UNAUTHORIZED in SharePoint 2007

Hi, I've created a web part that gathers information from a Document Library. It works well under the "admin" web application (we have two web apps: admin site for non-anonymous users; www site for anonymous users. These two sites share the same content). When I open www site, it shows the empty Web Part when it's not reference to the ...

Getting "401 Unauthorized" error consistently with jquery call to webmethod

Hello folks, I have been struggling to get my jquery call to a webmethod to work. I am being bounced by the server with a "401 Unauthorized" response. I must have an incorrect setting in the web.config or somewhere else that would be preventing a successful call. Your insight is appreciated! Call to js function the invokes the jquer...

Python problems with FancyURLopener, 401, and "Connection: close"

I'm new to Python, so forgive me if I am missing something obvious. I am using urllib.FancyURLopener to retrieve a web document. It works fine when authentication is disabled on the web server, but fails when authentication is enabled. My guess is that I need to subclass urllib.FancyURLopener to override the get_user_passwd() and/or p...

401 Unauthorized Error with Web Service

I must be missing something very basic. Here is the scenario We have a ASP.NET 2.0 WebService (Server 2003) with the following settings: SSL Integrated Security Anom. Access DISABLED Running under NETWORK SERVICE Exposed (i.e. can access from public internet) Service returns data from database using application username/password, does...

HTTP Error 401.3 for specific .pdf file

Hi all, I just uploaded two .pdf files on my server. They are both in the same folder. The first one can be normally accessed but for the second one I get an HTTP Error 401.3 "You are not authorized to view this page" This looks weird to me. Do you have any idea why is this happening? ...

What is wrong with my Basic Authentication in my Browser?

Hi folks, i'm trying to goto the following url :- http://user1:pass1@localhost:1234/api/users?format=xml nothing to complex. Notice how i've got the username/password in the url? this, i believe, is for basic authentication. When I do that, the Request Headers are MISSING the 'Authorize' header. Er... that's not right :( I have ...

Integrated Windows Authentication if the user cancels the request can I redirect them to another page?

On IIS6, using NTLM Authentication (meaning Integrated Windows Authentication) if the user cancels the authentication request, how can I redirect them to another page? I can't just grab 401 (tried) or 401.1 (not an int) in the web.config. I can't redirect if the issue is a 401 status because I'm intentionally pushing for a 401 to get th...

ASP.NET Web Service Throws 401 (unauthorized) Error

Hi Experts, I have this .NET application to be run in an intranet environment. It is configured so that it requires Windows Authentication before you can access the website (Anonymous access is disabled). This website calls a web service (enable anonymous access) and the web service calls the DB. We do have a token-based authentication ...

Access external xml using xslt document function return 401

On MOSS2007, I have a webpart that display the content of a xml feed. I use a xslt with parameters for transforamtions. There is a situation when I receive a 401 Authorisation exception. I realize that this happen when a document() function from my xslt try to open an external xml. If I try to open this xml in browser all work ok. I prov...

401 Unauthorized using oauth with twitter on iPhone

I use Twitter-OAuth-iPhone. http://github.com/bengottlieb/Twitter-OAuth-iPhone/ when i try to login on twitter with SA_OAuthTwitterEngine, I received an error 401 i received the delegate call for - (void) OAuthTwitterController: (SA_OAuthTwitterController *) controller authenticatedWithUsername: (NSString *) username { but when i tr...