I am working on a web application in Visual Studio 2010. I have added some dll's which is integrated using Microsoft and some other application... I added dll's in my web app. When I build it then it shows
the type namespace name could not be found(are you missing assembly).
When I refresh it then all classes highlighted and error goes and I am unable to build and publish it. I am using .NET Framework 4.0
The Project which is is referencing the Assembly may have different framework type from the assembly.
Forms Project was set to ".Net Framework 4 Client Profile" if you change it to ".Net Framework 4", it should work fine.
Please check if you follow these steps:
- In Solution Explorer, right-click the project node and click Add
- In the Add Reference dialog box, select the tab indicating
the type of component you want to reference.
- Select the components you want to reference, and then click OK.
And possible remedies of the error:
- A common cause is a simple misspelling where the class name is used.
- If the name is correct then the next most likely cause is that the required namespace has not been included
- If the name is correct and the necessary namespace has been included then check the framework version. Not all classes and types are available for all frameworks. For example "SempahoreSlim" was introduced with the .Net framework 4, which means that you will get an error trying to use it if you are targeting a .NET framework earlier than the .NET 4 framework after including a reference to System.Threading