0
這不是重複的,我對這個研究不要小時,並試圖一切,沒有我已經找到了線程和答案是VS2017無論錯誤HRESULT E_FAIL已經從對COM組件的調用中返回。
設計者錯誤
我使用VS2017中,使用項目模板IM是一個WinForms控件庫
輸出:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.LanguageServices.Implementation.Utilities.Exceptions.ThrowEFail()
at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.CodeTypeRef.LookupTypeSymbol()
at Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.CodeTypeRef.get_TypeKind()
at EnvDTE.CodeTypeRef.get_TypeKind()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.GetUrtTypeFromVsType(CodeTypeRef vsType)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnTypePopulateMembers(Object sender, EventArgs e)
at System.CodeDom.CodeTypeDeclaration.get_Members()
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
的事情,我已經嘗試 -Locating項目和項目模板和removin摹他們 -Locating項目和項目模板緩存和刪除它們 -Resetting所有設置爲默認 的拆卸,對外部庫的所有引用和控制 -Updating VS -Plus更多我已經忘記
該錯誤只發生在我目前的項目中,這很大,錯誤只發生在VS設計師,我也注意到,當我建立項目時,自定義控件不會在設計器視圖中更新,即使我對任何類進行更改,直到該項目運行
任何幫助將不勝感激
看起來像一個損壞的設計器文件。如果你有你的項目在版本控制下,我會開始回顧文件中的變化。 –
@伊恩巴拉德我會給它一個鏡頭,似乎它是一個常見的錯誤,但所有常見的解決方案都沒有爲我工作,我已經縮小到與該項目的問題,但在哪裏?我不知道 –