Verified all file counts were identical from my previous build. The deployed directory structure looks correct, but when I navigate to the first page I receive “The file '/WhatSite/FirstPage.aspx' has not been pre-compiled, and cannot be requested.” Here’s the kicker: When Reply hongping Contributor 2158 Points 635 Posts Re: System.Web.HttpException xxx has not been pre-compiled, and cannot be requested. Screen shot of settings where you can pre-compile, make "updatable" or not (fully compiled, where you see the note you referred to above), etc. this content
Once I deleted that file, the site started working. Have a look at this similar discussion here[^]. Problem gone. If you use MVC framework like me, please update your MVC version.In my case I changed MVC 126.96.36.199 to 188.8.131.52 and checked all project references's "Local Copy" properties to "True". http://stackoverflow.com/questions/602117/how-to-fix-asp-net-error-the-file-nnn-aspx-has-not-been-pre-compiled-and-can
Thank you. Why is this error occurring? In a company crossing multiple timezones, is it rude to send a co-worker a work email in the middle of the night? Your post saved me a ton of time.
Mine was the following failure: System.Web.Mvc, Version=184.108.40.206, Culture=neutral, PublicKeyToken=31bf3856ad364e35 I fixed the issue by adding the following entry at my web sites web.config: