troubleshooting Question

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

Avatar of Pbbarntt
Pbbarntt asked on
.NET ProgrammingVisual Basic.NET
2 Comments1 Solution2890 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
Pbbarntt

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros