VB Sample crashes
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.SimConne ct.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.
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_ManagedDataR equest()
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.WindowsF ormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.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.Run UsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
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.
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
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=22.214.171.124, 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\co nfig\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.
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: '.'
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:
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/de...tup/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?
|Thread||Thread Starter||Forum||Replies||Last Post|
|Imagetool crashes||Free_Scenery||General||3||15 Jun 2009 15:16|
|FSX crashes after importing a new BGL||alex-krug||FSDS||22||11 Mar 2009 06:34|
|resample.exe crashes on 100% quality settings||=Hollywood=||Terrain SDK||0||25 Jan 2008 02:50|
|ReservedKey sample||flying-w||SimConnect||0||21 Sep 2007 16:31|
|Starting a Sample||Joe||SimConnect||1||13 Nov 2006 17:57|