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

While compile my project getting below error

" The type or namespace name 'Businesslogic' could not be found (are you missing a using directive or an assembly reference?) " :)

Steps to recreate:
1)I have created a "WcfServiceLibrary" class library file and its working fine
2)I have created a new class library file and i named it as "BusinessLogic" in the same project.
3)I have added the reference "BusinessLogic" into "WcfServiceLibrary" but when I trying to add it in "WcfServiceLibrary" Namespace getting the below error.

" The type or namespace name 'Businesslogic' could not be found (are you missing a using directive or an assembly reference?) "

Plz advice.. :confused:

sorry, i misspelled here.But i have added in reference as "BusinessLogic" only.. :)

thnkx,
Dhana
Posted
Updated 1-Sep-10 19:58pm
v3
Comments
Sandeep Mewara 1-Sep-10 16:25pm    
Sounds like reference issue only. Remove and re-add the needed DLL.
Dhanamanikandan 2-Sep-10 1:44am    
ya i did it this case too, but getting same error:(

Is the difference between "BusinessLogin" (in step 3) and "Businesslogic" in the error message perhaps significant?
 
Share this answer
 
Comments
Dhanamanikandan 1-Sep-10 15:39pm    
No error message like what u have mentioned above. Im getting only the error which i given here
Check the spelling and character casing. C# is case-sensitive, that is, lowercase and UPPERCASE are completely different.

Is the namespace Businesslogic or BusinessLogin or what? It really should match, and I'm pretty sure you mistyped it :doh:

Try to double-click the error, to locate where the mistyped line is, and rename it.
 
Share this answer
 
Comments
Dhanamanikandan 1-Sep-10 15:41pm    
Spelling all were i given are correct in namespace, But even im getting the error which i mentioned..
Ibrahim Yusuf 1-Sep-10 16:30pm    
Try to double-click the error and locate the error. If the spelling and casing are correct, the compiler should not fire that error.
Dhanamanikandan 2-Sep-10 1:43am    
yes, I tried it. Even though it showing the below error

"The type or namespace name 'Businesslogic' could not be found (are you missing a using directive or an assembly reference?"

Its non other than spelling mistake, plz help

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