Click here to Skip to main content
16,016,773 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

we are getting the compilation error when we run the project Please anybody help us out.The error message is given below
Compiler Error Message: CS0434: The namespace 'FlueronGuide.Services' in 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\04a6eb35\bbc2048d\assembly\dl3\5f3381bb\74e58559_16c9cc01\FlueronGuide.Services.DLL' conflicts with the type 'FlueronGuide.Services' in 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\04a6eb35\bbc2048d\assembly\dl3\62685692\48391859_16c9cc01\FlueronGuide.DLL'

and have written the code in web.config
HTML
<configuration ...>
  <system.web>
    <compilation ... batch="false"/>

Still we are getting the same error

Warm Regards
Sangamesh Arali
[Email removed]
Posted
Updated 1-Jan-12 21:05pm
v2
Comments
Sergey Alexandrovich Kryukov 2-Jan-12 1:57am    
Please show the code sample and indicate the line(s) error message points to...
--SA

When you get an error messgae like that, try Google on the error number. It brought up MSDN which explains what causes it: http://msdn.microsoft.com/en-us/library/c8td0be1(v=VS.90).aspx[^]

How you fix it in your code, is another matter, since we don't have your code :laugh:
 
Share this answer
 
Check this
Error Message
The namespace NamespaceName1 in NamespaceName2 conflicts with the type TypeName1 in NamespaceName3

This error occurs when the imported type and the imported namespace have the same fully qualified name. When that name is referenced, the compiler is unable to distinguish between the two.
Compiler Error CS0434[^]
 
Share this answer
 
Actually i have created three projects in a solution in which the solution and a project are the same name i have given. So for that its giving error

Solution :

i have changed the project name which is same name as the solution and rebuild it and got result so only thing is that compiler has faced the problem for differentiating the dll files which are created by each projects.
so you have to give the different names of projects in a solution






Warm Regards
Sangamesh Arali
Software Developer
sangu.arali@gmail.com
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900