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.
Related
So I have the following line at line 1 of the file.
using Microsoft.Extensions.Logging;
On building it throws
CS0234 C# The type or namespace name 'Logging' does not exist in the namespace (are you missing an assembly reference?)
Have tried searching around but was unable to find any solution or reason. The project is set to build in .net core 2.0, have downloaded and installed .NET Core 2.0 SDK (v2.1.202), but the error remains.
Have tried changing the build version to 2.1, 3.0 didn't help either.
I am downgrading my .net project targeted on .net4.5 to .net 4.0. I have SQlite DLLs being used in this project. when i changed target framework in project properties. biuld errors came as:
Error 11 The type or namespace name 'SQLite' does not exist in the
namespace 'System.Data' (are you missing an assembly
reference?) D:\Users\nehat\Desktop\skillmeterTrial\SkillMeter\SkillMeter\DataAccessLayer\DataAccessADO.cs 10 19 SkillMeter
Error 12 The type or namespace name 'SQLite' does not exist in the
namespace 'System.Data' (are you missing an assembly
reference?) D:\Users\nehat\Desktop\skillmeterTrial\SkillMeter\SkillMeter\DataAccessLayer\SQLiteHelper.cs 10 19 SkillMeter
Error 13 The type or namespace name 'SQLiteConnection' could not be
found (are you missing a using directive or an assembly
reference?) D:\Users\nehat\Desktop\skillmeterTrial\SkillMeter\SkillMeter\DataAccessLayer\SQLiteHelper.cs 30 24 SkillMeter
Though i have added dlls downloaded from sqlite.org. I am not able to find out the solution to thi. Can Somebody please help?
Have you got the System.Data.SQLite DLLs?
You need to use sqLite dlls which are compatible with .Net 4.0. (Probably you are using the DLLs which are compatible with 4.5).
Visit System.Data.SQLite download page
Download the new DLLs (.net 4.0 supported) and remove old DLLs from project and new ones.
I need to change the .NET framework of an existing solution from 4.5.1 to 4.0.
Several of the projects in the solution reference OData.
I have updated the references (luckilly NuGet is used here) but it seems like the namespaces are different, or I've made a glaring error somewhere.
I get the following errors when I try a build:
The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
This is a typical reference list:
using System.Web.Http.OData.Builder;
using System.Web.Http.OData.Extensions;
No amount of changing references seems to help, so I'd be grateful for any suggestions!
It looks like this is the reason:
http://docs.telerik.com/data-access/developers-guide/using-web-services/asp.net-web-api/developer-guide-wcfservices-web-api-install-nuget-netframework40
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 am quite sure this issues has not yet been addressed before.
I am adding [assembly: RequiresSTA] to my AssemblyInfo.cs file in my C# project.
But it does not like the RequiresSTA word.
VS states "The type or namespace name"RequriesSTA" could not be found (are you missing or using directive or an assembly reference?)".
I am referencing WatIn 2.1 and NUnit 2.4.1.
I have added using nunit.framework & WatIn.core.
My C# project is output type 'Console Application' and target framework '.Net Framework 4'
Any suggestions?
Thank You