hi i have implemented URL routing in asp.net 4.0 using following route.
routes.MapPageRoute(
"NewsDetails", // Route name
"news/{i}/{*n}", // Route URL
"~/newsdetails.aspx" // Web page to handle route
);
which gives me url like
http://www.mysie.com/news/1/this-is-test-news
Which is working in my localhost fine. but when i uploaded it on the server it gives
Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
if i try http://www.mysie.com/news/1/this-is-test-news.aspx then it displays page.
can anyone have same problem?
how can i set URL http://www.mysie.com/news/1/this-is-test-news to work on windows server 2008 ?