FORUMS

c360 Forums
 Home        Members    Calendar    Who's On

Welcome Guest ( Login | Register )
      



HTTP status 401: Unauthorized errorExpand / Collapse
Message
Posted 4/25/2007 9:38:18 PMPost #1406
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
I am trying to get the SDK going in our development environment and I am getting the following 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) +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

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.

Can anyone provide ideas as to what may be causing this?

Posted 4/29/2007 10:59:34 PMPost #1412
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
I have solved the problem - had to do with IIS security settings.
Posted 8/27/2008 6:01:43 AMPost #2101
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Hello

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).

More details:

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.ComponentModel.LicenseException: The request failed with HTTP status 401: Unauthorized.

[LicenseException: The request failed with HTTP status 401: Unauthorized.]
   c360.Toolkit.Licensing.c360LicenseProvider.ᜀ(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3) +1114
   c360.Toolkit.Licensing.c360LicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions) +18
   System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) +259
   System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) +41
   System.ComponentModel.LicenseManager.Validate(Type type, Object instance) +29
   c360.Toolkit.SDK.Pages.DialogPage..ctor() +29
   addnotetolead..ctor() in c:\Inetpub\wwwroot\CRMc360sdk\addnotetolead.aspx.cs:24
   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
   __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
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161

 

Anybody has any idea what the problem is?

Thanks

Marek

« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: kanika.jackson, Ken Champion

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 6:42pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 4.922. 16 queries. Compression Enabled.