﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>c360 Forums / SDK for Microsoft CRM / Version 3 Product Questions / Installation  / HTTP status 401: Unauthorized error / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>c360 Forums</description><link>http://www.c360.com/Forums/</link><webMaster>support@c360.com</webMaster><lastBuildDate>Sat, 22 Nov 2008 14:48:43 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: HTTP status 401: Unauthorized error</title><link>http://www.c360.com/Forums/Topic1406-40-1.aspx</link><description>Hello&lt;/P&gt;&lt;P&gt;I also have an 401 error, but it says that it's not WebException, but LicenseException, so I gather it may not be IIS settings' fault (which I think are OK).&lt;/P&gt;&lt;P&gt;More details:&lt;/P&gt;&lt;H2&gt;&lt;I&gt;The request failed with HTTP status 401: Unauthorized.&lt;/I&gt; &lt;/H2&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Description: &lt;/FONT&gt;&lt;/B&gt;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. &lt;BR&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Exception Details: &lt;/FONT&gt;&lt;/B&gt;System.ComponentModel.LicenseException: The request failed with HTTP status 401: Unauthorized.&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;[LicenseException: The request failed with HTTP status 401: Unauthorized.]&lt;BR&gt;   c360.Toolkit.Licensing.c360LicenseProvider.ᜀ(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3) +1114&lt;BR&gt;   c360.Toolkit.Licensing.c360LicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions) +18&lt;BR&gt;   System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License&amp;amp; license, String&amp;amp; licenseKey) +259&lt;BR&gt;   System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License&amp;amp; license) +41&lt;BR&gt;   System.ComponentModel.LicenseManager.Validate(Type type, Object instance) +29&lt;BR&gt;   c360.Toolkit.SDK.Pages.DialogPage..ctor() +29&lt;BR&gt;   addnotetolead..ctor() in c:\Inetpub\wwwroot\CRMc360sdk\addnotetolead.aspx.cs:24&lt;BR&gt;   ASP.addnotetolead_aspx..ctor() in c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\c360sdk\a7a6cba4\100007ef\App_Web_zdvi2gr-.12.cs:0&lt;BR&gt;   __ASP.FastObjectFactory_app_web_zdvi2gr_.Create_ASP_addnotetolead_aspx() in c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\c360sdk\a7a6cba4\100007ef\App_Web_zdvi2gr-.38.cs:0&lt;BR&gt;   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49&lt;BR&gt;   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115&lt;BR&gt;   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31&lt;BR&gt;   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40&lt;BR&gt;   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139&lt;BR&gt;   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128&lt;BR&gt;   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously) +161&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;Anybody has any idea what the problem is?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Marek</description><pubDate>Wed, 27 Aug 2008 06:01:43 GMT</pubDate><dc:creator>MarekS</dc:creator></item><item><title>RE: HTTP status 401: Unauthorized error</title><link>http://www.c360.com/Forums/Topic1406-40-1.aspx</link><description>I have solved the problem - had to do with IIS security settings.</description><pubDate>Sun, 29 Apr 2007 22:59:34 GMT</pubDate><dc:creator>Hamish</dc:creator></item><item><title>HTTP status 401: Unauthorized error</title><link>http://www.c360.com/Forums/Topic1406-40-1.aspx</link><description>I am trying to get the SDK going in our development environment and I am getting the following error:&lt;/P&gt;&lt;H2&gt;&lt;I&gt;The request failed with HTTP status 401: Unauthorized.&lt;/I&gt; &lt;/H2&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Description: &lt;/FONT&gt;&lt;/B&gt;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. &lt;BR&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Exception Details: &lt;/FONT&gt;&lt;/B&gt;System.Net.WebException: The request failed with HTTP status 401: Unauthorized.&lt;BR&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Source Error:&lt;/FONT&gt;&lt;/B&gt; &lt;BR&gt;&lt;BR&gt;&lt;TABLE width="100%" bgColor=#ffffcc&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE&gt;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.&lt;/CODE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Stack Trace:&lt;/FONT&gt;&lt;/B&gt; &lt;BR&gt;&lt;BR&gt;&lt;TABLE width="100%" bgColor=#ffffcc&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE&gt;&lt;PRE&gt;[WebException: The request failed with HTTP status 401: Unauthorized.]   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1301   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218   c360.Toolkit.CRM2005.CrmService.Execute(Request Request) +64   c360.Toolkit.Security.CRMSecurityPrincipal.ᜀ() +46   c360.Toolkit.Security.CRMSecurityPrincipal.ᜀ() +38   c360.Toolkit.Security.CRMSecurityPrincipal.ᜁ() +16   c360.Toolkit.Security.CRMSecurityPrincipal.ᜀ() +38   c360.Toolkit.Security.CRMSecurityPrincipal.ᜁ() +16   c360.Toolkit.MsCrm.Controls.Grid.ᜃ() +321   c360.Toolkit.MsCrm.Controls.Grid.OnPreRender(EventArgs e) +204   ᜬ.OnPreRender(EventArgs e) +149   System.Web.UI.Control.PreRenderRecursiveInternal() +62   System.Web.UI.Control.PreRenderRecursiveInternal() +125   System.Web.UI.Control.PreRenderRecursiveInternal() +125   System.Web.UI.Control.PreRenderRecursiveInternal() +125   System.Web.UI.Control.PreRenderRecursiveInternal() +125   System.Web.UI.Control.PreRenderRecursiveInternal() +125   System.Web.UI.Page.ProcessRequestMain() +1499&lt;/PRE&gt;&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;We are operating in an virtual environment with the CRM installed on a server. The development is being done from a workstation with Visual Studio 2003. I have checked the settings in the web.config and c360.config. The code works ok if copied to the server and run from there. &lt;/P&gt;&lt;P&gt;Can anyone provide ideas as to what may be causing this?</description><pubDate>Wed, 25 Apr 2007 21:38:18 GMT</pubDate><dc:creator>Hamish</dc:creator></item></channel></rss>