c# - ASP.Net 4.5 Web Forms routing works for a while then breaks. Why? -


i'm using below code in global.asax:

protected void application_start(object sender, eventargs e) {     registerroutes(routetable.routes); }  protected void registerroutes(routecollection routes) {     routes.mappageroute("apiroute", "{appid}/{key}/{method}/", "~/handler.aspx"); } 

at first when deploy it, , couple of minutes after that, code works following sample request:

http://localhost/app1/4/em9tcrqt+bzmdiv0yia5of6i2jb9zlpwb6wwtvzy3zu=/testfn/?param=46 

at first request works , returns results, few minutes later starts throwing 404 not found error.

i tried adding following module through web.config didn't help

<system.webserver> <modules>   <add name="urlroutingmodule" type="system.web.routing.urlroutingmodule, system.web, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"/> </modules> </system.webserver> 

i'm running asp.net 4.5 on windows 2008 r2 server ideas on how solve this?

the project built on older version of visual studio. did fix copy source files new project under visual studio 2013. works fine now


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 -