Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_web_matrix thread: Re: compiling vb class


Message #1 by "Beau Dawkins" <beaudawkins@n...> on Tue, 5 Nov 2002 02:34:07
Can you explain this further.  I can not seem to get it to work. 

> Hello.

> I think the problem is that you have not added the path to vbc.exe in 
your 
e> nvironment variable ( Control panel --> System --> Advanced --> 
E> nvironment variables ). Add the path to vbc.exe, 
u> sually "C:\WINNT\Microsoft.NET\Framework\v1.0.3705", close your cmd 
and 
o> pen it again. Try again.

> Philip

> > I am just getting started with ASP.NET WebMatrix. I have been reading 
t> he 
I> > nside ASP.NET Web Matrix book and am just getting started with the 
s> ample 
p> > roject. On about page 5 of part 2 of the book, a vb class is created 
a> nd 
c> > ompiled into a dll using a one-line batch file: 

> > vbc /debug /nologo /t:library ... DataLayer.vb 

> > When I execute the batch file, I get the message: 

> > 'vbc' is not recognized as an internal or external command, operable 
p> > rogram or batch file. 

> > Any thoughts on what the problem is? Is it necessary to have some 
v> ersion 
o> > f VisualBasic installed in order to use Web Matrix? (I do not). 

> > Thanks in advance.
Message #2 by "Ken Schaefer" <ken@a...> on Fri, 8 Nov 2002 16:05:02 +1100
You are trying to run a program called vbc.exe

vbc.exe is located (by default) in
c:\winnt\Microsoft.net\Framework\v1.0.3705\

(the version number may be different depending on what version of the
framework you have installed).

When you run vbc.exe you need to tell Windows where vbc.exe is (if it is not
in the current directory):
a) type out the path, eg:

c:\> "c:\winnt\Microsoft.net\framework\v1.0.3705\vbc.exe" /t:library
...etc...

OR

b) Add it to the environment path. Windows automatically scans the Path to
see if a program is located in the path if it can't find the program in the
current directory. To see what folders are currently stored in the Path,
type Path at the c:\> prompt:

c:\>Path

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Beau Dawkins" <beaudawkins@n...>
Subject: [aspx_web_matrix] Re: compiling vb class


: Can you explain this further.  I can not seem to get it to work.
:
: > Hello.
:
: > I think the problem is that you have not added the path to vbc.exe in
: your
: e> nvironment variable ( Control panel --> System --> Advanced -->
: E> nvironment variables ). Add the path to vbc.exe,
: u> sually "C:\WINNT\Microsoft.NET\Framework\v1.0.3705", close your cmd
: and
: o> pen it again. Try again.
:
: > Philip
:
: > > I am just getting started with ASP.NET WebMatrix. I have been reading
: t> he
: I> > nside ASP.NET Web Matrix book and am just getting started with the
: s> ample
: p> > roject. On about page 5 of part 2 of the book, a vb class is created
: a> nd
: c> > ompiled into a dll using a one-line batch file:
:
: > > vbc /debug /nologo /t:library ... DataLayer.vb
:
: > > When I execute the batch file, I get the message:
:
: > > 'vbc' is not recognized as an internal or external command, operable
: p> > rogram or batch file.
:
: > > Any thoughts on what the problem is? Is it necessary to have some
: v> ersion
: o> > f VisualBasic installed in order to use Web Matrix? (I do not).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  Return to Index