我正在使用Mvvm Light(最新版本)構建Silverlight 4應用程序,而VS 2010每5分鐘甚至更少崩潰。所以這是不可能的。Visual Studio崩潰
我相信這是因爲我正在做或者我的MVVM實現有問題。
我在設計師有時會得到這個錯誤。
An unhandled exception has occurred:
[Xml_CannotFindFileInXapPackage]
Arguments: ServiceReferences.ClientConfig
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60129.0&File=System.Xml.dll&Key=Xml_CannotFindFileInXapPackage
at System.Xml.XmlXapResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
at System.ServiceModel.Configuration.ServiceModelSectionGroup.GetSectionGroup()
I don't know if this is related with the crash.
..And I found this error in the event viewer:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ObjectDisposedException
Stack:
at System.Windows.Threading.Dispatcher.FastInvoke(System.Windows.Threading.DispatcherPriority, System.Delegate, System.Object[])
at System.Net.Browser.AsyncHelper.CheckUseLowLatencyNetworking()
at System.Net.Browser.AsyncHelper.BeginOnUI(System.Threading.SendOrPostCallback, System.Object)
at System.Net.Browser.BrowserHttpWebRequest.Abort()
at System.ServiceModel.Channels.HttpOutput+WebRequestHttpOutput.Abort(System.ServiceModel.Channels.HttpAbortReason)
at System.ServiceModel.Channels.HttpChannelFactory+HttpRequestChannel+HttpChannelAsyncRequest.AbortSend()
at System.ServiceModel.Channels.HttpChannelFactory+HttpRequestChannel+HttpChannelAsyncRequest.OnSendTimeout(System.Object)
at System.Threading._TimerCallback.TimerCallback_Context(System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading._TimerCallback.PerformTimerCallback(System.Object)
任何幫助將不勝感激,在此先感謝。
你也使用WCF嗎?您是否意外地嘗試在設計模式下檢索數據? – Robaticus 2011-03-25 19:33:36
檢查項目中是否存在ServiceReferences.ClientConfig文件,如果存在,打開該文件的屬性並設置BuildAction = Content – vorrtex 2011-03-25 19:52:54