作者Iories (無法克制)
看板Visual_Basic
標題[.NET] VB2010無法偵錯
時間Mon Dec 13 20:54:12 2010
請輸入專案類型(網站專案或者應用程式專案):
VB2010
請問我的VB2010突然發生無法偵錯的情況
連開啟一個新的專案,直接按F5都會出現以下錯誤
我把VB2010重灌還是一樣
請問有人知道這該怎麼解決嗎?
感謝!
--
System.InvalidOperationException 未處理
Message=建立表單時發生錯誤。如需詳細資訊,請參閱 Exception.InnerException。
錯誤是: 外部元件傳回例外狀況。
Source=WindowsApplication1
StackTrace:
於 WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T
Instance) 於 17d14f5c-a337-4978-8281-53493378c1071.vb: 行 190
於 WindowsApplication1.My.MyProject.MyForms.get_Form1()
於 WindowsApplication1.My.MyApplication.OnCreateMainForm() 於
C:\Documents and Settings\Administrator\Local Settings\Application
Data\Temporary Projects\WindowsApplication1\My
Project\Application.Designer.vb: 行 35
於
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
於
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
於
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]
commandLine)
於 WindowsApplication1.My.MyApplication.Main(String[] Args) 於
17d14f5c-a337-4978-8281-53493378c1071.vb: 行 81
於 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
String[] args)
於 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
於 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
於 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
於 System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
ignoreSyncCtx)
於 System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
於 System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Runtime.InteropServices.SEHException
Message=外部元件傳回例外狀況。
Source=System.Drawing
ErrorCode=-2147467259
StackTrace:
於
System.Drawing.SafeNativeMethods.Gdip.GdipCreateFontFromLogfontW(HandleRef
hdc, Object lf, IntPtr& font)
於 System.Drawing.Font.FromLogFont(Object lf, IntPtr hdc)
於 System.Drawing.Font.FromHfont(IntPtr hfont)
於 System.Drawing.SystemFonts.get_DefaultFont()
於 System.Windows.Forms.Control.get_DefaultFont()
於 System.Windows.Forms.Control.get_Font()
於 System.Windows.Forms.Control.get_FontHeight()
於 System.Windows.Forms.TextBoxBase.get_PreferredHeight()
於 System.Windows.Forms.TextBoxBase.get_DefaultSize()
於 System.Windows.Forms.Control..ctor(Boolean
autoInstallSyncContext)
於 System.Windows.Forms.TextBoxBase..ctor()
於 System.Windows.Forms.TextBox..ctor()
於 WindowsApplication1.Form1.InitializeComponent() 於
C:\Documents and Settings\Administrator\Local Settings\Application
Data\Temporary Projects\WindowsApplication1\Form1.Designer.vb: 行 26
於 WindowsApplication1.Form1..ctor()
InnerException:
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.0.206.76
1F:推 Marty:第35行有一個未知的元件 可能是dll沒註冊好 12/13 21:42
2F:→ Iories:重新註冊所有dll後仍然沒有解決...>"< 12/14 00:55
3F:推 Marty:確認在[參考]的地方有引入該元件... 12/14 08:16
4F:→ narcissusli:最近也被這鳥問題搞得好煩,反覆實驗後應該是有什麼地 12/30 22:35
5F:→ narcissusli:方沒設定好,但又一直找不到. 12/30 22:35
6F:→ Iories:我在過了幾星期後再執行一樣的程式...就可以了... 02/09 09:13
7F:→ Iories:完全沒做任何修改,我只能猜是VB的bug 02/09 09:13