473,513 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SOLUTION : indirect reference to assembly

I saw a small number of old threads about a strange build error, but never
saw a solution. I just spent about 4 hours debugging this so i hoped i
could help out people who come across this problem by posting a solution.
Anyway, here is what i was experiencing and how i fixed it ...

The Build Error:
Project '<projectname>' makes an indirect reference to assembly
'<assemblyname>' which contains '<classname>'. Add a reference to
'<assemblyname>' to your project.
The problem:
I did have project reference. Grrrr!
No line numbers , the .NET help topic ...no use.

Setup :
Assembly_A --> contains public class (Class_A) which contains Public Enum
(Enum_A)
these enum is within the class (not sure if this matters)

Parent_B --> public property (Prop_forEnumA) get/set of type
Assembly_A.Class_A.Enum_A

Child_C --> public property (Prop_forEnumA) get/set of type
Assembly_A.Class_A.Enum_A
Steps :

Parent_B instantiates instance of Child_C
Parent_B runs a line of code something like

myChild_C.Prop_forEnumA = Me.Prop_forEnumA '<-- breaks here

Resolution:
myChild_C.Prop_forEnumA = System.Convert.Int32(Me.Prop_forEnumA) '<-- not
broken
================================================== =
The closest i could find was a 2002-12-29 thread in
microsoft.public.dotnet.languages.vb by Shahin Kohan.

http://groups.google.com/groups?hl=e...oogle%2BSearch

- - - - - - - - - - - - - - - - - - - - - - - - - -
- When I try to build a project I get the following Error.

C:\Projects\MembershipManager\MMSystemWinUI\frmPay mentTypes.vb Project
'MMSystemWinUI' makes an indirect reference to assembly 'MMCommon', which
contains 'Valleris.MMCommon.IMemberClass'. Add a reference to 'MMCommon' to
your project.

I already have a refernace to MMCommon in the referance section. Can anyone
tell me why I get this.

Shahin- - - - - - - - - - - - - - - - - - - - - - - -
- - - Hi,

The problem has been reported before. However, it cannot be reproduced. The
problem was resolved by creating a new project and adding all the files
into it.

Please try it to see whether it helps.

--
Parker Zhang
Microsoft Developer
upport- - - - - - - - - - - - - - - - - - - - - - - -
- - -

I was able to solve it by doing the following:

1. Delete all dll and exe's that are created from all the projects in the
solution
2. Delete all the referances from all projects to each other in the same
solution
3. Add all the referances again back to all the projects
4. Recomplile the projects
Also I have noticed this to be a problem when you have strong names. If it
happens again I will be more then happy to help you reproduce it.

I hope this problem is resolved in the next version.

Shahin============================================ =======
Anyway, hope that helps.
-eric
Nov 20 '05 #1
0 3520

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

Similar topics

2
4223
by: Christopher Burns | last post by:
Hi all, We are using VB.NET (VS2K3), sitting on VSS6. I have sorted out a configuration problem that was preventing us from building from scratch for new developers, but now I am having a very...
13
6912
by: ganeshb | last post by:
Hi, What C statement(s) would translate to indirect jmp in assembly? I know that function pointer invocation would translate to indirect 'call' instruction, but I am not sure what will lead to...
3
1603
by: Ray Mitchell | last post by:
Hello, I currently have a .dll assembly and 2 .exe assemblies that both use the ..dll assembly. I currently have the IDE set up as 3 separate projects. I must always first build the .dll...
2
2295
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...
5
349
by: Tim Marsden | last post by:
HI, I am developing a application in vb.net. I split down my functionality into several separate DLL's. The solution is becoming very large, nearly 100 projects, each project a dll's. There is...
0
925
by: xzzy | last post by:
This seems to be a Visual Studio 2003 problem: I am using www.obout.com 's treeview control and their postback dll ( for an aspx web page ). Their treeview and no postback works, BUT the...
2
3090
by: misogsk | last post by:
Hi all, can someone help with to handle this error: BC32206: Indirect reference is being made to assembly ? Code i used was written in ASP.NET 1.1 and I run it on ASP.NET 2.0. The error code:...
1
10883
by: jonathan184 | last post by:
Hi I amtrying to move over a website to another server. On the old hosting the site works fine. but when i transferred the site i am getting this error: Description: An error occurred during...
5
9377
by: Rahul B | last post by:
Hi, I am having the following issues while trying to restrict the current user from creating any objects. Below is the privileges for the user and response when i try to create a table in that...
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7535
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
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.