Quantcast
Channel: Silk Test - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 625

Script ran fine yesterday, now I get "The type initializer for 'Main' threw an exception."

$
0
0

Hey there!

I have a very strange problem that I am hoping you could help me with as I am at a complete loss as to why this is happening.  Please help!

I didn't make a single change to the script or to the ActiveData file, and I get this error:

"The type initializer for 'Main' threw an exception."

 

 

So, here is the script.  The part in bold/italics is the step that fails:

Imports System.Diagnostics
Imports SilkTest.Ntf.XBrowser
Imports System.IO

Public Module Main

Public _desktop As Desktop = Agent.Desktop,

applicationProcess As New Process(),
ieprocess As New Process(),
chromeprocess As New Process(),
psi As New ProcessStartInfo()

'ACTIVE DATA

Public args = New Dictionary(Of String, Object)(),
row As ActiveDataRow,
rowno As Integer,
data = Workbench.LoadActiveData("MyPri_InputFile")

 

 

 

Here is what my ActiveData looks like:

  • It is on a non local "T:" drive over the network that I have no problem accessing and all our scripts are located here
  • there are two tabs in my activedata, and the one that I want to use is properly selected as "input_values"
  • The rows are all populating the data even after I make a change properly


Viewing all articles
Browse latest Browse all 625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>