473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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
function.

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 1328
Ryan,
I posted the following on your web site at
http://ryangregg.com/archive/2004/01/21/188.aspx
-------------------------------------------------
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.

Regards
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
same).
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
errors.
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

10
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 manually create a reference to the DLL in your...
19
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 (Foo.DataManager), one business tier (Foo.Kernel) and...
3
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 over...creating new projects and such. I'm...
6
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 UI) Root namespace: PublicSite 2) Assembly:...
10
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 folders for each component of the site. I read...
2
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 other assemblys). In a secondary assembly (my...
11
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 or the assembly. Does it make a difference which...
3
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 match the assembly reference" but none of us here...
2
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:...
14
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 Application Project) and the winform project both...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.