Adi's blog

on software development

About the author

Adi has over 13 years & of software engineering experiece in Industrial, manfacturing & quality, corporate financial reporting & analysis, stocks & exchange traded funds trading and retirement accounts management including end to end solutions for 401k retirement.
E-mail me Send mail

Recent comments

Authors

Tags

Don't show

    Categories


    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    The file '/default.aspx' has not been pre-compiled, and cannot be requested

    I recently came across an error that did not make any sense while deploying pre-compiled ASP.NET applicatication. This error did not tell me what the problem was. After doing some research online I came across asp.net forum and this. The solution basically came down to copying the new assemblies that I just added to my project to the bin folder of the deployment servers. These assemblies were added to my (on my machine) GAC (global assembly cache) where they are available to all the applications and do not need to be copied to the bin folder on my machine. But they need to be copied to servers where these new asseblies are not registered in GAC. I just wish the runtime error could be a little more informative instead of completely giving me the wrong message.

    So make sure you have all the assemblies either present on the deployment servers or just copy them when building and pre-compiling ASP.NET applications.  


    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.


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

    Currently rated 3.0 by 2 people

    • Currently 3/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5

    Categories: ASP.NET
    Posted by Adi on Tuesday, July 01, 2008 11:21 AM
    Permalink | Comments (0) | Post RSSRSS comment feed

    Related posts

    Comments are closed