2015-03-02 161 views
0

我對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)

請幫助

回答

0

我不完全知道如何該請求被髮送,但看起來像用戶即帳戶登錄到系統中沒有被授權。

我運行不同的系統上的一個窗口服務時,也有類似的錯誤類型,我必須低於

轉到添加Windows帳戶的服務通過以下步驟來服務>服務>登錄選項卡的屬性>,並添加有密碼的帳戶可以訪問系統

相關問題