C# 点击调试(G)-->启动新实例(S) 弹出对话框 提示:未将对象应用设置到到对象的实例。 C# 点击调试(G)-->启动新实例(S) 弹出对话框 提示:未将对象应用设置到到对象的实例。点击三角形启动(一切正常可以运行),把页面关闭,但还要点击停止调试(正方形)才能退出调试哪位大侠指点下? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 项目启动调试的时候 点击三角形调试正常,鼠标右键点击项目调试 (点击调试(G)-->启动新实例(S) 弹出对话框 提示:未将对象应用设置到到对象的实例。)出现这个错误? “hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Knowledge.vshost.exe”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。线程 0xe44 已退出,返回值为 0 (0x0)。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Knowledge.exe”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\log4net.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Common.dll”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Windows.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\mscorlib.resources\2.0.0.0_zh-CHS_b77a5c561934e089\mscorlib.resources.dll”,未加载符号。hanvnet.Knowledge.Program: INFO 2010-10-28 15:29:49,187 [11]:46 加载应用程序配置文件.hanvnet.Knowledge.Program: INFO 2010-10-28 15:29:49,234 [11]:62 应用程序启动成功.“hanvnet.Knowledge.vshost.exe”(托管): 已加载“7yeahiyb”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Dao.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Dxo.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Dto.dll”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Dao.dll”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Service.dll”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.JScript\8.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Vsa\8.0.0.0__b03f5f7f11d50a3a\Microsoft.Vsa.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“ledxa8cm”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“ledxa8cm.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Security.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Data.SqlXml\2.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Base.dll”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\WeifenLuo.WinFormsUI.Docking.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms.resources\2.0.0.0_zh-CHS_b77a5c561934e089\System.Windows.Forms.resources.dll”,未加载符号。hanvnet.Base.FrmBase: INFO 2010-10-28 15:29:54,031 [11]:157 start 系统登录在 System.NullReferenceException 中第一次偶然出现的“Seasar.dll”类型的异常在 System.NullReferenceException 中第一次偶然出现的“Seasar.dll”类型的异常hanvnet.Base.FrmBase: ERROR 2010-10-28 15:31:00,281 [11]:224 未将对象引用设置到对象的实例。System.NullReferenceException: 未将对象引用设置到对象的实例。 在 Seasar.Extension.Tx.Impl.TxDataSource.GetConnection() 在 Seasar.Dao.Dbms.DbmsManager.GetDbms(IDataSource dataSource) 在 Seasar.Dao.Impl.DaoMetaDataImpl.Initialize() 在 Seasar.Dao.Impl.DaoMetaDataFactoryImpl.CreateDaoMetaData(Type daoType) 在 Seasar.Dao.Impl.DaoMetaDataFactoryImpl.GetDaoMetaData(Type daoType) 在 Seasar.Dao.Interceptors.S2DaoInterceptor.Invoke(IMethodInvocation invocation) 在 Seasar.Framework.Aop.Proxy.AopProxy.Invoke(IMessage msg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 在 hanvnet.Dao.Master.IMUserDao.SelectByPk(MasterCondition condition) 在 hanvnet.Service.Impl.KnowledgeServiceImpl.SelectByPk(KnowledgeCondition condition) 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Service\Impl\KnowledgeServiceImpl.cs:行号 657 在 Seasar.Framework.Aop.Proxy.AopProxy.Invoke(IMessage msg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 在 hanvnet.Service.IKnowledgeService.SelectByPk(KnowledgeCondition condition) 在 hanvnet.Knowledge.FrmUserLogin.OnLogin() 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\FrmUserLogin.cs:行号 255 在 hanvnet.Knowledge.FrmUserLogin.Button_Click(Object sender, EventArgs e) 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\FrmUserLogin.cs:行号 213 说明有错误,用个try catch放上去就能看出来了。否则运行就直接从错误地方跳出去了但不报错。未将对想引用到对象实例,就一句话:说明你传的值中有空值,找到就行了,应该不会太难 C# 点击调试(G)-->启动新实例(S) 弹出对话框 提示:未将对象应用设置到到对象的实例。点击三角形启动(一切正常可以运行),把页面关闭,但还要点击停止调试(正方形)才能退出调试哪位大侠指点下?1. 那说明,被你启动调试的程序有问题,肯定是哪个变量为null 而你又引用了改变成的成员,导致未将对象应用设置到到对象的实例2. 点击三角形启动(一切正常可以运行), 是因此,有问题的那个程序不是默认启动调试的程序 【C# 点击调试(G)-->启动新实例(S) 弹出对话框 提示:未将对象应用设置到到对象的实例。点击三角形启动(一切正常可以运行),把页面关闭,但还要点击停止调试(正方形)才能退出调试】我把try catch 去掉 提示对话框(没有为任何调用堆窄框架加载任何符号。无法显示代码)-->(正试图在 OS 加载程序锁内执行托管代码。不要尝试在 DllMain 或映像初始化函数内运行托管代码,这样做会导致应用程序挂起。) “hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Knowledge.vshost.exe”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。线程 0x3d0 已退出,返回值为 0 (0x0)。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Knowledge.exe”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\log4net.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Common.dll”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Windows.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\mscorlib.resources\2.0.0.0_zh-CHS_b77a5c561934e089\mscorlib.resources.dll”,未加载符号。hanvnet.Knowledge.Program: INFO 2010-10-29 09:12:51,546 [11]:46 加载应用程序配置文件.hanvnet.Knowledge.Program: INFO 2010-10-29 09:12:51,593 [11]:62 应用程序启动成功.“hanvnet.Knowledge.vshost.exe”(托管): 已加载“2g4kl7h1”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Dao.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Dxo.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Dto.dll”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Dao.dll”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Service.dll”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.JScript\8.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Vsa\8.0.0.0__b03f5f7f11d50a3a\Microsoft.Vsa.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“zfvkgwny”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“zfvkgwny.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Security.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Data.SqlXml\2.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Base.dll”,符号已加载。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\WeifenLuo.WinFormsUI.Docking.dll”,未加载符号。“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms.resources\2.0.0.0_zh-CHS_b77a5c561934e089\System.Windows.Forms.resources.dll”,未加载符号。hanvnet.Base.FrmBase: INFO 2010-10-29 09:12:57,296 [11]:157 start 系统登录在 System.NullReferenceException 中第一次偶然出现的“Seasar.dll”类型的异常在 System.NullReferenceException 中第一次偶然出现的“Seasar.dll”类型的异常hanvnet.Knowledge.Program: DEBUG 2010-10-29 09:12:58,984 [11]:100 Error:未将对象引用设置到对象的实例。System.NullReferenceException: 未将对象引用设置到对象的实例。 在 Seasar.Extension.Tx.Impl.TxDataSource.GetConnection() 在 Seasar.Dao.Dbms.DbmsManager.GetDbms(IDataSource dataSource) 在 Seasar.Dao.Impl.DaoMetaDataImpl.Initialize() 在 Seasar.Dao.Impl.DaoMetaDataFactoryImpl.CreateDaoMetaData(Type daoType) 在 Seasar.Dao.Impl.DaoMetaDataFactoryImpl.GetDaoMetaData(Type daoType) 在 Seasar.Dao.Interceptors.S2DaoInterceptor.Invoke(IMethodInvocation invocation) 在 Seasar.Framework.Aop.Proxy.AopProxy.Invoke(IMessage msg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 在 hanvnet.Dao.Master.IMUserDao.SelectByPk(MasterCondition condition) 在 hanvnet.Service.Impl.KnowledgeServiceImpl.SelectByPk(KnowledgeCondition condition) 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Service\Impl\KnowledgeServiceImpl.cs:行号 657 在 Seasar.Framework.Aop.Proxy.AopProxy.Invoke(IMessage msg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 在 hanvnet.Service.IKnowledgeService.SelectByPk(KnowledgeCondition condition) 在 hanvnet.Knowledge.FrmUserLogin.OnLogin() 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\FrmUserLogin.cs:行号 265 在 hanvnet.Knowledge.FrmUserLogin.Button_Click(Object sender, EventArgs e) 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\FrmUserLogin.cs:行号 224 在 System.Windows.Forms.Control.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ButtonBase.WndProc(Message& m) 在 System.Windows.Forms.Button.WndProc(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) 在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) 在 System.Windows.Forms.Application.Run(ApplicationContext context) 在 hanvnet.Knowledge.Program.Main() 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\Program.cs:行号 77hanvnet.Knowledge.Program: INFO 2010-10-29 09:13:01,265 [11]:105 应用程序安全结束.线程 0xa9c 已退出,返回值为 0 (0x0)。线程 0x9e0 已退出,返回值为 0 (0x0)。 提示对话框(没有为任何调用堆窄框架加载任何符号。无法显示代码)-->(正试图在 OS 加载程序锁内执行托管代码。不要尝试在 DllMain 或映像初始化函数内运行托管代码,这样做会导致应用程序挂起。) 把Seasar.Extension.Tx.Impl.TxDataSource.GetConnection()这个方法的代码弄出来看一下 <component name="DataSource" class="Seasar.Extension.Tx.Impl.TxDataSource"> <!-- <property name="DataProvider">SqlClient</property> <property name="ConnectionString">"Data Source=;Initial Catalog=;User ID=;Password="</property> <property name="DataProvider">MySql</property> <property name="ConnectionString">"Database=onehelper;Data Source=;User Id=root;Password=onehelper"</property> --> </component> 问题已处理!好了 就是这个方法的问题!( <component name="DataSource" class="Seasar.Extension.Tx.Impl.TxDataSource">) 在 hanvnet.Knowledge.FrmUserLogin.Button_Click(Object sender, EventArgs e) 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\FrmUserLogin.cs:行号 213看这里的代码啊!异常堆栈多清楚啊,打个断点跟进去! string 和 Hex之间的转换 【求助】排除数组重复[帮顶给分] 获取windows路径 小妹郁闷好久在线急求为什么c#后台调用javascript函数没有执行? @@@@@@@@@ vs 2005 可以继承一个WEB窗体的类做为基类么? DataGrid难题大家解!!~~~ 求 .net 企业应用高级编程的代码,有分相赠! 能不能介绍几个好的下载电子书籍的网站和FTP 创建socket出问题了,请教各位?? dataGrid中怎样在固定列上面显示行号? 图文混排html内容导出word 当我点击一个按钮时怎样把datagirdview里面选中的数据移到datagridview1里面去?
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Knowledge.vshost.exe”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
线程 0xe44 已退出,返回值为 0 (0x0)。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Knowledge.exe”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\log4net.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Common.dll”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Windows.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\mscorlib.resources\2.0.0.0_zh-CHS_b77a5c561934e089\mscorlib.resources.dll”,未加载符号。
hanvnet.Knowledge.Program: INFO 2010-10-28 15:29:49,187 [11]:46 加载应用程序配置文件.
hanvnet.Knowledge.Program: INFO 2010-10-28 15:29:49,234 [11]:62 应用程序启动成功.
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“7yeahiyb”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Dao.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Dxo.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Dto.dll”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Dao.dll”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Service.dll”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.JScript\8.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Vsa\8.0.0.0__b03f5f7f11d50a3a\Microsoft.Vsa.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“ledxa8cm”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“ledxa8cm.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Security.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Data.SqlXml\2.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Base.dll”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\WeifenLuo.WinFormsUI.Docking.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms.resources\2.0.0.0_zh-CHS_b77a5c561934e089\System.Windows.Forms.resources.dll”,未加载符号。
hanvnet.Base.FrmBase: INFO 2010-10-28 15:29:54,031 [11]:157 start 系统登录
在 System.NullReferenceException 中第一次偶然出现的“Seasar.dll”类型的异常
在 System.NullReferenceException 中第一次偶然出现的“Seasar.dll”类型的异常
hanvnet.Base.FrmBase: ERROR 2010-10-28 15:31:00,281 [11]:224 未将对象引用设置到对象的实例。
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 Seasar.Extension.Tx.Impl.TxDataSource.GetConnection()
在 Seasar.Dao.Dbms.DbmsManager.GetDbms(IDataSource dataSource)
在 Seasar.Dao.Impl.DaoMetaDataImpl.Initialize()
在 Seasar.Dao.Impl.DaoMetaDataFactoryImpl.CreateDaoMetaData(Type daoType)
在 Seasar.Dao.Impl.DaoMetaDataFactoryImpl.GetDaoMetaData(Type daoType)
在 Seasar.Dao.Interceptors.S2DaoInterceptor.Invoke(IMethodInvocation invocation)
在 Seasar.Framework.Aop.Proxy.AopProxy.Invoke(IMessage msg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 hanvnet.Dao.Master.IMUserDao.SelectByPk(MasterCondition condition)
在 hanvnet.Service.Impl.KnowledgeServiceImpl.SelectByPk(KnowledgeCondition condition) 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Service\Impl\KnowledgeServiceImpl.cs:行号 657
在 Seasar.Framework.Aop.Proxy.AopProxy.Invoke(IMessage msg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 hanvnet.Service.IKnowledgeService.SelectByPk(KnowledgeCondition condition)
在 hanvnet.Knowledge.FrmUserLogin.OnLogin() 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\FrmUserLogin.cs:行号 255
在 hanvnet.Knowledge.FrmUserLogin.Button_Click(Object sender, EventArgs e) 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\FrmUserLogin.cs:行号 213
未将对想引用到对象实例,就一句话:说明你传的值中有空值,找到就行了,应该不会太难
点击三角形启动(一切正常可以运行),把页面关闭,但还要点击停止调试(正方形)才能退出调试哪位大侠指点下?1. 那说明,被你启动调试的程序有问题,肯定是哪个变量为null 而你又引用了改变成的成员,导致未将对象应用设置到到对象的实例2. 点击三角形启动(一切正常可以运行), 是因此,有问题的那个程序不是默认启动调试的程序
点击三角形启动(一切正常可以运行),把页面关闭,但还要点击停止调试(正方形)才能退出调试】
我把try catch 去掉 提示对话框(没有为任何调用堆窄框架加载任何符号。无法显示代码)
-->(正试图在 OS 加载程序锁内执行托管代码。不要尝试在 DllMain 或映像初始化函数内运行托管代码,这样做会导致应用程序挂起。)
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Knowledge.vshost.exe”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
线程 0x3d0 已退出,返回值为 0 (0x0)。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Knowledge.exe”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\log4net.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Common.dll”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Windows.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\mscorlib.resources\2.0.0.0_zh-CHS_b77a5c561934e089\mscorlib.resources.dll”,未加载符号。
hanvnet.Knowledge.Program: INFO 2010-10-29 09:12:51,546 [11]:46 加载应用程序配置文件.
hanvnet.Knowledge.Program: INFO 2010-10-29 09:12:51,593 [11]:62 应用程序启动成功.
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“2g4kl7h1”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Dao.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\Seasar.Dxo.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Dto.dll”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Dao.dll”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Service.dll”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.JScript\8.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Vsa\8.0.0.0__b03f5f7f11d50a3a\Microsoft.Vsa.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“zfvkgwny”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“zfvkgwny.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Security.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Data.SqlXml\2.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll”,已跳过符号加载。已对模块进行了优化并启用了调试器选项“仅我的代码”。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\hanvnet.Base.dll”,符号已加载。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“D:\hanvnet.system\source\hanvnet.System\hanvnet.Bin\WeifenLuo.WinFormsUI.Docking.dll”,未加载符号。
“hanvnet.Knowledge.vshost.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms.resources\2.0.0.0_zh-CHS_b77a5c561934e089\System.Windows.Forms.resources.dll”,未加载符号。
hanvnet.Base.FrmBase: INFO 2010-10-29 09:12:57,296 [11]:157 start 系统登录
在 System.NullReferenceException 中第一次偶然出现的“Seasar.dll”类型的异常
在 System.NullReferenceException 中第一次偶然出现的“Seasar.dll”类型的异常
hanvnet.Knowledge.Program: DEBUG 2010-10-29 09:12:58,984 [11]:100 Error:未将对象引用设置到对象的实例。
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 Seasar.Extension.Tx.Impl.TxDataSource.GetConnection()
在 Seasar.Dao.Dbms.DbmsManager.GetDbms(IDataSource dataSource)
在 Seasar.Dao.Impl.DaoMetaDataImpl.Initialize()
在 Seasar.Dao.Impl.DaoMetaDataFactoryImpl.CreateDaoMetaData(Type daoType)
在 Seasar.Dao.Impl.DaoMetaDataFactoryImpl.GetDaoMetaData(Type daoType)
在 Seasar.Dao.Interceptors.S2DaoInterceptor.Invoke(IMethodInvocation invocation)
在 Seasar.Framework.Aop.Proxy.AopProxy.Invoke(IMessage msg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 hanvnet.Dao.Master.IMUserDao.SelectByPk(MasterCondition condition)
在 hanvnet.Service.Impl.KnowledgeServiceImpl.SelectByPk(KnowledgeCondition condition) 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Service\Impl\KnowledgeServiceImpl.cs:行号 657
在 Seasar.Framework.Aop.Proxy.AopProxy.Invoke(IMessage msg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 hanvnet.Service.IKnowledgeService.SelectByPk(KnowledgeCondition condition)
在 hanvnet.Knowledge.FrmUserLogin.OnLogin() 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\FrmUserLogin.cs:行号 265
在 hanvnet.Knowledge.FrmUserLogin.Button_Click(Object sender, EventArgs e) 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\FrmUserLogin.cs:行号 224
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.Run(ApplicationContext context)
在 hanvnet.Knowledge.Program.Main() 位置 D:\hanvnet.system\source\hanvnet.System\hanvnet.Knowledge\Program.cs:行号 77
hanvnet.Knowledge.Program: INFO 2010-10-29 09:13:01,265 [11]:105 应用程序安全结束.
线程 0xa9c 已退出,返回值为 0 (0x0)。
线程 0x9e0 已退出,返回值为 0 (0x0)。
-->(正试图在 OS 加载程序锁内执行托管代码。不要尝试在 DllMain 或映像初始化函数内运行托管代码,这样做会导致应用程序挂起。)
这个方法的代码弄出来看一下
<!--
<property name="DataProvider">SqlClient</property>
<property name="ConnectionString">"Data Source=;Initial Catalog=;User ID=;Password="</property>
<property name="DataProvider">MySql</property>
<property name="ConnectionString">"Database=onehelper;Data Source=;User Id=root;Password=onehelper"</property>
-->
</component>
( <component name="DataSource" class="Seasar.Extension.Tx.Impl.TxDataSource">)