2011-03-16 110 views
2

我不知道爲什麼,但有時加載操作成功,有時它不。是否因爲很多(6-7)請求是同時發生的?所有get查詢偶爾會失敗。這是錯誤之一: -一次又一次我得到LoadOperation失敗

Webpage error details 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; Tablet PC 2.0; .NET4.0C; .NET4.0E) 
Timestamp: Wed, 16 Mar 2011 03:22:10 UTC 


Message: Unhandled Error in Silverlight Application 
Code: 4004  
Category: ManagedRuntimeError  
Message: System.ServiceModel.DomainServices.Client.DomainOperationException: Load operation failed for query 'GetSiteTerms'. The remote server returned an error: NotFound. ---> System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. 
    at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) 
    at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState) 
    at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState) 
    --- End of inner exception stack trace --- 
    at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) 
    at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 
    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result) 
    --- End of inner exception stack trace --- 
    at System.ServiceModel.DomainServices.Client.WebDomainClient`1.EndQueryCore(IAsyncResult asyncResult) 
    at System.ServiceModel.DomainServices.Client.DomainClient.EndQuery(IAsyncResult asyncResult) 
    at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult) 
    --- End of inner exception stack trace --- 
    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.<Load>b__17(Object)  

Line: 76 
Char: 13 
Code: 0 
URI: http://localhost:9090/Default.aspx 

是RIA服務不穩定或做我需要做的SQL Server中設置的一些變化?

感謝提前:)

回答

2

「未發現」異常「一般保護故障」後,贏得樂意提供協助,第二位。這可能是一些問題,都隱藏在那個難以逾越的「未找到」堡壘之後。

這經常發生,因爲WCF服務調用返回HTTP結果4xx或5xx。然後,Silverlight生成的異常無助於調試問題。但是你不需要Silverlight來幫助 - 問題畢竟是服務器端的。如果您啓動了Fiddler,您將能夠看到Silverlight客戶端和服務器之間的流量。在那裏,您還可以看到確切的異常消息和堆棧跟蹤的確切服務器響應。

嘗試使用"How to Permanently Banish Silverlight’s 「Not Found」 Error for WCF Service Calls"中的提示使Silverlight錯誤更加可口。

+0

這是一些記憶問題。與Fiddler一起檢查。我有隻有2 GB的內存和Visual Studio 2010,Expression Blend和Sql Server的舊筆記本電腦一切正在運行。由於性能非常差,我關閉了虛擬內存,以便數據不會寫入硬盤,但我的內存接近滿,所以我得到了這個錯誤。不管怎麼說,多謝拉。 – TCM 2011-03-18 15:10:14

+0

@stefan找不到網址 – 2014-06-27 06:16:01

+0

修正了網址,添加了Fiddler提示。 – 2014-06-28 07:05:38

2

我與這個錯誤爭取了2天,並找出最新的問題是...... 默認情況下,當您嘗試加載數據源時,它只能處理64K數據....當您找不到意味着大小大於64k ......嘗試複製表格,將行數降至10-15(僅測試),然後嘗試執行應用程序,它將正常工作......

相關問題