Click to See Complete Forum and Search --> : HttpCompileException with server too busy


DanishAhmed
02-25-2009, 02:52 AM
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

ahmedel
03-22-2009, 11:53 PM
I remember seeing something like this before when I started working with ASP.NET 2.0 a few years ago. Did you by chance bring some pages forward from ASP.NET 1.1 to 2.0 and mix it with new pages created in ASP.NET 2.0? There is an issue of matching the attributes for your source files. In ASP.NET 1.1, the source file was designated as Codebehind="somepage.aspx.cs". In ASP.NET 2.0, partial classes were introduced and a page's sourcefile was designated as CodeFile="somepage.aspx.cs".