asp.net mvc - HttpHandler not working -


i trying integrate fileupload project vid.ly web application in mvc asp .net 4 framework using razor engine.

i have httphandler under app_code. progress.cs

public class progress : ihttphandler {  ... } 

i added in registerroutes() called globals.asax:

routes.ignoreroute("progress.progress"); 

and added these lines in system.web section in web.config:

<httphandlers>     <add verb="*" path="*.progress" type="mynamespace.progress"/> </httphandlers> 

when try open http://localhost:39234/progress.progress, http error 404.0 - not found error below detailed information:

requested url      http://localhost:39234/progress.progress physical path      c:\users\xxxxx\documents\visual studio 2012\projects\solutionname\projectname\progress.progress 

seems wrong mapping. have idea i'm missing?

i figured out problem was. had put mappings in system.webserver section in format:

<add name="progress" verb="*" path="*.progress" type="mynamespace.progress,mynamespace"/> 

or, set action build path "content" progress.cs files doesn't compiled in mynamespace.dll


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -