作者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