捕获 IE 嵌入式 UserControl 加载时的错误
我有一个通过对象标记嵌入到 asp.net 页面中的 UserControl (.dll),通常该控件加载正常,但如果加载失败,它只会显示一个空白页面,左上角有一个图标。有没有办法在加载用户控件期间捕获任何错误或查看任何错误消息? Visual Studio 2008 调试器似乎无法在这种情况下提供帮助。
/丹尼尔
I have a UserControl (.dll) that is embedded via the object tag in a asp.net page, normally the control loads fine but when it does not it only shows a blank page with a icon in the top left corner. Is there any way to trap any errors or view any error messages during the loading of the UserControl? The visual studio 2008 debugger does not seem to be able to help out in this case.
/Daniel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否已将调试器附加到 iexplore.exe 进程?你的dll加载了吗? (调试时 VS 中的模块窗口。)
您可以在 IE 中启用 .net 控件加载的日志记录: http://support.microsoft.com/kb/313892
您可以启用融合日志记录以查看依赖程序集是否存在任何其他问题:htREMOVETHIStp://blogs.msdn.com/suzcook/archive/2003/ 05/29/57120.aspx, httREMOVETHISp://msdn.microsoft.com/en-us/library/e74a18c4%28VS.71%29.aspx
我遇到的问题:
gacutil /ldl
和gacutil /cdl
)以及临时 Internet 文件
代码>.如果嵌入式控件不起作用,最好清除两者。祝你好运。 (你会需要它...)
对于删除感到抱歉,因此对链接进行了投诉。
Have you attached the debugger to the iexplore.exe process? Does your dll get loaded? (Modules window in VS when debugging.)
You can enable logging for the loading of a .net control in IE: http://support.microsoft.com/kb/313892
You can enable fusion logging to see if there are any further issues with dependant assemblies: htREMOVETHIStp://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx, httREMOVETHISp://msdn.microsoft.com/en-us/library/e74a18c4%28VS.71%29.aspx
Issues I've had:
gacutil /ldl
andgacutil /cdl
on the command line), and in theTemporary Internet Files
. It is best to clear both if the embedded control doesn't work.Good luck. (You're gonna need it...)
Sorry about the REMOVETHIS, SO complained about the links.