If you're attempting to create a new instance of the VB.NET VSA runtime
engine, then you could do the following:
private IVsaEngine m_Engine;
m_Engine = new Microsoft.VisualBasic.Vsa.VsaEngine();
The above lines create a new instance of the managed code secure trusted
library for the VB.NET VSA runtime engine. Your references look correct to
me. For this to work, the VB.NET VSA runtime engine needs to be
registered...it isn't due to an installer bug. To correct this problem,
register it manually by running the following from the command prompt:
C> regsvr32 vsavb7rt.dll
I have no ideas about the installer hang. Any more info?
Jim
P.S. I cross-posted to microsoft.public.dotnet.vsa where VSA-related
questions are handled.
"Stephen Chung" <Stephe...@intelant.com> wrote in message
news:44a001c1081b$7ab0f080$b1e62ecf@tkmsftngxa04...
> Dear All,
>
> I have a different problem with VSA under C#. I included
> references to Microsoft.Vsa and Microsoft.VisualBasic.Vsa
> fine (what is Microsoft_VsaVB for?). However, whenever I
> try to do a:
>
> VsaEngine engine = new VsaEngine();
>
> Visual Studio.NET will come back with an error
> saying "File not found: the assembly
> Microsoft.VisualBasic.Vsa cannot be loaded because it or
> one of its dependencies cannot be found."
>
> Anyone seen this before?
>
> Also, installing the VSA.NET SDK beta 2 hangs my W2K
> Advanced Server. :-( No blue-screen, but machine just
> completely hangs.
>
> - Stephen
>
System.IO.FileNotFoundException: File or assembly name
Microsoft.VisualBasic.Vsa, or one of its dependencies, was not found.
File name: "Microsoft.VisualBasic.Vsa"
at ....
By the way, I successfully referenced Microsoft.JScript and successfully
created a Microsoft.JScript.Vsa.VsaEngine. It doesn't have the problem with
VisualBasic.Vsa. However, there is no clue as to how to add code items,
reference items etc. as per VB.NET. How do I load code with the JScript Vsa
Engine? I figured that if I can't have VB.NET, I might as well have
JScript...
As for the installation problem, I tried it twice, and both times it did the
following:
1. I double-clicked the exe
2. The desktop stops functioning (i.e., Explorer will no longer respond),
but I can still move the mouse. I can't open any folders and do other
things though.
3. The disk drive light flashed on and off for about 20 minutes.
4. The computer hangs. The mouse will no longer move. Ctrl-Alt-Del fails
to do anything.
5. Turn off power.
Computer is a PIII 500 w/ SIS chipset running Windows 2000 Advanced Server.
The OS should have been patched by the VS.NET installer though.
- Stephen
"Jim Lawyer" <j...@summsoft.com> wrote in message
news:#uq5sBICBHA.1884@tkmsftngp07...
if those files are not in there you can drag and drop them from
%windir%\Microsoft.NET\Framework\v1.0.2914 into %windir%\assembly or use
gacutil.
What OS are you running?
hth
Andrew
"Stephen Chung" <Stephe...@intelant.com> wrote in message
news:#8OtnaICBHA.1264@tkmsftngp07...
Hi,
JScript adds code items the same way VB does: you create an Item of type
Code with a flag of None and then just add your code to it. Check out my js7
sample on www.gotdotnet.com (should be live in a day or so) for a simple
JScript.NET host.
Peter
--
Peter Torr - pt...@microsoft.com
JScript .NET / VSA Runtime Program Manager
Please post all questions to the group. Thanks.