Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strange compiler error I only get sometimes

Status
Not open for further replies.

JGALEY

IS-IT--Management
May 21, 2003
105
US
I am getting a compiler error that I cannot nail down. When I go to pages that use certain classes, I get an error that looks like this:

Compiler Error Message: CS0434: The namespace 'GradeBook' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gradebookold\1647284f\27bce16c\App_Code.jgr9sj9s.dll' conflicts with the type 'GradeBook' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gradebookold\1647284f\27bce16c\App_Web_7uhxiux6.dll'

Does anyone have a clue what this means?

Thanks in advance,


Jason
 
what version on .net are you using? I think I heard something that the compiled dlls in 2.0 need to match the .aspx version its referencing.

Just a shot.
 
Thanks for the response: I appreciate it, and I apologize for not having better info. I did not have enough understanding to really address the question to you properly.

It is .NET 2.0. I was putting the application's name "GradeBook" as the namespace in two classes I developed, and then I had imported the namespace with a using line. Something was funny in how I had it set up, and I found that when I changed some things around, I was able to get the problem to go away, eventually.

I originally did the namespace and the using GradeBook coding because I could not get my classes to show up properly. I do not really understand what I did wrong, or how I fixed it, but it is fixed.

If anyone can enlighten me based on this info, it would be most welcome! Thanks again,

Jason
 
Yeah, adding namespaces the same as the application causes errors sometimes. Ok glad youve fixed it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top