Link to home
Start Free TrialLog in
Avatar of feesu
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.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +8759758
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101
   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614
Avatar of Vikram Singh Saini
Vikram Singh Saini
Flag of India image

Hi,

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
Avatar of feesu
feesu

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
Avatar of richard_hughes
richard_hughes
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

In that case contact your website hosting company and report same to them.

Regards,
VSS