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:
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:
