Advertisement

07.23.2008 at 08:45AM PDT, ID: 23588927
[x]
Attachment Details

System.ComponentModel.Win32Exception when trying to execute vbscript in vb.net

Asked by Pbbarntt in Microsoft Visual Basic.Net, Visual Studio 2008

Tags: VB 2008, VB.Net, A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll

I'm writing a UI for some clients of mine in vb.net with visual studio 2008. Everything works fine until the VB code tries to execute this line of code

System.Diagnostics.Process.Start("CreatePort.vbs")
And this is the error I get
"A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll"

And this happens with any script I try to run in vb.net

Now, I know the script itself works because I've uesed it 3 dozen times over the past 2 weeks, the only thing I can think of is that I'm not calling the script properly.

Any Ideas?
Start Free Trial
[+][-]07.24.2008 at 05:29AM PDT, ID: 22078311

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 01:53PM PDT, ID: 22083426

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, Visual Studio 2008
Tags: VB 2008, VB.Net, A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll
Sign Up Now!
Solution Provided By: Pbbarntt
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628