Hi,
This is normal. It usually happens when the HTML you are trying to convert accessed something that triggers your local IIS. Below is an example when this can happen.
Normal ScenarioWhen you run your web app inside Visual Studio, Visual Studio would run WebDev.WebServer.exe and your application would have an Url like this:
http://localhost:1234/somepage.aspx
If you call our HTML to PDF converter with the following HTML:
Code: HTML/ASPX
<img src="http://localhost:1234/image_handler.aspx?id=xxxxx" />
Then the converter will try to load "http://localhost:1234/image_handler.aspx?id=xxxxx" in order to get the image data so that it can render the image. This request will be handled by WebDev.WebServer.exe, which would lock your Process.dll. This is all fine. When Visual Studio recompiles, it would kill WebDeve.WebServer.exe to release Process.dll so that it can update it.
Scenario When Your Local IIS is triggeredOn the other hand, if you call our HTML to PDF converter with the following HTML:
Code: HTML/ASPX
<img src="http://localhost/image_handler.aspx?id=xxxxx" />
Then the converter will try to load "http://localhost/image_handler.aspx?id=xxxxx". Note this Url does not have the port number in it. So it will be handled by IIS, not by WebDev.WebServer.exe. As a result, W3WP.exe (ASP.NET worker process for IIS) is launched to handle that request. If the Url happens to map into your application (mostly like in your case), it will load your Process.dll. Visual Studio is not aware that your local IIS has kicked in and it would not try to kill it when recompiling your project. Thus your Process.dll would be locked.
The bottom line is W3WP.exe (your local IIS) should not be triggered. The easiest way to avoid this is to use relative Urls. For example, if your HTML is like:
Code: HTML/ASPX
<img src="image_handler.aspx?id=xxxxx" />
Then it would work regardless how you deploy your project.
Another way is to simply kill w3wp.exe from Task Manager when you recompile.
Hope this makes sense to you. Please feel free to let us know if you have any more questions.
Thanks!