How to connect Visual Studio 2010 to IIS 7 to debug a custom HttpModule written for an existing third-party web application

First, a little about what I'm trying to achieve.

I have a client application that uses REST services served by ArcGIS Server and IIS 7. I want to be able to modify the response (delete or add parameters) before sending the response to the client. Therefore, I am developing a custom HttpModule using Visual Studio 2010 and .NET 3.5 to intercept and modify the response.

However, it is difficult for me to debug my custom HttpModule. I can connect to the IIS process using Visual Studio 2010 when it is running as an administrator, however running a web-based third-party web application does not crash any of my breakpoints. I can confirm that my module is running, as it can write contents to a file on disk.

What should be noted

  • A third-party web application runs in a virtual directory (for example, arcgis / rest /) on the default website in IIS 7. It runs under its own application pool, which is configured for .NET 2.0, not 4.0.
  • The user module is installed in the bin folder in web applications and configured using the web.config file, not the IIS 7 module management.

: HttpModule, - Visual Studio 2010?

+3
1

, :

  • , . ASP.NET , ..

  • , debug = "true" web.config -,

  • , ( : ).

. , -, virdir, .

+1

Source: https://habr.com/ru/post/1749448/


All Articles