I have an ASP.NET 4.5 web application built using VS 2013. When I set debug to false in the web.config file, my aspx pages call 404s in production (IIS 8.5). I publish using the publish option VS.
Is this a problem with a known cause or workaround?
EDIT:I created a completely new empty ASP.NET application without links and downloaded it with debug = false and it loaded correctly. Then I went ahead and added the Nuget packages and other settings that my other application had until I hit it. This is FriendlyUrls.
After adding the FriendlyUrls package, it still works fine. Only after I really included it by adding it RouteConfig.RegisterRoutes(RouteTable.Routes);to the Global.asax file did it throw me 404 error. Then I set debug = true, and of course it loads fine.
Can anyone else reproduce this in IIS 8.5 or is this problem specific to my hosting environment?
Edit 2:
I just ended up on a test site in Windows Azure with FriendlyUrls and debug = false enabled, and it worked like a charm. This is a RACKSPACE-Cloud-Site-only problem, unless the behavior is different from other versions of IIS (in which version are Azure websites currently running?).
? FriendlyUrls, debug = false , , IIS ( Rackspace)?
Update:
Rackspace , . , .