Hello.
I'm trying to publish a site on a server (Windows Server 2008 R2) using IIS (version 7.5). The site itself wrote on ASP.NET with the version of .NET 4.5, and included support for Windows authentication in it.
When you start the site on a local machine from Visual Studio, everything works fine, it goes to all pages and everything works. However, when I publish a site in IIS, I only go to the standard Default.aspx page and when I try to go to other pages (even to "Contacts"), I get an error, and it doesn't matter if I go to the server or launch a browser directly on the server:
HTTP Error 404.0 - Not Found The resource you were looking for was deleted, its name was changed, or it is temporarily unavailable.
The requested URL is http: // localhost: 80 / sitename / Contact
Physical path C: \ IIS_Apps \ sitenameASP \ wwwroot \ sitename \ Contact
Login Method Negotiate
User who logged in OFFICE \ igutnikov
Windows Authentication in IIS is enabled and works — a request is being entered when entering the site, anonymous authentication is disabled. The folder in which the site is stored and its pages have all the rights.
What could be the problem? How to solve it?
================================================= ===========
UPD: Found a solution - you need to add to the global Web.config:
<modules runAllManagedModulesForAllRequests="true"> <remove name="BundleModule" /> <add name="BundleModule" type="System.Web.Optimization.BundleModule" /> </modules>