我有一個本地開發的Silverlight應用程序,我試圖在我個人設置的Windows 2008 R2服務器上運行它。一切順利,花花公子,只是當我嘗試權威性上的應用程序,它會嘗試在本地尋找Silverlight試圖訪問本地crossdomainpolicy.xml
http://localhost/crossdomainpolicy.xml
http://localhost/clientaccesspolicy.xml
它也拋出一個討厭的錯誤:
Uncaught Error: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at SomeService.MVServiceReference.CheckUserCompletedEventArgs.get_Result() at SomeService.Pagini.Autentificare.AuthForm.webServiceSoapClient_CheckUserCompleted(Object sender, CheckUserCompletedEventArgs e) at SomeService.MVServiceReference.MVWebServiceSoapClient.OnCheckUserCompleted(Object state)
一切都是在本地開發的,然後推送到ASP.NET IIS dev服務器。所以一切都需要在線工作。 – 2011-05-31 11:03:37
@Adrian:您在部署XAP文件時更新了ServiceReferences.clientconfig嗎?否則它仍然指向開發環境地址。 – 2011-05-31 12:41:41
@Andres - 是的,但它開始給出多個綁定的錯誤 – 2011-05-31 21:13:57