简体   繁体   English

在Visual Studio或IIS中运行时,是否可以找到网站锁定的对象和DLL?

[英]Is it possible to find the objects and DLL which a website is locking when running in Visual Studio or IIS?

在Visual Studio或IIS中运行时,是否可以找到网站锁定的对象和DLL?

The SysInternals suite contains lots of useful tools for this sort of thing - see http://technet.microsoft.com/en-us/sysinternals/default.aspx SysInternals套件包含许多有用的工具,请参阅http://technet.microsoft.com/en-us/sysinternals/default.aspx

Process Explorer Process Explorer

Find out what files, registry keys and other objects processes have open, which DLLs they have loaded, and more. 找出哪些文件,注册表项和其他对象进程已打开,它们加载了哪些DLL等等。 This uniquely powerful utility will even show you who owns each process. 这个功能独特的实用程序甚至可以向您显示每个进程的拥有者。

Process Monitor 进程监视器

Monitor file system, Registry, process, thread and DLL activity in real-time. 实时监控文件系统,注册表,进程,线程和DLL活动。

You can see what objects, DLLs and other files are locked by any process (including Visual Studio or IIS) by using a tool such as Process Explorer . 您可以使用Process Explorer等工具查看任何进程(包括Visual Studio或IIS)锁定了哪些对象,DLL和其他文件。 For IIS you will want to view the file handles that are open for w3wp.exe or dllhost.exe, depending on what version of IIS you are using. 对于IIS,您需要查看为w3wp.exe或dllhost.exe打开的文件句柄,具体取决于您使用的IIS版本。 With Visual Studio you will want to inspect the devenv.exe process. 使用Visual Studio,您将需要检查devenv.exe进程。

There is a nice search feature in Process Explorer that will be useful if you know the name of the file you suspect is being locked in advance. Process Explorer中有一个很好的搜索功能,如果你知道你怀疑被提前锁定的文件的名称,它将非常有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 网站在 IIS 中运行时找不到 DLL - Unable to find DLL when website runs in IIS web 应用程序复制 grpc DLL 在 IIS 工作进程运行时在 Visual Studio 中构建错误 - web app copy grpc DLL build error in Visual Studio when IIS Worker Process is running 使用 Visual Studio 运行时查找和替换有效,但在运行 IIS 时出现空异常错误 - Find and Replace works when running with visual studio but when running off of IIS i get null exception error Visual Studio单元测试锁定dll - Visual Studio Unit Test locking dll 查找在其上构建exe / dll的Visual Studio版本(C#) - Find visual studio release on which an exe/dll was build (C#) 给定Visual Studio中的一个类,如何找出包含它的dll? - Given a class in Visual Studio, how to find out which dll contains it? 在IIS下运行的网站的调试dll - Debug dll of website running under IIS 在 Visual Studio 上通过 IIS Express 运行时可以加载图像,但通过 IIS 运行时无法加载 - Image can load when running by IIS Express on Visual studio, but can't load when running by IIS 在Unity中运行的外部DLL的行为与在Visual Studio中运行的行为不同 - External DLL running in Unity behaves differently then when run in Visual Studio Visual Studio 2013.2 无法构建,因为 IIS 正在锁定程序集 - Visual Studio 2013.2 can't build because IIS is locking an assembly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM