472,328 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Assembly Reference Problems

I'm having a major problem with assembly references that I keep running
into, and I'm really hoping that someone can help me out. The problem
occurs when I have three projects in my solution, two of which I have
developed in VB.NET and one in C#. When I use Project A (VB) inside Project
B (C#), and then from Project C (VB) reference methods of Project B that
uses classes from Project A, I get an error that indicates I need to include
a reference to the original project. However, I've already included a
reference, and in fact can use the same exact type that I'm trying to use
that's generating an error on the function call anywhere else in the

I have a more detailed write up of the problem, with some example code that
reproduces the problem in very few lines on my website at
http://ryangregg.com/archive/2004/01/21/188.aspx. If someone out there
could take the time to look at this and see if they can give me a solution,
I would very much appreciate it.

Thanks in advance.

Ryan Gregg
Jul 21 '05 #1
2 1257
I posted the following on your web site at
This seems to be a known bug in VS.NET with cross-referencing VB and C#
assemblies, please refer to the following google links for symilar posts.
(the URLs are quite long and may wrap around)

[URL #1]
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=QZdkywmJDHA.2284%40cpmsftngxa06.phx.gbl& rnum=10&prev=/groups%3Fsourceid%3Dnavclient%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dproject-to-project%2Bassembly%2Breference>&lr=&ie=UTF-8&oe=UTF-8&threadm=QZdkywmJDHA.2284%40cpmsftngxa06.phx.gbl& rnum=10&prev=/groups%3Fsourceid%3Dnavclient%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dproject-to-project%2Bassembly%2Breference

[End of URL #1]

[URL #2]
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=eWmg4OEkCHA.2736%40tkmsftngp10&rnum=7&pr ev=/groups%3Fsourceid%3Dnavclient%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dproject-to-project%2Bassembly%2Breference>&lr=&ie=UTF-8&oe=UTF-8&threadm=eWmg4OEkCHA.2736%40tkmsftngp10&rnum=7&pr ev=/groups%3Fsourceid%3Dnavclient%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dproject-to-project%2Bassembly%2Breference

[End of URL #2]

Looks like the only way out of this is either to rewrite the code using the
same language, or to reference the binary assemblies instead of projects.

My company is the author of a build automation and management tool called
VisualMake (http://www.visualmake.com), which, among other things, will
resolve the project references to their respective binaries during build
time. I just built your sample solution using VisualMake - no problem at
all. If you want to try it, a fully functional trial is available from the
web site.

Jul 21 '05 #2

I have the same error "Reference required to assembly" with
cross-referencing VB and C# assemblies.
I tried to follow the suggestions in provided by Gagik Google links to
replace project-to-project references to file references.
Now I have errors like
Value of type 'Namespace.ClassName' cannot be converted to
'Namespace.ClassName'.(Note that both 'Namespace.ClassName' are the
It seems that compiler tries to match different versions of the same
DLL. I've tried to change "Local Copy" to false and back but still have
Does anyone can suggest other workarounds within Visual Studio.Net
without rewriting all projects to one language?

Michael Freidgeim
Add ".com.au" to my e-mail address to reach me by e-mail

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Simon Wallis | last post by:
I know the general purpose for the GAC is to share a component among many applications. But even when you add something to the GAC, you still have to...
by: Martin Oddman | last post by:
Hi, I have a compiling problem. Please take a look at the code below. I have an application that is built upon three tiers: one data tier...
by: Bruce D | last post by:
Hi all. I'm working on debugging someone else's code. The .NET application is a mess...I can't open the project or solution files, so I've started...
by: SteveS | last post by:
Hello All. I have an asp.net application with 3 different assemblies. They are like this: 1) Assembly: PublicSite (This contains the website...
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created...
by: Brad | last post by:
I have one of those seemingly simple questions that evades/confuses me. I've created an assembly with bass classes (classes meant to be inherited in...
by: Just Me | last post by:
I have a solution containing many usercontrol projects. When I wish to reference a usercontrol in another project I can select either the project...
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not...
by: Terry | last post by:
I am finally able to call my .Net object from a VB6 project (see posting 'Calling VB.Net classes from VB6', thanks to the reference Tony gave me to:...
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web...
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.