George2
George2

Reputation: 45801

how to debug ashx file in VSTS?

I am using VSTS 2008 + .Net + C#. I am developing an ASP.Net web application. I have added an generic handler, i.e. .ashx file. How to debug this ashx file in VSTS 2008? I find there is no view in browser or set as startup page option. Any ideas?

Upvotes: 4

Views: 3119

Answers (2)

Grzenio
Grzenio

Reputation: 36679

If your project is a Web Service project (or similar name - the icon would have a globe with a document and C#), you can just run this project from VS. VS will run the built in ASP .Net Development Server, and open IExplorer with links to all the files. (at least that what it does for me)

Upvotes: 2

Josef Pfleger
Josef Pfleger

Reputation: 74537

You can simply attach your studio to your IIS webserver (Debug -> Attach to Process -> w3wp.exe).

Upvotes: 4

Related Questions