473,467 Members | 1,604 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Referencing Assemblies

I installed WSE 1 and WSE 2 using the msi files.

I see both registered in the GAC.

However, when I try to reference the .dll using the command line
compiler ( /r:microsoft.web.services.dll ) it tells me that it cannot
find it.

Do I need to set my path as well ?

I thought the GAC would automatically tell the c# compiler where to find
the right dll based on the reference to the cache....

Jul 21 '05 #1
3 1449
The GAC is searched at *runtime* for assembly by the assembly resolver.

At *compile* time the C# compiler looks in the current directory, the system directory, along the LIB path and directories specified with the /LIB command line switch. So you'll need to make sure the assembly can be found in one of those.

This is necessary because if it purely went to the GAC when you reference an assembly by its file name, which version would it pick up?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

I installed WSE 1 and WSE 2 using the msi files.

I see both registered in the GAC.

However, when I try to reference the .dll using the command line
compiler ( /r:microsoft.web.services.dll ) it tells me that it cannot
find it.

Do I need to set my path as well ?

I thought the GAC would automatically tell the c# compiler where to find
the right dll based on the reference to the cache....

Jul 21 '05 #2
well ... I don't have those assemblies installed, but I ran a quick
test from the visual studio .net command prompt.

C:\development\Common\EA.Tiburon.Data\Core>csc /t:library
friendlynameattribute.cs /r:system.web.dll

system.web.dll is in the GAC so it seems that this is the case. Make
sure you use the visual studio.net cli ... if that doesn't work, edit:
C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\vsvars32.bat

to include the path for those assemblies

Hope that helps,
Joel Martinez
http://www.onetug.org - Orlando .NET User Group
http://www.codecube.net - Blog

john bailo <ja*****@earthlink.net> wrote in message news:<2v*************@uni-berlin.de>...
I installed WSE 1 and WSE 2 using the msi files.

I see both registered in the GAC.

However, when I try to reference the .dll using the command line
compiler ( /r:microsoft.web.services.dll ) it tells me that it cannot
find it.

Do I need to set my path as well ?

I thought the GAC would automatically tell the c# compiler where to find
the right dll based on the reference to the cache....

--

Jul 21 '05 #3
Joel Martinez wrote:
well ... I don't have those assemblies installed, but I ran a quick
test from the visual studio .net command prompt.

C:\development\Common\EA.Tiburon.Data\Core>csc /t:library
friendlynameattribute.cs /r:system.web.dll

system.web.dll is in the GAC so it seems that this is the case. Make
sure you use the visual studio.net cli ... if that doesn't work, edit:
C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\vsvars32.bat
Ok, the source I am using ( something called WebServiceStudio, available
at GoToDotnet, used a build.bat command for the line compiler.

Sounds like I'm better off trasnferring the code to a studio project...

to include the path for those assemblies

Hope that helps,
Joel Martinez
http://www.onetug.org - Orlando .NET User Group
http://www.codecube.net - Blog

john bailo <ja*****@earthlink.net> wrote in message news:<2v*************@uni-berlin.de>...
I installed WSE 1 and WSE 2 using the msi files.

I see both registered in the GAC.

However, when I try to reference the .dll using the command line
compiler ( /r:microsoft.web.services.dll ) it tells me that it cannot
find it.

Do I need to set my path as well ?

I thought the GAC would automatically tell the c# compiler where to find
the right dll based on the reference to the cache....

--

Jul 21 '05 #4

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

Similar topics

1
by: loretta.stokes | last post by:
I manage our nightly builds for all of our products. Since we have added our .NET assemblies to our nightly build, it has been a learning process. I have come across a couple of situations that I...
12
by: Mark Broadbent | last post by:
Hi guys, just going through remoting at the moment and a couple of questions relating to .net in general has surfaced. Firstly I have seen in the designer that for the namespace and many of its...
16
by: PromisedOyster | last post by:
Hi I have a situation where I want to use circular referencing. I have cut down the example for demonstration purposes. Say we have one executable (main.exe) and two DLLS (A1.dll and A2.dll)....
9
by: Brett Romero | last post by:
Say I have a library (A.dll) with a method that accepts a collection of a specific type. The type is defined in B.dll. In A.dll, I need to loop through this collection and reference fields of...
0
by: Demetri | last post by:
I have a performance question with regards to packaging assemblies and referencing them. First lets say you have created the following assemblies: Company.Framework.dll...
11
by: Jan | last post by:
I'm using the CSharpCodeProvider to buils some assemblies @ runtime which are never saved as files (cp.GenerateInMemory = true;). The generated assemblies are hierachically dependent on each other...
2
by: Jan | last post by:
Regarding my post "CSharpCodeProvider: referencing other generated "InMemory" assembly" 4/27/2006 and the blog from Greg Young http://geekswithblogs.net/gyoung/archive/2006/04/27/76533.aspx I...
5
by: =?Utf-8?B?U3RlZmFuIEJhcmxvdw==?= | last post by:
I am experiencing a lot of speed issues on initial app loads where we are referencing 3rd party 1.1 assemblies from 2.0 code. Those 1.1 assemblies reference things like System.Windows.Forms...
1
by: Dave Anson | last post by:
What is the recommended practice for referencing assemblies in a project from other solutions? I am using Visual Studio 2005 Team System. I have several assemblies in another solution which will...
1
by: Tom | last post by:
My unsigned DLL works in my project that references it as long as I set Copy Local = true. Now I have signed the DLL with the sn.exe generated keys but have not yet moved the DLL into the GAC. ...
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
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
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...
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
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...

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.