我有一個非常基本的silverlight應用程序,它允許在窗體上進行數據編輯(來自SQL Server數據庫)。如果我從Visual Studio調試應用程序,該應用程序效果很好,但是如果我將它發佈到IIS服務器,則表單加載,但是它們上的數據不會。我得到的錯誤:Silverlight應用程序適用於VS調試但未發佈
"Message: Unhandled Error in Silverlight Application Load operation failed for query 'GetItcLoadTransactionsForLoadDate'. The remote server returned an error: NotFound. at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error) at System.ServiceModel.DomainServices.Client.LoadOperation.Complete(Exception error) at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult) at System.ServiceModel.DomainServices.Client.DomainContext.<>c_DisplayClass1b.b_17(Object ) Line: 1 Char: 1 Code: 0"
任何想法我的問題可能是。我是一個Silverlight和IIS的完整newb。
好吧,爲了顯示我是多麼新鮮,我甚至找不到對ServiceReferences.ClientConfig文件的引用。我只是圍繞一些實體框架實體創建了一些域服務,並且爲我創建了一切。 – Sean 2011-02-28 21:06:40
我試圖添加crossdomain.xml和clientaccesspolicy.xml,但他們沒有爲我做任何事情。我不認爲我是在我們的開發服務器上運行這個網絡或域時進行傳輸。 – Sean 2011-02-28 21:12:22
您將不得不自己編輯ServiceReferences.ClientConfig。無論如何,它們都是自動生成的。查看實際硬盤上的項目文件。 – 2011-02-28 21:15:36