• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Error with VB.NET and Simconnect

Messages
7
Country
newzealand
I had a working program and went to add a small bit of code to read more data but now when I try my program it stops with an error before anything happens. I removed my changes and the same result.
I have tracked it down with anything to do with my simconnect vaiable. a simple

Public mySimconnect as SimConnect = Nothing

is enough to trigger it. I have tried the full Microsoft.FlightSimulator.Simconnect.Simconnect and still same result. If I comment out everything to do with the mySimconnect then it works fine. The reference is added and the file exists where I referenced it. I still have the IMPORTS field.
The error message refers to relative paths but does not give much info.

Error Message is:

System.InvalidOperationException was unhandled
Message="An error occurred creating the form. See Exception.InnerException for details. The error is: The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
Source="Fsx Time Display"
StackTrace:
at Fsx_Time_Display.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at Fsx_Time_Display.My.MyProject.MyForms.get_Main()
at Fsx_Time_Display.My.MyApplication.OnCreateMainForm() in I:\Fsx Time Display\Fsx Time Display\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Fsx_Time_Display.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.IO.FileNotFoundException
Message="The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
Source="Fsx Time Display"
StackTrace:
at Fsx_Time_Display.Main..ctor()
InnerException:
 
Well as always I hate that when that happens.

I could not find any reason so I went and re-installed the Simconnect.msi package on my PC again and that appears to have fixed the problem. Don't know why it suddenly stopped working in the first place.
 
Back
Top