I've pulled down a project onto my my machine that is using Web API. When I look at the nugget window it shows that I have web api 2.2, the web host, the core libraries, the client libraries, the cross origin support, and Data v 1-3.
However, when I try to build the project, I'm given the following errors:
The type or namespace name 'Cors' does not exist in the namespace 'System.Web.Http' (are you missing an assembly reference?)
and
The type or namespace name 'HttpApplication' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Any help you guys and gals can give will be appreciated.
I've had the same issue after I had Resharper add the CORS reference.
I fixed it by adding the correct nuget packages: Microsoft.AspNet.Cors and Microsoft.AspNet.WebApi.Cors.
Related
Getting the error
The type or namespace name 'VisualStudio' does not exist in the
namespace 'Microsoft' (are you missing an assembly reference?)
on a project using MS Test 2 Framework. I read the link here but it didn't help.
I believe I have the required references and object browser seems to find them:
References
Object Browser:
Nevertheless I'm getting tons of errors in my unit test project, starting with the one above.
How can I resolve this so the build can find the references it needs?
In my case (vs2017 + TFS Builds), I ended up removing the MSTest v2 packages and installed the MSTest v1 package because our build servers don't support v2 yet. My solution would build locally but fail on our build server.
Went into Manage NuGet Packages
Uninstalled MSTest.TestAdapter & MSTest.TestFramework
Installed VS.QualityTools.UnitTestFramework
Rebuild & Run tests to make sure and then check-in.
I have added recent enterprise library using nuget package manager but still getting below error while deploying (not while building).
Package manager: Install-Package EnterpriseLibrary.Data
Can anyone help me
The type or namespace name 'Practices' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Be sure that your project is referencing to
Microsoft.Practices.EnterpriseLibrary.Common
Microsoft.Practices.EnterpriseLibrary.Data
I am unable to include System.Threading.Tasks in my project.
I am Using Asp.net 2013 (4.5)
I am getting the following error -
The type or namespace name 'Tasks' does not exist in the namespace 'System.Threading' (are you missing an assembly reference?)
I had refered earlier questions and they suggested in 4.0+ versions of ASP.NET it will work fine but I coudnt include it in my project.
Help me thanks.
System.Threading.Tasks.Task is in mscorlib which in .NET4.5. My project is not targeting, so in project properties need to change the target to 4.5.
The type or namespace name 'DataServiceKeyAttribute' does not exist in
the namespace 'System.Data.Services.Common' (are you missing an
assembly reference?)
This is the error that I have been getting and its driving me crazy. I am trying to build a web portal and I am following this tutorial.
Now after extensive search I am done and out. My target Framework is .Net Framework4 and there are some assemblies, specially the one from CRM sdk with version 5.0.
Could this be an issue?
This Type is defined in the .NET Framework Assembly Microsoft.Data.Services.Client. Ensure that this assembly is referenced by your project and it should work fine.
I wanted to write credential for web services (I am using-VS 2008,Asp.Net Framework 3.5,Windows 2003 Standard Edition,SQL Server) like this
private Credentials credentials;
But i am getting error to this line that the type or namespace name 'Credentials' could not be found (are you missing a using directive or an assembly reference?)
I have used
using ExtentrixWS;
Still i am getting 'are you missing a using directive or an assembly reference?'
Regards,
You should not only add the "using ExtentrixWS" but also you should add the relavent dll to the references of the project. Then only the services of ExtentrixWS will be referrenced to your project.