473,441 Members | 1,399 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,441 software developers and data experts.

dll reference problems

Hi all, I have a VB Project in VS2005 containing a few .vb files which have
the appropriate classes:-

Namespace - MyNameSpace
Objects.vb - Objects Class
Providers.vb - Providers Class

I needed to write a Jscript.Net class to encapsulate some Jscript.Net
specific functionality, so I created a seperate folder, wrote the .js file
and compiled it using jsc.exe & referenced the dll from the vb project
above.

I then went back to the VB project, added a reference to the dll created by
the jsc.exe compiler and tried to invoke some code by instantiating the JS
class and setting one of the properties. I got the following error when
compiling the VB project in VS2005:-

Error 21 Reference required to assembly 'MyNameSpace, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' containing type
'MyNameSpace.Objects.Application', but a suitable reference could not be
found due to possible circular references:
Assembly 'MyNameSpace.RulesEngine.Processor.dll' references project
'MyNameSpace'
Project 'MyNameSpace' references assembly
'MyNameSpace.RulesEngine.Processor.dll'. C:\vs 2005
code\MyNameSpace\Providers.vb 1803 17 MyNameSpace
Any Ideas?

TIA!
Nov 23 '05 #1
3 1444
Hello,

Did your JS file also define namespace "MyNameSpace" and contains a class
named "Objects.Application"? From error message, it seems there is a
circular reference in your projects, did your JS assembly also reference
your VB project?

Luke

Nov 23 '05 #2
Yeah, I figured it out. My Js assembly also referenced the VB project
causing the cirular reference. I got rid of that and it worked.

TIA!

"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:JL**************@TK2MSFTNGXA02.phx.gbl...
Hello,

Did your JS file also define namespace "MyNameSpace" and contains a class
named "Objects.Application"? From error message, it seems there is a
circular reference in your projects, did your JS assembly also reference
your VB project?

Luke

Nov 23 '05 #3
;) I am very gald to hear the problem was resolved. Thank you for the
updated.

Luke

Nov 23 '05 #4

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

Similar topics

0
by: Kalle Rutanen | last post by:
Hello I implemented reference counting in my program, and found out many problems associated with it. I wonder if the following problems can be solved automatically rather manually ? 1. ...
110
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object...
39
by: Mike MacSween | last post by:
Just spent a happy 10 mins trying to understand a function I wrote sometime ago. Then remembered that arguments are passed by reference, by default. Does the fact that this slowed me down...
6
by: T Koster | last post by:
After a few years of programming C, I had come to believe that I finally knew how to correctly organise my structure definitions in header files for mutually dependent structures, but I find myself...
3
by: Faustino Dina | last post by:
Hi, The following code is from an article published in Informit.com at http://www.informit.com/guides/content.asp?g=dotnet&seqNum=142. The problem is the author says it is not a good idea to...
13
by: Bonj | last post by:
Specifically, is there any difference between usin void MyFunction(const HANDLE myhandle an void MyFunction(const HANDLE& myhandleref ?? is the latter likely to cause problems (such as I...
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: raylopez99 | last post by:
I'm having problems compiling complex reference declarations in MSVC++.NET 2002 IDE. Here is an example: // --Foo.h-- #include "Bar.h" class Bar; //forward decl. to a class Bar in...
5
by: Richard J Foster | last post by:
Hi there, I have a pair of C# projects in VS2003. The first project, a dll, is referenced in the second via a project reference. The assemblies in question are delay-signed during a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
1
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...
0
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,...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.