I have a c# project with a reference that cannot be found when checking in to TFS. The project runs fine when i debug.
It its in my services project the problem is located. I have a reference to lets say ProjectSec. And i have a wewbservice reference to Projectservice.
The webservice uses the ProjectSecurity.Security namespace that is located in the ProcectSec assembly.
When i check in my files i get the following error:
The type or namespace name 'ProjectSecurity' could not be found (are you missing a using directive or an assembly reference?)
Could not resolve this reference. Could not locate the assembly "ProjectSec". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
The ProjectSec.dll is located in the lib folder and its there. There is no error when i try to use it elsewhere in my project.
This may not be a perfect explanation but does anyone know what i could try?
I have removed the reference and added it over again, but no luck.
A common pitfall with TFS-build is to have in Source Control something, for example, like this:
$/Sources/Webservice
$/Libs/ProjectSecurity
And then, in the build definition that is validating your checkin, to have only
Active | $/Sources/Webservice | $(SourceDir)
as workspace mappings.(You can access this by right-clicking on the build definition in TeamExplorer, select "Edit Build Definition.." & go to Tab "Workspace")
Related
I am trying to debug a web app in VS Source Control. But, I am getting the error
The type or namespace name 'ceTe' could not be found (are you missing a using directive or an assembly reference?)
The referenced component 'ceTe.DynamicPDF.40' could not be found
On expanding the References folder in the Solution Explorer in Visual Studio, ceTe.DynamicPDF.40 is listed but marked with a yellow warning icon.
How do I fix this? I referred to this Refrenced Toolkit could not be found question but my problem is with the source control code. I do not have the related dll in my local repository of the project so I can't add it's reference.
Resolved this by copying over the respective dll file from the server.
I have a asp.net solution which consists of multiple class library whose dll' are been used in one web application.When I build and rebuild the class library I don't face any issue, later when I try to build and rebuild the solution few of my dll files gets deleted from bin.Tried adding reference path but in vein.
Warning : Could not resolve this reference. Could not locate the assembly "classlibrary2". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. classlibrary1
Error 10 The type or namespace name 'Classlibrary1' could not be found (are you missing a using directive or an assembly reference?)
Note:All projects are in same framework
In a solution I am working on, in a sub project I have added a reference to another project. After adding the reference, I was able to successfully add the using statement and have the auto-complete pick up the right extension I was looking for. The code wrote as usual, but when I compiled, I get the error
The type of namespace name 'Name1' does not exist in the namespace 'Name2' (are you missing an assembly reference?)
So I have searched the forums, I have added several other system references and I have gotten nothing. I ran NuGet to update the solution packages, and that didn't make a difference either. For some reason, when I add the reference (using the add reference pop-up GUI) the reference to Name1 doesn't have a dll file in it. If I browse to the dll file directly, it still gives me the same issue when compiling.
Maybe you can copy the dll to [projectname] / Debug /
or [projectname] / Release /
hi there i know its most be a silly mistake but i couldn't find it. i add two references to my project by Right click on References and browse them, i simply use component of these Dlls in my program with no problem, auto complete code is work fine for classes of these Dlls. But when i run my program got error like:
The type or namespace name 'GlobalizationDateTimePicker' does not exist in the namespace 'GHDiamond.Windows.Forms' (are you missing an assembly reference?)
for this line in myform.Designer.cs:
this.DateTimePicker_AZ = new GHDiamond.Windows.Forms.GlobalizationDateTimePicker();
References names are: GHDiamond.dll and GHDiamond.Win.dll. they are in Object browser too when a add them, but when i Build my project, GHDiamond.Win is not there anymore ! any help will be appreciated
Select the Reference in the Solution Explorer and go to the property window. Make sure that the property "Copy Local" is set to "True". This causes the dll to be copied to the output directory.
I have had something similar which was caused by missing dependent dlls. Autocomplete worked until i built then i would get a load of compile errors. make sure there are no other dlls that you need.
I tried writing a login code in vc#.. I got the following error..
The type or namespace name 'LoginControl' does not exist in the namespace 'ErikSchmidt' (are you missing an assembly reference?)
Please help me rectify this error.
This means that Login Control is not visible to your code. What you need is specify LoginControl's namespace with using keyword or add assembly reference (with login control) to your project.
.NET projects must define which assemblies they require (such as System in most C# programs). It looks like you didn't add a reference to the assembly that contains LoginControl. Right-click on "References" in the project (in "Solution Explorer") and add a reference to the required assembly (which is wherever LoginControl is contained in).