0

我很喜欢 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 消息,WebResponse 响应,流 responseStream,布尔 asyncCall)

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

在 CrmMetaDataService.MetadataService.Execute(MetadataServiceRequest 请求)

在 Search_C.bindRank()

在 Search_C.Page_Load(对象发送者,EventArgs e)

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

在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(对象发送者,EventArgs e)

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

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

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

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

在 System.Web.UI.Page.HandleError(异常 e)

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

在 System.Web.UI.Page.ProcessRequest(布尔 includeStagesBeforeAsyncPoint,布尔 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 步骤,Boolean& completedSynchronously)

[2015-02-28 17:00:41.3] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:3 |类别:平台|用户:00000000-0000-0000-0000-00000000000 |级别:信息 | 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-00000000000 |级别:信息 | 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-c​​alls-a-webservice-401-unauthorized?forum=crm 通过 Web 服务创建实体随机失败,出现 0x80048405(访问被拒绝)

请帮助

4

1 回答 1

0

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

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

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

于 2015-03-02T16:11:20.427 回答