Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
why iam getting the error in c#
Posted
Comments
Tom Marvolo Riddle 31-Dec-13 2:13am    
post your code snippet or else Search[^] it in search engines
♥…ЯҠ…♥ 31-Dec-13 2:31am    
Try to update your question with code

Make sure you reference the assembly you wanted to use. Read about namespace and full type names and make sure you name things correctly:
http://msdn.microsoft.com/en-us/library/wkze6zky.aspx[^],
http://msdn.microsoft.com/en-us/library/ms973231.aspx[^].

Learn to read error messages and understand them. Read a .NET and language manual to make sure you know the terminology and the notions themselves (at the very least).

—SA
 
Share this answer
 
This error happens when you have code that is referencing classes that have not been included in your project. You would need to post the code for us to give you a better idea. The compiler does not know what Service. whatever is.
 
Share this answer
 

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