none
HttpCompileException RRS feed

  • 问题

  • Hi All

    We have an ASP.NET 2.0 website which is working fine but around once per two months we get "Server too busy" error on the browser.

    We log all exceptions in database as well and from where we saw that an HttpCompileException is occurring continously minute to minute.

    The exception is as follows:

    System.Web.HttpCompileException: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\bfb5192e\56a14f68\App_Web_chickvid.aspx.cdcab7d2.dm1msvfd.0.cs(417): error CS0433: The type 'ASP.usercontrols_ucprefix_ascx' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\bfb5192e\56a14f68\App_Web_7ymuxcan.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\bfb5192e\56a14f68\App_Web_oa65kb08.dll'.

    Also there is not a big load on server so we cannot say that it is happeing due to load.

    We developed the website in VS2008 and using precompiled (per page) option by Publish feature.

    To resolve the issue we have to stop IIS, delete all files in Temporary ASP.NET Files\root and start IIS again. It works fine but we need the reason why it happens and how can i reproduce it?

    I have seacrhed alot on it but did not find anything useful for us.

    Some points i noted from the search but none of them fit in our case.

    - Make sure no two controls(classes) have same name in the website.
    - Dont make some changes in App_Code and just deploy it only.

    Can anyone help me in this regard?

    Regards
    Danish


    • 已编辑 DanishAhmed 2009年2月25日 7:27 spelling mistake
    2009年2月25日 7:25

答案

  • I think this is caused by re-compiled,you can check "Use fixed naming and single page assembllies" and re publish it.

    the good choice is that you can convert your file system website to Web Application Web site and compile single dll.


    孟宪会
    2009年2月25日 12:55
    版主
  • Converting VS 2008 Website to Web Application


    http://weblogs.asp.net/meligy/archive/2008/08/03/converting-vs-2008-website-to-web-application.aspx
    or
    http://geekswithblogs.net/Mohamed/archive/2008/08/03/converting-vs-2008-website-to-web-application.aspx

    same content






    孟宪会
    2009年2月26日 7:51
    版主

全部回复

  • I think this is caused by re-compiled,you can check "Use fixed naming and single page assembllies" and re publish it.

    the good choice is that you can convert your file system website to Web Application Web site and compile single dll.


    孟宪会
    2009年2月25日 12:55
    版主
  • Hi,

    Thanks for you reply.

    We already using this check "Use fixed naming and single page assembllies" when deploying our website.

    As your second suggestion, do you know how can we convert website project into web application project. We are using Visual Studio 2008.

    Regards
    Danish
    2009年2月26日 7:19
  • Converting VS 2008 Website to Web Application


    http://weblogs.asp.net/meligy/archive/2008/08/03/converting-vs-2008-website-to-web-application.aspx
    or
    http://geekswithblogs.net/Mohamed/archive/2008/08/03/converting-vs-2008-website-to-web-application.aspx

    same content






    孟宪会
    2009年2月26日 7:51
    版主