Click to See Complete Forum and Search --> : Giving up on ASP.net!?!!


sharon_mccarty
August 30th, 2004, 06:31 PM
Hi There,

I created an ASP.net application in C#. The web application compiles and works fine. I closed the application did a check-in which only changed a .cs file.

When I recompile my application, I get an error message:

----------------------------------------------------------------------------
Parser Error Message: Could not load type 'AutoUpdateService.Global'.

Source Error:

Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="AutoUpdateService.Global" %>


Source File: C:\AutoUpdate\source\UI\global.asax Line: 1
-----------------------------------------------------------------------------

I'm not sure what the problem is... I read on some articles that suggested I delete some dlls from the solution explorer, in which I did. I recompiled the web application, and I still get the same error. What is weird is that after deleting the AutoUpdateService.dll from the bin directory, it does not get recreated when I do a build. I even restarted my computer and still get the error message and the AutoUpdateService.dll is still gone. I double checked the 'configuration properties' in the 'Build' section and the output is pointing to the folder: "bin\" , so the destination path looks ok.

I'm at lost here. If you hear a bang across the world, that would be me throwing my computer out the window. Can someone please help me?

Thanks in advance.

Sharon

MRutledge
August 30th, 2004, 10:28 PM
Why did a check in change a .cs file? What source control application are you using? There had to be something that occured when you used source control.

sharon_mccarty
August 31st, 2004, 12:31 AM
Hi There :wave: ,

Thx for the response. Sorry, I meant I got the latest changes, using check-out, which changed the cs file. I finally fixed the problem, I had to temporarily delete the global.asax file and recompile. I didn't get the error message anymore. Next, I added the global.asax file back into the project. No more compile errors. THis is really bizarre. Has anyone else encountered this problem before with ASP.net? It's almost as if it just happened all of a sudden. I also had compiler errors before where I was certain that I never changed anything. In order to fix those errors, I needed to delete some dlls which fixed the problem.

Sharon.

MRutledge
August 31st, 2004, 12:46 AM
I have had lots of problems with source control. It just takes a lot of planning and you have to be carefull the way you do things. It isn'nt just asp.net that you would have this problem with, it could have happened with anything. :eek: