.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

could not get dependencies for project reference

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :ASP.Net


I had my solution all good before I tidy up my class library projects.

Since then I keep getting "could not get dependencies for project reference 'project.dll' " everytime i compiled my website.

I read on the web, that it could be a namespace problem. I've fixed all my namespaces and the problem still exists.


Does anyone has any suggestio how to solve this issue ?

Thank you for your help,

View Complete Post

More Related Resource Links

Project dependency / reference and 3rd party dlls missing

hi,i'm having the same problem in multiple solutions and i asked for help in a couple of "forums" already.... here is an easy explaination about my problem.we have 3 projects:Project "A" - a web applicationproject "B" - class libraryproject "C" - class libraryProject C holds a reference to a 3rd party dll. let's say thirdparty.dll. the 3rd party dll is referenced in the C.csproj file with a relative path and private = true (copy local = true): <Reference Include="ThirdPartysNameSpace.BlaBla, Version=, Culture=neutral, PublicKeyToken=0912345678910123, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>..\_tools\thirdparty.dll</HintPath> <Private>True</Private> </Reference> Project B holds a project to project reference to Project C.Project A holds a project to project reference to Project B.when i compile project C the thirdparty.dll is copied to its bin directory. C's bin directory contains C.dll and thirdparty.dll - correct so far.however when i then compile project B the thirdparty.dll isn't copied to project B's bin directory! B's bin only contains C.dll and B.dll. why isn't project C's bin content copied to B's bin?(sure thirdparty.dll is also missing in project A's bin directory.

Error on VS 2008 Class Library project: are you missing an assembly reference?)

http://msdn.microsoft.com/en-us/library/bb153523(office.12).aspx Working with ASP.NET 2.0 Web Parts and Windows SharePoint Services 3.0 Based on the above MSDN Walkthrough, I created a Class Library VS 2008 project. When clicking the Build menu, 11 errors on System.Web.Security etc popped up.  What's wrong? *********************************************** using   System; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; Error 1 The type or namespace name 'Security' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) Error 2 The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

How to add Sharepoint dll reference to Windows Forms application project in Visual Studio 2010?

Hi,I am using Windows Forms application template in Visual Studio 2010 Beta. I created this for some R & D work. Now I am using Sharepoint object model in application. When I am trying to add Sharepoint dll reference from .NET tab, I can not see Windows Sharepoint Services there Which was available in Visual Studio 2005.Also If I am add this sharepoint dll from ISAPI folder (14 Hive), it is added succesfully, but it is not taking actually in project and showing me an error during running mode that theError 12 The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) Please suggest me how to add Sharepoint dll reference in Windows forms application in Visual Studio 2010?

How to invoke c# function from another project without adding reference?



There is a C#.net libraray project whose dll name is customer.dll. It has a class name customer with a function name show(). I want to call this function from another project but dont want to add reference to the caller project. Can this be done? Is there any C#.net class that can acheive this?

Installer project fails to detect dependencies to COM interops



The issue pertains to the Visual Studio 2010. I have two projects: a class library and a setup project. The class library exposes a COM object (plugin) using the .NET COM interoperability. The library depends on a number of COM type libraries. For each COM type library there is a corresponding primary interop assemby, properly registered using "regasm /codebase". The target framework is 3.5 (the hosting application that loads the plugin only supports 2.0 runtime). The library compiles without any issues, but setup project fails to detect any of the COM dependencies. The issue is easily reproducable, just create a simple class library in VS2010, change the target framework to 3.5, add a reference to a COM type library. Create a setup project and add the "Primary Output" to it. The COM dependencies  would not show up.

It seems to only happen if I switch the target framework to 3.5 BEFORE building the deployment package. Switiching the framework to 4.0 and changing the "Embed Interop Types" to "False" does fix the issue.

I was going to submit an issue to Microsoft, but want to see if there someone out there who ran into the same issue.

Thanks for any suggestions



VS2010 used an assembly in the GAC in stead of the project reference that was explicitly set in my p


When running my Windows Forms project in the debugger using F5 it uses the assembly version in the GAC in stead of the actual project referenced, thus ignoring the changes I make to my reference project.

If I remove the assembly from the GAC it works, but I woul like to be able to develop and test my assembly withoud having to remove my installed version first every time.

What is the best way to achieve this? Giving my reference project a defferent version number for instance?

Is this behaviour considered a bug that will be patched any time soon?



how to add reference to the project?



I have an dought on adding name space in project. In one one of my project I want to add "System.SserviceModel.Web" name space. But the name space is not  in .net tab of refence dialog box. How can I add this reference to the .net tab window?

DLL reference error when running project when using newer dll

I have a C# Class library project, it's simply a DLL that contains some custom reporting definition.

That DLL is referenced in a ASP.NET application, this setup worked for years, but recently, after fixing an error in the DLL, I started getting the following error :

System.Exception was unhandled by user code
 Message=System.IO.FileLoadException: Could not load file or assembly 'IReportDef, Version=, Culture=neutral, PublicKeyToken=ac2eee5c6b52ff89' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'IReportDef, Version=, Culture=neutral, PublicKeyToken=ac2eee5c6b52ff89'
  at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
  at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
  at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
  at System.Type.GetType(String typeName)
  at System.Data.XSDSchema.SetProperties(Object instance, XmlAttribute[] attrs)
  at System.Data.XSDSchema.HandleElementColumn(XmlS

use service reference in other project in the same solution



i have a windows service that sends information to another project(let's call it Project A) that hosts a wcf service.  the windows service business rules are in another project(project B) within the same solution. Do i have to add the service reference(to wcf service) in both projects (windows service and project B) in order to communicate with project A?


thank you in advance!



why .net2.0 project or .net3.5 project can not reference .net4.0 assembly


if the machine support .net3.5, .net2.0 project can reference .net3.5 aseembly and can load and call the functions. 

But why .net2.0 project or .net3.5 project can not reference .net4.0 assembly even the machine support .net4.0

A better way to reference your wizard steps using named steps

Note: this article uses the plain vanilla but the concepts apply equally well to its popular counterpart .

By far the most common way that I see wizard steps reference in code snippets is by their index.

Project Example: ASP.NET MVC + SubSonic Architecture

use of SubSonic to provide the DAL in association with some ASP.NET MVC sites and was waylaid in my original intent to throw up a post summarizing the architecture we're using for the effort. Well I've finally gotten around to it. Recall that in his fake it till you need it post, Dave provided a window on our architecture that I'll build upon here

reference from menubuttons to text parts in article on the same page


Hi, I'm searching now for hours but couldn't find it.Cry

In my menu i have several buttons which (by a <a href..) should go the a part of an article that is in the same form.

Menu button : What is a database should go to the page default.aspx and in there is an article published.
A part of this article is having a piece of text about "what is a database"

Menu button: how to make a query should go to this same article in the same page but then to the part that is have the piece about the query. The next could be an example of what i'm doing:

    <li><a href="default.aspx ?????>what is a database</a></li>
    <li><a href="default.aspx ?????>what is a query</a></li>

Where my question marks are, there should be a connection to that particular piece of text.
In each article part there is an ID="text1" and the second part id="text2"

How shoudl i do that, Should i use a question mark.
Please give me some guidance how to structure the <li> statement or a pointer where I can read about it.


VS2010 Professional .NET 4.0 Remote Debugging ASP Website Project


Trying to remote debug ASP website from VS2010 Pro to Windows Server 2003 machine.  Specifically, trying to debug a Web Service, but breakpoint says, "The breakpoint will not currently be hit. No symbols have been loaded for this document."  This happens for all compiled code though.  I have read this is due to missing PDB files and the work around is to manually copy them, as noted here.  Problem is, I cannot find any PDB files for my project, except referenced libraries, which I can remote debug.


  • web.config has <compilation debug="true">
  • Debugger is attached to wewp.exe process on remote server
  • Installed VS2010 remote debugger from DVD (as I can remote debug referenced libraries)

This is beyond frustrating.  I migrated my code from VS2008 .Net3.5 to VS2010 .Net4.0 to take advantage of the inherent multithreading framework.  Debugging works when using local host and was stable until deployment to test server.

Thanks in advance,


How can I be sure that my entire project is up-to-date and free of errors in VS2010?


Seems like a stupid question, but I will go to Build > Build Solution many many times and the build will succeed many many times, then I will put in a minor syntax error and the build will fail, BUT the build will not fail because of the minor syntax error; it will fail because of an unresolved type that I put in about twenty compiles ago. And then I will fix the minor syntax eror, and the compiler will still complain about the unresolved type. Here is my code:

<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
  <form runat="server">
  Hello World!!  

Pretty simple, really. I go to Buld > Build WebApplication1 and it runs OK. Now, if I put in a minor syntax error, such as substitute "forrrrrrrm" for "form" and then try to Build Solution, it complains not about the misspelled word, but about the FreeTextBox. And then if I correct the misspelled wird, it still complains about the FreeTextBox. Which leads me to believe that Building the Solution does not check absolutely 100% everything that needs to be checked. Is there a more thorough way of compiling a program that I need to use?

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p


is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project


my current project references




i have a very annoying iis problem

iis server stops working until app pool is recycled


i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem


Business Intelligence Reports Project in Visual studio 2008 ?



I wonder how to add a project template called  Intelligence Reports, something like that, to Visual studio 2008. I have SQL 2008 installed. Do I need to install some updates to get Intelligence Reports template to Visual studio 2008 ?

Thank you..

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend