• 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.

VB Sample crashes

Messages
49
Country
unitedstates
What's ADE? I don't think I'm using it..

I'm trying to run the Managed VB Data Request sample and it crashes as starting.

The dll appears in the VB Project references in the non-default location:
C:\FSX\SDK\Core Utilities Kit\SimConnect SDK\lib\managed\Microsoft.FlightSimulator.SimConnect.dll

I ran ConfigSDK

The tools menu displays add returns something - not sure what I'm looking at but I cranked up traffic and it shows a list.

The VB project was updated to VB Express 2010 and now errors are listed - I'm a VB.Net programmer using VS2010 programmer at work.

I ran the ADEX environment checker and it didn't find ADE or part of FSUIPC (which was installed but removed from dll.xml and the files are out of the Modules folder. Report below.

Hopefully I'm missing something simple... Thanks!



System.InvalidOperationException was unhandled
Message=An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'Microsoft.FlightSimulator.SimConnect, Version=10.0.61259.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source=BasicExample
StackTrace:
at BasicExample.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at BasicExample.My.MyProject.MyForms.get_ManagedDataRequest()
at BasicExample.My.MyApplication.OnCreateMainForm() in C:\FSX\SDK\Core Utilities Kit\SimConnect SDK\Samples\Managed VB Data Request\Managed VB Data Request\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 BasicExample.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.IO.FileNotFoundException
Message=Could not load file or assembly 'Microsoft.FlightSimulator.SimConnect, Version=10.0.61259.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source=BasicExample
FileName=Microsoft.FlightSimulator.SimConnect, Version=10.0.61259.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
FusionLog==== Pre-bind state information ===
LOG: User = Bob-PC\Bob
LOG: DisplayName = Microsoft.FlightSimulator.SimConnect, Version=10.0.61259.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///C:/FSX/SDK/Core Utilities Kit/SimConnect SDK/Samples/Managed VB Data Request/Managed VB Data Request/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : BasicExample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Microsoft.FlightSimulator.SimConnect, Version=10.0.61259.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.

StackTrace:
at BasicExample.ManagedDataRequest..ctor()
InnerException:

*************************************************************************************************
Date of Report: 7/24/2011 4:28:22 PM
Operating System: Microsoft Windows 7 Home Premium
OS Service Pack: Service Pack 1 (1.0)
OS Version: 6.1.7601 (64 Bit)
OS Language: English (United States) => separator: '.'
Nodename: BOB-PC
ADE installed: no
ADE Path: ADE not found
ADE Install Version: n/a
ADE File Version: n/a
ADE Info: n/a
FXS installed: yes
FSX Path: C:\FSX\
FSX Version: 10.0.61472.0 (fsx-sp2.20071210-2023)
FSX Trailing '\' Error: False
FX9 installed: no
FS9 Path: n/a
FS9 Version: n/a
FS9 Trailing '\' Error: False
RTM Simconnect: yes
SP1 Simconnect: yes
SP2 Simconnect: yes
FSX SDK installed: yes
FSX SDK Path: C:\FSX\SDK\
FSX SDK Trailing '\' Error: False
BGLComp Version: 10.0.61472.0 (fsx-sp2.20071210-2023)
BGLComp >= SP1: yes
Shp2Vec found: yes
.NET 1.1 installed: no
.NET 2.0 installed: yes
.NET 3.0 installed: yes
.NET 3.5 installed: yes
XML3 installed: yes
XML4 installed: yes
XML5 installed: yes
XML6 installed: yes
FSUIPC/FS9 installed: n/a
FSUIPC/FSX installed: not installed
Connected to FS9 ok: no
Connected to FSX ok: no
 
ADE is Airport Design Editor and airport design tool similar to AFCAD.

Folks use the Environment Checker sometimes to see what their FS installation looks like and what is installed. You don't have ADE but that would not have any effect on this problem. It uses SimConnect (in older versions) but does not modify it or its settings.

Well I guess you can see from the Stack Trace that your application cannot load SimConnect.

This might help:

http://www.fsdeveloper.com/forum/showthread.php?t=16168

Or try Googling - it brought up several references when I did it
 
What did you search for on Google that returned several results?

I tried changing the reference to the Legacy version as suggested on the thread but it doesn't seem to matter what version I use I get the same error with an InnerExeception that the file (or dependencies) could not be found.

Are there any dependencies?

Can anyone run the VB example?

RE: Target - I'm using VB Express running on x64 Windows 7. The target option is gray'd out... I found directions for changing AnyCPU to x86 in the project file but that didn't do the trick.

I ran SimConnect.msi in the lib folder - didn't help.

There is a readme.txt in the lib folder that I can't decode:

Sample.exe.manifest - a sample manifest file. Place a copy of this in the same directory as a SimConnect client .exe and change that copy's name to the same name as the client .exe with ".manifest" appended to it. When the client is launched, the Windows OS side-by-side (SxS) assembly system will find the designated version of the SimConnect.dll to load into the client's process. You can use the manifest tool (mt.exe) that is provided in the Platform SDK to embed the manifest contents into the client .exe, eliminating the need to keep a copy of the .manifest file present with the .exe. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sbscs/setup/mt_exe.asp for more details about the manifest tool. The use of SxS manifests avoids the management problems of having multiple copies of a shared DLL.

There are already manifest files present - how could this stock one replace it?

Does FSX need to be running for the project to run at all - I've tried it both ways?
 
Back
Top