scribekey

setup.exe installer won't work with release build

Discussion created by scribekey on May 10, 2012
Latest reply on May 10, 2012 by scribekey
Using Visual Studio 2008, ArcView 10, SP 3. When I build an installer for a stand-alone arcobjects (c# console app) MyApp.exe in Visual Studio and use the Debug build, the program runs okay after installation. If I use the Release build, I get a 'MyApp has stopped working' dialog box. Then the console outputs the following:

Unhandled Exception: System.TypeInitializationException: The type initializer for 'MyApp.Program' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'ESRI.ArcGIS.System, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified. File name: 'ESRI.ArcGIS.System, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'  at MyApp.Program..cctor()

Outcomes