【问题标题】:MS CRM 4.0- WebException: The request failed with HTTP status 401: UnauthorizedMS CRM 4.0- WebException:请求失败,HTTP 状态 401:未经授权
【发布时间】:2015-03-02 07:04:11
【问题描述】:

我很喜欢 MS Dynamics CRM。

我们公司必须将我们的一位客户 MS CRM 4.0 迁移到 CRM 2013。

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

场景:

我必须从升级 Sql Server 版本、CRM 更新汇总安装开始。在经历了很多痛苦之后,我已经达到了组织导入。

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

请注意:

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

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

问题:

当我点击自定义应用程序页面 url 时,我在跟踪文件中收到以下错误详细信息。

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

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

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

源文件:不可用

行号:不可用

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

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

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

在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] 参数)

在 CrmMetaDataService.MetadataService.Execute(MetadataServiceRequest 请求)

在 Search_C.bindRank()

在 Search_C.Page_Load(Object sender, EventArgs e)

在 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)

在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)

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

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

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

[HttpUnhandledException:引发了“System.Web.HttpUnhandledException”类型的异常。]

在 System.Web.UI.Page.HandleError(Exception e)

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

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

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

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

在 System.Web.UI.Page.ProcessRequest(HttpContext 上下文)

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

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

在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

[2015-02-28 17:00:41.3] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:3 |类别:平台|用户:00000000-0000-0000-0000-000000000000 |级别:信息 | 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 设置未设置或丢失。默认为临时文件夹。

[2015-02-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)

请帮忙

【问题讨论】:

    标签: dynamics-crm-2011 webexception


    【解决方案1】:

    我不确定这个请求是如何发送的,但看起来用户,即登录系统的帐户没有被授权。

    我在不同系统上运行窗口服务时遇到了类似类型的错误,我必须按照以下步骤将 Windows 帐户添加到服务中

    转到服务>您的服务的属性>登录选项卡>并添加一个可以访问系统的密码帐户

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-01-01
      • 1970-01-01
      • 2012-06-30
      • 2012-11-27
      • 1970-01-01
      • 2011-03-18
      • 2012-05-03
      相关资源
      最近更新 更多