【发布时间】:2011-10-18 02:39:16
【问题描述】:
当我尝试在 VS 中调试(使用 F5)应用程序时,它向我显示以下异常:
External component has thrown an exception.
这是堆栈跟踪:
说明:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详情:
System.Runtime.InteropServices.SEHException: External component has thrown an exception.`
来源错误:
在执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常起源和位置的信息。
堆栈跟踪:
[SEHException (0x80004005): External component has thrown an exception.]
Microsoft.Win32.Win32Native.CreateFile(String lpFileName, Int32 dwDesiredAccess, FileShare dwShareMode, SECURITY_ATTRIBUTES securityAttrs, FileMode dwCreationDisposition, Int32 dwFlagsAndAttributes, IntPtr hTemplateFile) +0
Microsoft.Win32.Win32Native.SafeCreateFile(String lpFileName, Int32 dwDesiredAccess, FileShare dwShareMode, SECURITY_ATTRIBUTES securityAttrs, FileMode dwCreationDisposition, Int32 dwFlagsAndAttributes, IntPtr hTemplateFile) +29
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) +936
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +82
System.IO.StreamWriter.CreateFile(String path, Boolean append) +55
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +121
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) +29
System.Web.Compilation.StandardDiskBuildResultCache.SavePreservedSpecialFilesCombinedHash(Int64 hash) +116
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDiskBuildResultCache diskCache) +752
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskBuildResultCache diskCache) +55
System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize() +174
System.Web.Compilation.BuildManager.Initialize() +261
System.Web.Compilation.BuildManager.InitializeBuildManager() +246
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +350
[HttpException (0x80004005): External component has thrown an exception.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9013676
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
由此我只能确定调试器在执行此操作时崩溃了
Microsoft.Win32.Win32Native.SafeCreateFile()
知道这里有什么问题吗?
【问题讨论】:
-
还有一件事让您知道,如果您使用 ctrl+F5 运行项目,它会启动项目,然后您可以使用 F5 启动调试器 ...奇怪...通过做它启动了项目,但在尝试渲染母版页时给出了相同的 SEHException,所以我再次使用 ctrl+F5 运行项目并打开页面......然后当我尝试使用 F5 调试项目时它运行完美很好......所以从这种奇怪的行为中我只能得出结论,调试器在渲染开始之前就崩溃了......请帮助我解决这个问题以及为什么这种奇怪的行为有效..
-
在我的 c 盘上我有 141GB 的空闲空间,d 盘上有 218GB 的空闲空间。我将我的项目保存在驱动器 d 中,所以我认为磁盘空间没有任何问题......另外还运行了磁盘清理,但问题仍然存在
-
如果您有任何来自 Trusteer 的应用程序(如 rapport 或其他任何东西),只需卸载并重新启动您的系统,它就会正常工作......在这里找到了这个解决方案:forums.asp.net/t/1704958.aspx/8/… 我不知道为什么这个人只是更新了软件,并没有检查它是否会导致其他应用程序出现任何问题......疯了......
-
停止 Trusteer Rapport 也对我有用。您可以复制上述评论作为答案并接受它作为答案吗?我开始觉得我快疯了。
-
@dvlpr 您将能够在一段时间后接受您的答案。因为这是您的问题,所以只有您可以接受答案。
标签: asp.net asp.net-mvc visual-studio-2010 debugging visual-studio-debugging