CRM 3.0 HTTP 401 Unauthorized access error

Posted on 2009-04-16
Last Modified: 2012-05-06
This problem started after making the following changes to the network:

Configured SBS server to act as DHCP Server (Have since reverted back to all IP's, etc)

Switched modem and ISP provider

New ethernet HUB

Computers can connect to everything else, including other IIS resources.  We can access some entities like queues, articles, quick campaign, etc, but user owned entities can't be accessed and throwing this error.

We have also received HTTP 403 error, but have seemed to fixed this error.

The request failed with HTTP status 401: Unauthorized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:

[WebException: The request failed with HTTP status 401: Unauthorized.]
   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1302
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218
   Microsoft.Crm.Platform.Proxy.UserQueryWebService.RetrieveMultiple(QueryBase queryExpression) +55
   Microsoft.Crm.Application.Platform.UserQuery.RetrieveByObjectType(Int32 returnTypeCode, String columnSetXml, Int32[] queryType, UserQueryState state) +265
   Microsoft.Crm.Controls.ViewSelector.AddUserViewGroup(String groupName, String groupId, OptionSorting sorting, Int32[] queryTypes, UserQueryState queryState, Boolean flagInactiveQueries) +129
   Microsoft.Crm.Application.Controls.AppViewSelector.Initialize() +170
   Microsoft.Crm.Application.Controls.AppViewSelector.GetDefaultView() +10
   Microsoft.Crm.Web.Workplace.HomeActivitiesPage.ConfigurePage() +794
   Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e) +19
   System.Web.UI.Control.PreRenderRecursiveInternal() +62
   System.Web.UI.Page.ProcessRequestMain() +1499

Question by:jontresko
    LVL 15

    Expert Comment

    so you can connect to CRM using the web client, but when you open individual objects you get a 401 Unauthorized?

    What about on the server itself?  You can set the URL in Trusted Sites and set Trusted Sites to Prompt, then you can try different users.

    Are there other sites on the SBS server and are they problematic as well?

    Are the problems from inside the network or from the outside?  

    Author Comment

    The web client loads, but when selecting certain entities, it throws this error.  Some entities, however, work fine, like quick campaign, announcements and queues.  Leads, Opportunities, custom entities, etc... throw this error before even seeing a list of records.

    This is from client computers.  The kicker is that when trying to connect via the server, it says "Internet Explorer cannot display the webpage"

    The problem started after trying to connect the internet directly to the modem and setting it up as the DHCP server. After we realized this was not the optimal setup, I reverted everything back to the way it was before, just using local IPs.

    All other IIS sites work fine.

    We only use this in the local local network/never remotely (unless i do to my computer, which ends up being accessed on the local network.)
    LVL 9

    Accepted Solution


    Check the following on your CRM web site properties...

    Directory Security - Make sure the 'Allow Anonymous Access' check box is not ticked.
    Home Directory - Make sure the Execute Permissions is set to 'Scripts Only'.
    IP Address and Domain Name Restrictions - Granted Access radio button is selected.

    LVL 15

    Expert Comment

    Also check to make sure that the Integrated Security is on below just the CRM website.  Check random folders and files to make sure.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
    Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now