我使用的是VS2010,如果我在設計器模式下打開窗體並運行我的應用程序,設計器選項卡將不再顯示窗體設計器,而是顯示一個錯誤(並且它是隻有通過重新啓動IDE固定)說:Visual Studio 2010設計器運行出錯
"To prevent possible data loss before loading the designer, the following errors must be resolved:"
1 Error:
"The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: ##### --- The base class ##### could not be loaded. Ensure the assembly has been referenced and that all projects have been built"
我然後顯示了以下調用堆棧:
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
任何幫助,非常感謝這實在是煩人。
謝謝,
喬爾。
嗨,感謝您的幫助,但我希望在每次發生這種情況時都不用重新啓動IDE(這是很多次)。 – Joel 2011-02-20 18:57:29
我同意,但直到比爾蓋茨修復錯誤,我想你(我)必須。 – 2011-02-21 06:53:25