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

Unable to add Reference

I have a VB.Net solution with 2 projects. The first
project should reference the second. I'm able to see the
second project on the Projects tab and I'm able to click
the OK button to successfully add the reference.

The problem is that the reference does not appear under
the Reference list of project 1. Project 2 also does not
appear in ILDASM for project 1.

What could cause a project to not be added as a reference
without generating an error?
Jul 21 '05 #1
7 6080
Hello Dave,

Thanks for your post. As I understand, you have 2 projects in a VB .NET
solution, one adds reference to another, however, this reference does not
appear in the list of project 1. Please correct me if there is any
misunderstanding. Generally speaking, it will prompt an error message if it
cannot add a reference to another project.

I suggest that you can access classes of Project 2 in the code of Poject 1
to check whether it can be built and executed. If it works properly, I
believe that the project 2 is properly referenced. If not, I think more
information is needed before moving forward:

1. What are the types of projects in the VB .NET solution?
2. What's the version of Visual Studio .NET, 2002 or 2003?
3. Does this problem occur to only a specific solution or it occurs to
other solutions (say C#, etc)?

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Thanks for your response!

Yes, your understanding of the problem is correct.

Unfortunately, I cannot access classes in project 2 from
project 1 because the project was not registered and I
did not receive an error message. So, the project 2
classes do not appear in IntelliSense.

1. What are the types of projects in the VB .NET
solution?

Project 1 is Windows App (VB). Project 2 is a class
library (also vb).
2. What's the version of Visual Studio .NET, 2002 or
2003?

2003.
3. Does this problem occur to only a specific solution
or it occurs to other solutions (say C#, etc)

The problem is specific to project 2. I can reference
projects 3, 4, and 5 with no problem. In fact, if I
build a new project and add the same existing objects
(classes, assemblyinfo, etc...), there is no problem
referencing this new project. Something seems to
specifically be wrong with the Project 2 project.

-----Original Message-----
Hello Dave,

Thanks for your post. As I understand, you have 2 projects in a VB .NETsolution, one adds reference to another, however, this reference does notappear in the list of project 1. Please correct me if there is anymisunderstanding. Generally speaking, it will prompt an error message if itcannot add a reference to another project.

I suggest that you can access classes of Project 2 in the code of Poject 1to check whether it can be built and executed. If it works properly, Ibelieve that the project 2 is properly referenced. If not, I think moreinformation is needed before moving forward:

1. What are the types of projects in the VB .NET solution?2. What's the version of Visual Studio .NET, 2002 or 2003?3. Does this problem occur to only a specific solution or it occurs toother solutions (say C#, etc)?

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
.

Jul 21 '05 #3
Hi Dave,

Since the problem only occurs to a specific project/solution, could you
please post the projects which are reproduce the problem? I will be glad to
check it on my side.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4
"Dave" <dv****@5280Solutions.com> wrote in news:02c101c38c23$5a1ba110
$a*******@phx.gbl:
The problem is that the reference does not appear under
the Reference list of project 1. Project 2 also does not
appear in ILDASM for project 1.


Just a few thoughts:

Has Project 2 been built?
When you build the solution, are there any indications of failure in the
output window?

Chris
Jul 21 '05 #5
Hello Dave,

I'd like to share the following information with you:

1. As another project containing the same objects (classes,
assemblyinfo.vb, etc) with Project2 works properly, I suggest that you can
compare the files .vbproj and .vbproj.user of both projects in Notepad and
check whethere there is any differences that may cause this problem.

2. You can also make a copy of Project, remove a class or a function at a
time until it starts working again.

3. If the problem still persists, you can post the project or contact me at
ti******@microsoft.com directly. It's my pleasure to be of assistance.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #6
Is my face red. The project that was causing problems
was created by copying it from another project.
Unfortunately, the guid from the original project
remained unchanged in the .VBProj file.

After changing the guid, everything works fine. Thanks
for all the help!!!
-----Original Message-----
Hello Dave,

I'd like to share the following information with you:

1. As another project containing the same objects (classes,assemblyinfo.vb, etc) with Project2 works properly, I suggest that you cancompare the files .vbproj and .vbproj.user of both projects in Notepad andcheck whethere there is any differences that may cause this problem.
2. You can also make a copy of Project, remove a class or a function at atime until it starts working again.

3. If the problem still persists, you can post the project or contact me atti******@microsoft.com directly. It's my pleasure to be of assistance.
Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
.

Jul 21 '05 #7
Is my face red. The project that was causing problems
was created by copying it from another project.
Unfortunately, the guid from the original project
remained unchanged in the .VBProj file.

After changing the guid, everything works fine. Thanks
for all the help!!!
-----Original Message-----
Hello Dave,

I'd like to share the following information with you:

1. As another project containing the same objects (classes,assemblyinfo.vb, etc) with Project2 works properly, I suggest that you cancompare the files .vbproj and .vbproj.user of both projects in Notepad andcheck whethere there is any differences that may cause this problem.
2. You can also make a copy of Project, remove a class or a function at atime until it starts working again.

3. If the problem still persists, you can post the project or contact me atti******@microsoft.com directly. It's my pleasure to be of assistance.
Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
.

Jul 21 '05 #8

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

Similar topics

0
by: SleepingRabbit | last post by:
Hi All, I am new to web service client development. Grateful, if anybody can help me to solve this issue. Or let me know where/what I have done wrong. We are to consume a webservice (from a...
0
by: maxim mat | last post by:
Hi I need to build client for web service. But when I'm using Visual Studio .NET to add Web Reference, I get error: "Custom tool error: Unable to import WebService/Schema. Unable to import...
1
by: Pepe | last post by:
Hi, I have created the "Hello World" web service with one web method on it "HelloWorld" (yes the tag is there). I have deployed the web service to a Windows 2003 server, then I create a new...
0
by: Dhananjayan | last post by:
Hi, I have a webservice(eg.IStringServicePort) running on Axis, iam able to create a java client for the same and invoke the service and obtain the result. I wanted to create a .Net client(C#)...
0
by: Dica | last post by:
Hi all I've got a java microEdition client trying to make soap requests to my .Net service. i keep getting "Server was unable to process request..." err msg when attempting to make the request....
0
by: genc ymeri | last post by:
Hi over there, I'm building a webservice (C#/>Net 1.1) and I'm trying to add a web reference , a WSDL file from a location "c:\inetpub\WSDLfile.wsdl" . (This is the WSDL file of another webserver...
6
by: tshad | last post by:
I had asked about this before, but have been unable to solve the problem. Could this be a problem with Web Services? I have 4 web services that I reference in this object. There is only one...
0
by: berkcansiz | last post by:
Hello All, I am trying to use a web service hosted at ajax 1.3. Ehen I try to add this web reference into my project(.NET) I got an error saying; Error 9 Custom tool error: Unable to import...
2
by: ashishjainism | last post by:
I am unable to install my windows service and the installutil is throwing the following error: Running a transacted installation. Beginning the Install phase of the installation. See the...
3
by: =?Utf-8?B?TGV3aXMgTW90ZW4=?= | last post by:
Hello. We are having a problem here trying to compile C# applications. Only one developer has a problem where they attempt to compile the application and the compiler complains about being out of...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.