I integrated MVC3 into my webforms app using Scott Hanselmans article: http://www.hanselman.com/blog/IntegratingASPNETMVC3IntoExistingUpgradedASPNET4WebFormsApplications.aspx
All ways good and seemed to work fine when running locally on my pc. However when this has been deployed to testing the following URL breaks the app giving me a 404: http://testserver/portal/Services/SEBService.asmx/SEBSearch
if I put in just: http://testserver/portal/Services/SEBService.asmx it sees the service
scratching my head I tried the following fix in global.asax:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{resource}.asmx/{*pathInfo}");
}
Alas still broken :( Any thoughts, fixes, recommendations would be greatly appreciated
fixed with this:
routes.Ignore("{*allasmx}", new { allasmx = @".*\.asmx(/.*)?" });
very odd how it worked on some machines and not others but with the above included it works on all machines.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With