473,657 Members | 2,540 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.Clas s_A.Enum_A

Child_C --> public property (Prop_forEnumA) get/set of type
Assembly_A.Clas s_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_forEnum A '<-- breaks here

Resolution:
myChild_C.Prop_ forEnumA = System.Convert. Int32(Me.Prop_f orEnumA) '<-- not
broken
=============== =============== =============== ======
The closest i could find was a 2002-12-29 thread in
microsoft.publi c.dotnet.langua ges.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\Mem bershipManager\ MMSystemWinUI\f rmPaymentTypes. vb Project
'MMSystemWinUI' makes an indirect reference to assembly 'MMCommon', which
contains 'Valleris.MMCom mon.IMemberClas s'. 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 3533

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

Similar topics

2
4240
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 odd references problem. Here is the scoop. I will make this brief, and if more info is needed please let me know... I don't want to ramble, as the details are vast. :) There are 3 projects involved in this issue, and it appears to be a...
13
6929
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 indirect jmp (eg. jmp <register>). Ganesh
3
1610
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 assembly, then the other two. What I'd like to be able to do is to set it up so that they all work together, that is whenever I change something in either of the 3 whatever is necessary will be rebuilt in the correct order automagically. When I tried...
2
2305
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 business layer) I created a class which inherits from a base class in the first assembly....so far so good. If I create a third assembly (my UI layer) and add reference in it to the business layer and I access a public variable in the business...
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 one entry exe. It is very slow to load and compile now. All my references are project references, is there a standard way to split the solution. In the past I have had versioning problems if a compile groups of projects individually.
0
930
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 postback dll keeps getting removed from the solution. No problems with any of the other dlls in the app. I have asked www.obout.com about this but they do not know. How do I prevent the DLL from getting removed from the solution?? or
2
3099
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: <asp:label id="lbl_start" runat="server" text='<%#TimeZoneInformation.FromUniversalTime(userObject.TimeZoneID,Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "window_Start")))%>'>
1
10892
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 the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Description: An error occurred during the compilation of a resource required to service...
5
9399
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 user. Can anybody tell what is the difference between DIRECT SYSADM and Indirect SYSADM and why is Indirect SYSADM is assigned to user by default.
0
8425
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8326
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8743
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8522
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8622
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6177
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2745
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 we have to send another system
2
1736
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.