Groups > Asp .Net > HttpHandlers and HttpModules > Re: My HttpHandler is not working




My HttpHandler is not working

My HttpHandler is not working
Sat, 8 Mar 2008 00:05:49 +0000
Hi, I wrote a handler in VWD. My code looks something like this:


namespace org.cl.handler
{
public class CpHandler : IHttpHandler, IRequiresSessionState {
    public void ProcessRequest (HttpContext context) {
.... 
}
} 

 I added the reference to the web.config file


     <httpHandlers>
      <add path="cp.img" verb="*"
type="org.cl.handler.CpHandler, org.cl.com.handler" />
    </httpHandlers>

however when I try to access the cp.img I get the following:

Could not load file or assembly 'org.cl.handler' or one of its dependencies. The
system cannot find the file specified.


How do I create an assembly or include it if it is there already?


 -Am
Post Reply
Re: My HttpHandler is not working
Sat, 8 Mar 2008 08:55:47 +0000
if(you created a .dll file==> you must added this tag to web.config)

{

    <httpHandlers>
      <add path="cp.img" verb="*"
type="org.cl.handler.CpHandler, org.cl.com.handler" />
    </httpHandlers>

}

else

{

   <httpHandlers>
      <add path="cp.img" verb="*"
type="org.cl.handler.CpHandler" />
    </httpHandlers>

}
Post Reply
Re: My HttpHandler is not working
Mon, 10 Mar 2008 20:48:14 +000
How do I create a dll with visual web developer express ?

You dont. It is not supported.
Post Reply
Re: My HttpHandler is not working
Mon, 10 Mar 2008 21:03:37 +000
How do I create a dll with visual web developer express ?

-Am
Post Reply
Re: My HttpHandler is not working
Tue, 11 Mar 2008 23:42:23 +000
To compile a website, use the aspnet_compiler.exe found in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 (or whatever version you have).  


See the topic How To: Precompile ASP.NET Web Sites in the help file.
Post Reply
about | contact