How to specify custom HPPTHandlers in Asp.Net 2.0 web.config RRS feed

  • Question

  • User-240534069 posted
    Not minding my noviceity on the matter, please guide me out of this issue:

    Here, I have got a web application project using VS 2005, wherein I want to point all my .aspx requests to a particular httphandler, all the plumbing in implementing a class extended from IHTTPHandler being in the same assembly, I have got stuck in the web.config wherein I have to map the request type with the handler something like this:
    <add verb="*" path="*.aspx" type="abc.xyx.MyHttpHandler,WebDashboard"/>

    The problem here is that at runtime the assembly is not being located, and hence a vanilla screen each time I run the app, with the following message:
    Parser Error Message: Could not load file or assembly 'WebDashboard' or one of its dependencies. The system cannot find the file specified.

    Had it been VS 2003, we would have safely given the name of the web app assembly name. But in VS2005, it does not put the compiled assembly into the bin.
    Has this problem something to do with the dynamic compilation feature of the VS2005? If yes, how should be the assembly name provided correctly?

    Thanks in advancs,
    Friday, August 11, 2006 7:07 AM

All replies

  • User1181216341 posted

    I think there is a way around this in 2005 Web Site Project (not sure what it is) but a better choice might be to check out

    Visual Studio 2005 Web Application Project Option http://webproject.scottgu.com/Default.aspx

    this add on gives you the 2003 style project where you compile your project into a dll, I believe it is going to be packed with Visual Studio 2005 Service Pack 1?


    Also - would it be better to map ashx extensions to your handler instead of aspx as that is already mapped for standard aspx pages?

    Friday, August 11, 2006 10:11 PM