I have a console app that interacts with internet explorer to do a few things.
Basically, the app runs perfectly normal in debug/release mode out of VS 2015 professional.
Once published in debug or release mode as an exe, I get the error you see in the post title.
Does anyone have experience with this happening?
Thank you in advanced.
I wanted to also add that when the program first starts after being published it works, it uses a .dll from a class library I made in another project it gets the internet explorer makes it visible then fails.
Public Shared Function func_getIe(strIntialUrl As String) As InternetExplorer
Dim ie As InternetExplorer
ie = New InternetExplorer
ie.Visible = True
ie.Navigate(strIntialUrl)
While ie.ReadyState <> 4
End While
Return ie
End Function
That is the code from one part of the .dll that is almost the very first thing, aside from some variable declaration in the beginning of the Main().