I have a batch script that is supposed to compile this script:
vbc.exe /main:Form1 /target:winexe
/imports:Microso ft.VisualBasic, System,System.C ollections,Syst em.Data,System. Diagnostics,Sys tem.Drawing,Sys tem.IO,System.N et,System.Text, System.Windows. Forms
/r:System.dll,Sy stem.Data.dll,S ystem.Drawing.d ll,System.Windo ws.Forms.dll,Sy base.Data.AseCl ient.dll
/out:Advanced.ex e Form1.vb
When I ran this command, I get an error:
vbc : Command line error BC2017 : could not find library
'Sybase.Data.As eClient.dll'
I know that this library in the GAC, because I can see it in
c:\windows\asse mbly and the physical folder location of the
Sybase.Data.Ase Client.dll is in the Path environment variable.
What am I missing here?
Thanks. 4 6617
Frank, What am I missing here?
The compiler doesn't look in the GAC, and it probably doesn't look in
all PATH directories either. It does look in the framework directory
and any directories you specify with /lib.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Frank Rizzo wrote: I have a batch script that is supposed to compile this script:
vbc.exe /main:Form1 /target:winexe /imports:Microso ft.VisualBasic, System,System.C ollections,Syst em.Data,System. Diagnostics,Sys tem.Drawing,Sys tem.IO,System.N et,System.Text, System.Windows. Forms /r:System.dll,Sy stem.Data.dll,S ystem.Drawing.d ll,System.Windo ws.Forms.dll,Sy base.Data.AseCl ient.dll /out:Advanced.ex e Form1.vb
When I ran this command, I get an error:
vbc : Command line error BC2017 : could not find library 'Sybase.Data.As eClient.dll'
I know that this library in the GAC, because I can see it in c:\windows\asse mbly and the physical folder location of the Sybase.Data.Ase Client.dll is in the Path environment variable.
What am I missing here?
Thanks.
vbc.exe (and csc.exe) do not search the GAC for compile-time references.
vbc searches:
1) the current working directory
2) the CLR system directory (ie.,
c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322, not the GAC)
3) directories specified by /libpath option
4) directories specified by the LIB env. variable
csc.exe has a similar search strategy, except that /lib is used instead
of /libpath.
You'll need to have a copy of the Sybase.Data.Ase Client.dll in one of
the above locations (or specify the full file-system directory name for
the GAC located instance)
--
mikeb
mikeb wrote: Frank Rizzo wrote:
I have a batch script that is supposed to compile this script:
vbc.exe /main:Form1 /target:winexe /imports:Microso ft.VisualBasic, System,System.C ollections,Syst em.Data,System. Diagnostics,Sys tem.Drawing,Sys tem.IO,System.N et,System.Text, System.Windows. Forms /r:System.dll,Sy stem.Data.dll,S ystem.Drawing.d ll,System.Windo ws.Forms.dll,Sy base.Data.AseCl ient.dll /out:Advanced.ex e Form1.vb
When I ran this command, I get an error:
vbc : Command line error BC2017 : could not find library 'Sybase.Data.As eClient.dll'
I know that this library in the GAC, because I can see it in c:\windows\asse mbly and the physical folder location of the Sybase.Data.Ase Client.dll is in the Path environment variable.
What am I missing here?
Thanks.
vbc.exe (and csc.exe) do not search the GAC for compile-time references.
vbc searches:
1) the current working directory 2) the CLR system directory (ie., c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322, not the GAC) 3) directories specified by /libpath option 4) directories specified by the LIB env. variable
Thanks. Step 4 worked for me. BTW, where did you get this info?
Frank Rizzo wrote: mikeb wrote:
Frank Rizzo wrote:
I have a batch script that is supposed to compile this script:
vbc.exe /main:Form1 /target:winexe /imports:Microso ft.VisualBasic, System,System.C ollections,Syst em.Data,System. Diagnostics,Sys tem.Drawing,Sys tem.IO,System.N et,System.Text, System.Windows. Forms /r:System.dll,Sy stem.Data.dll,S ystem.Drawing.d ll,System.Windo ws.Forms.dll,Sy base.Data.AseCl ient.dll /out:Advanced.ex e Form1.vb
When I ran this command, I get an error:
vbc : Command line error BC2017 : could not find library 'Sybase.Data.As eClient.dll'
I know that this library in the GAC, because I can see it in c:\windows\asse mbly and the physical folder location of the Sybase.Data.Ase Client.dll is in the Path environment variable.
What am I missing here?
Thanks. vbc.exe (and csc.exe) do not search the GAC for compile-time references.
vbc searches:
1) the current working directory 2) the CLR system directory (ie., c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322, not the GAC) 3) directories specified by /libpath option 4) directories specified by the LIB env. variable
Thanks. Step 4 worked for me. BTW, where did you get this info?
It was in the compiler's online docs for the /libpath (or /lib) command
line compiler options.
--
mikeb This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Martin Danielson |
last post by:
Hello.
I've been testing the WScript.Shell object and the Run command now for a server query. The file I am running generates a file with the server querys which i later on parse in my page. But there is a problem. When running the Run command om my Windows XP machine it all seems fine. But when trying to run it on my webserver (not configured...
|
by: Siemel Naran |
last post by:
Hi. I'm writing a command shell that reads commands from standard input.
At this point I have the command in a std::string. Now I want to execute
this command in the shell. From the Borland newsgroups I learned that there
is a function in stdlib.h called system.
int system(const char *command);
First question, is the system command...
|
by: FluffyCat |
last post by:
New on November 29, 2005 for www.FluffyCat.com PHP 5 Design Pattern
Examples - the Command Pattern.
Since you all enjoyed the Visitor Pattern so much yesterday, today I
have the Command Pattern for you. This one is pretty straight
forward. In the Command Pattern an object encapsulates everything
needed to execute a method in another...
|
by: Michael Roebuck |
last post by:
Hi all
I'm very new to VB - I am trying to run a DOS command from within a VB2005
asp.net web site using a command button?
The DOS command will take the form of the command followed by several
switches!
Any ideas examples gratefully accepted.
|
by: Odd Bjørn Andersen |
last post by:
I have installed DB2 9 Enterprise Edition on my laptop and created the
sample database. Now I'm having truble connecting to the database from
Command Editor. If I connect from Command Window it's no problem connecting
to sample (or any other databases - local or remote), but if I try to
connect from Command Editor I'm not able to do that....
| |
by: Gil_H |
last post by:
Hi,
I'm trying to run a script over unix on a remote machine.
In order to automate it, the procedure requests the following:
1. Using SSH connection.
2. Operating a command on the remote machine.
3. Expecting password or (yes/no) request and authorize it.
I get an error (I thing that it occures at the last part (3) of the
password...
|
by: lalnamar |
last post by:
I want to execute a unix time command using perl, and capture the output (specifically, the time it takes the command to execute).
i tried using the system command:
system("time command ");
however, when i try to capture the output, the capture output does not contain the amount of time it took to execute
when i try to do:
$var = `time...
|
by: Chris Carlen |
last post by:
Hi:
Having completed enough serial driver code for a TMS320F2812
microcontroller to talk to a terminal, I am now trying different
approaches to command interpretation.
I have a very simple command set consisting of several single letter
commands which take no arguments. A few additional single letter
commands take arguments:
|
by: boriq |
last post by:
Hi,
I'm using in my script command os.system('command') on Windows XP.
Each time the os.system command is used, python opens an empty ms-dos
command window (the black one) and then closes it. So when in one
script the os.system command 50 times is used, I see 50 black windows.
Is there a way of how to suppress this unnecessary command...
|
by: hsn |
last post by:
hello everyone. i am trying to run the sudo -i command in my mac.
here is the code
String s = null;
try {
|
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...
| |
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...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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...
|
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...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |