Originally posted by dcorsus
View Post
System.TypeInitializationException was unhandled
Message=The type initializer for 'HSPI_SAMPLE.Main' threw an exception.
Source=HSPI_SAMPLE
TypeName=HSPI_SAMPLE.Main
StackTrace:
at HSPI_SAMPLE.Main.Main()
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(A ctivationContext activationContext, String[] activationCustomData)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssem blyDebugInZone()
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.BadImageFormatException
Message=Could not load file or assembly 'HomeSeerAPI, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source=HSPI_SAMPLE
FileName=HomeSeerAPI, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null
FusionLog==== Pre-bind state information ===
LOG: User = ithemmet-Dator\ithemmet
LOG: DisplayName = HomeSeerAPI, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///C:/utveckling/HSPI_SAMPLE/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : HSPI_SAMPLE, Version=1.0.0.5, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\utveckling\HSPI_SAMPLE\bin\Debug\HSPI_SAMPLE.exe.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machi ne.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/utveckling/HSPI_SAMPLE/bin/Debug/HomeSeerAPI.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
StackTrace:
at HSPI_SAMPLE.Main..cctor()
InnerException:
Comment