MS CRM 4.0- WebException:请求失败,HTTP状态401:未授权

问题描述:

我对MS Dynamics CRM很感兴趣。MS CRM 4.0- WebException:请求失败,HTTP状态401:未授权

本公司拥有迁移客户MS CRM 4.0的一个CRM 2013年

我已经被分配从数据库备份和自定义应用程序发布(CRMWeb文件夹)创建MS CRM 4.0安装任务。

场景:

我不得不升级SQL服务器verions,CRM更新汇总安装开始。在经历了很多痛苦之后,我已经达到了组织导入。

接下来就是自定义应用程序设置。为此,我复制&粘贴的客户端收到CRMWeb> ISV>自定义应用程序到CRM 4.0> CRMWeb> ISV文件夹。

请注意:

- > CrmService已用于自定义CRM编程。

- >自定义应用程序文件夹没有Web.config文件。

问题:

我得到下面的错误细节跟踪文件时,我打了一个自定义应用程序页面的URL。

错误:引发了类型'System.Web.HttpUnhandledException'的异常。

错误消息:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关该错误的更多信息以及源代码的位置。

错误详细信息:引发类型'System.Web.HttpUnhandledException'的异常。

源文件:不可用

行号:不可

请求URL:http://servereight:5555/kyraInfotech4/isv/kyrainfotechwebapp/Search_C.aspx

堆栈跟踪信息:[引发WebException:请求失败,HTTP状态401:未经授权]

at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message,WebResponse response,Stream responseStream,Boolean asyncCall)

在System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(字符串方法名,对象[]参数)

在CrmMetaDataService.MetadataService.Execute(MetadataServiceRequest请求)

在Search_C.bindRank()

在Search_C.Page_Load(对象发件人,EventArgs的)

在错误帮助(IntPtr的FP,对象O,对象吨,EventArgs的)

System.Web.Util处的

。CalliEventHandlerDelegateProxy.Callback(对象发件人,EventArgs的)

在System.Web.UI.Control.OnLoad(EventArgs的)

在System.Web.UI.Control.LoadRecursive()

在系统.Web.UI.Page.ProcessRequestMain(布尔includeStagesBeforeAsyncPoint,布尔includeStagesAfterAsyncPoint)

[HttpUnhandledException:类型 'System.Web.HttpUnhandledException' 引发的异常]

在System.Web.UI.Page.Hand leError(例外五)

在System.Web.UI.Page.ProcessRequestMain(布尔includeStagesBeforeAsyncPoint,布尔includeStagesAfterAsyncPoint)

在System.Web.UI.Page.ProcessRequest(布尔includeStagesBeforeAsyncPoint,布尔includeStagesAfterAsyncPoint)

在System.Web.UI.Page.ProcessRequest()

在System.Web.UI.Page.ProcessRequestWithNoAssert在System.Web.UI.Page.Proces(HttpContext的上下文)

sRequest(HttpContext的上下文)

在ASP.kyrainfotech4_isv_kyrainfotechwebapp_search_c_aspx.ProcessRequest(HttpContext的上下文)

在System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

在系统。 Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔& completedSynchronously)

[2015年2月28日17:00:41.3]过程:W3WP |组织:00000000-0000-0000-0000-000000000000 |线程:3 |分类:平台|用户:00000000-0000-0000-0000-00 0000000000 |等级:信息| MiniDump.CreateDumpInternal

  at MiniDump.CreateDumpInternal(MiniDumpReasons reason, Exception exception) 

      at MiniDump.CreateDump(MiniDumpReasons reason, Exception exception) 

      at MainApplication.Application_Error(Object sender, EventArgs eventArguments) 

      at EventHandler.Invoke(Object sender, EventArgs e) 

      at HttpApplication.RaiseOnError() 

      at HttpApplication.RecordError(Exception error) 

      at ApplicationStepManager.ResumeSteps(Exception error) 

      at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) 

      at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) 

      at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) 

      at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) 

MiniDump: TraceDirectory setting not set or missing. Defaulting to temporary folder.

[2015年2月28日17:00:41.4]过程:W3WP |组织:00000000-0000-0000-0000-000000000000 |线程:3 |类别:平台|用户:00000000-0000-0000-0000-000000000000 |等级:信息| MiniDump.CreateDumpInternal

  at MiniDump.CreateDumpInternal(MiniDumpReasons reason, Exception exception) 

      at ExceptionManager.ReportException(Exception exception, String format, Object[] args) 

      at ExceptionManager.ReportException(Exception exception) 

      at MainApplication.Application_Error(Object sender, EventArgs eventArguments) 

      at EventHandler.Invoke(Object sender, EventArgs e) 

      at HttpApplication.RaiseOnError() 

      at HttpApplication.RecordError(Exception error) 

      at ApplicationStepManager.ResumeSteps(Exception error) 

      at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) 

      at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) 

      at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) 

      at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) 

我查看/尝试过这些链接,但无法成功。

http://www.postseek.com/meta/b6a20e50342e1ded700030500c76efdb http://ronaldlemmen.blogspot.in/2008/09/unauthorized-error-after-deploying-your.html https://social.microsoft.com/Forums/en-US/37cee666-abea-4f53-88af-aca95ad38906/crm-40-can-not-load-custom-aspx-page-that-calls-a-webservice-401-unauthorized?forum=crm Creating entities through web services fails randomly with 0x80048405 (Access is denied)

请帮助

我不完全知道如何该请求被发送,但看起来像用户即帐户登录到系统中没有被授权。

我运行不同的系统上的一个窗口服务时,也有类似的错误类型,我必须低于

转到添加Windows帐户的服务通过以下步骤来服务>服务>登录选项卡的属性>,并添加有密码的帐户可以访问系统