Saturday, May 24, 2008

I ran into the "The type '' exists in both '' and ''" error yesterday and it took until the end of today to figure out the problem. Let me first say that I tried everything I could find on it; deleting temporary files, recreating the project, recreating the file, getting rid of the app_code directory, making sure my @Page directives were right.. everything...

What was it that was causing the problem in this instance? Freakin' server side code in the .aspx page! Now, before I get beat up for having server side code in the .aspx page let me say that this was a port from old-school asp and this particular page was one of the pages that I was converting hours before it was due in QA.. It was one of those "oh man.. I can leave this in there for now and do it right later." Eh...

So that was the fix, move the event handler and rendering code into the codebehind like it should have been in the first place.

0 Comments:

Post a Comment

<< Home