feesu
asked on
ASP.NET - The file '/default.aspx' has not been pre-compiled, and cannot be requested.
Hi Experts,
I have a website that has been running for a year. Without changing anything in my code, I started getting the below error. Note that the site is built with the same concept of the iBuySpy (loading user controls on a single default page). The site is hosted with a hosting solutions and I am not sure if they have changed anything that would cause such an error. Please read the error and let me know what I can understand from the stack trace:
Server Error in '/' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
The file '/default.aspx' has not been pre-compiled, and cannot be requested.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The file '/default.aspx' has not been pre-compiled, and cannot be requested.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The file '/default.aspx' has not been pre-compiled, and cannot be requested.]
System.Web.Compilation.Bui ldManager. GetVPathBu ildResultI nternal(Vi rtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +8759758
System.Web.Compilation.Bui ldManager. GetVPathBu ildResultW ithNoAsser t(HttpCont ext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101
System.Web.Compilation.Bui ldManager. GetVirtual PathObject Factory(Vi rtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126
System.Web.Compilation.Bui ldManager. CreateInst anceFromVi rtualPath( VirtualPat h virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62
System.Web.UI.PageHandlerF actory.Get HandlerHel per(HttpCo ntext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
System.Web.UI.PageHandlerF actory.Sys tem.Web.IH ttpHandler Factory2.G etHandler( HttpContex t context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication .MapHttpHa ndler(Http Context context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
System.Web.MapHandlerExecu tionStep.S ystem.Web. HttpApplic ation.IExe cutionStep .Execute() +93
System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously) +155
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614
I have a website that has been running for a year. Without changing anything in my code, I started getting the below error. Note that the site is built with the same concept of the iBuySpy (loading user controls on a single default page). The site is hosted with a hosting solutions and I am not sure if they have changed anything that would cause such an error. Please read the error and let me know what I can understand from the stack trace:
Server Error in '/' Application.
--------------------------
The file '/default.aspx' has not been pre-compiled, and cannot be requested.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The file '/default.aspx' has not been pre-compiled, and cannot be requested.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The file '/default.aspx' has not been pre-compiled, and cannot be requested.]
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.Compilation.Bui
System.Web.UI.PageHandlerF
System.Web.UI.PageHandlerF
System.Web.HttpApplication
System.Web.MapHandlerExecu
System.Web.HttpApplication
--------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614
ASKER
I do not have access to that. But I have noticed that the website works fine for few minutes then later upon refreshing, I face the same errors.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
In that case contact your website hosting company and report same to them.
Regards,
VSS
In that case contact your website hosting company and report same to them.
Regards,
VSS
The file '/default.aspx' has not been pre-compiled, and cannot be requested.
Seems the running asp.net working process on server is unable to pre-compile your website. That is, asp.net working process is unable to create .dll files in Asp.Net temporary folder. If you have option to check those files in that folder, confirm that dll files are being created on requesting that .aspx page.
Regards,
VSS