c# - Module was expected to contain an assembly manifest -


i have project has been working fine in visual studio 2013 written in c# using wpf. project has few dependencies:

  • galasoft.mvvmlight toolkit
  • newtonsoft.json
  • xceed.wpf.toolkit

prior last night project has been working fine, ran , able debugged without issue. however, last night when deciding work on project, opened , tried compiling debugging. when application attempts ran via debugger, receive:

error while trying run project: not load file or assembly 'myprojectname' or 1 of dependencies. module expected contain assembly manifest.

some things have tried based on other questions , google:

  • cleaning solution , rebuilding did not help.
  • renaming project did not help.
  • there no name collisions in dependencies , project.
  • building anycpu works within debugger trying use x86

another thing note compiled binary runs fine outside of visual studio. refuses debugged within vs. not make sense me run fine outside of vs without error, inside throws error no additional information.

the debug output not contain error information @ useful.

compiling after running build -> clean gives:

    1>------ rebuild started: project: myprojectname, configuration: debug x86 ------     1>  myprojectname -> <path stripped>\myprojectname.exe     ========== rebuild all: 1 succeeded, 0 failed, 0 skipped ========== 

attempting debug x86 build gives:

    'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\assembly\gac_msil\microsoft.visualstudio.hostingprocess.utilities\12.0.0.0__b03f5f7f11d50a3a\microsoft.visualstudio.hostingprocess.utilities.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system.windows.forms\v4.0_4.0.0.0__b77a5c561934e089\system.windows.forms.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system.drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.drawing.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system\v4.0_4.0.0.0__b77a5c561934e089\system.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\assembly\gac_msil\microsoft.visualstudio.hostingprocess.utilities.sync\12.0.0.0__b03f5f7f11d50a3a\microsoft.visualstudio.hostingprocess.utilities.sync.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\assembly\gac_msil\microsoft.visualstudio.debugger.runtime\12.0.0.0__b03f5f7f11d50a3a\microsoft.visualstudio.debugger.runtime.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded '<path stripped>\myprojectname.vshost.exe'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system.xml\v4.0_4.0.0.0__b77a5c561934e089\system.xml.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\microsoft.csharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\microsoft.csharp.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system.core\v4.0_4.0.0.0__b77a5c561934e089\system.core.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system.xaml\v4.0_4.0.0.0__b77a5c561934e089\system.xaml.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system.xml.linq\v4.0_4.0.0.0__b77a5c561934e089\system.xml.linq.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\windowsbase\v4.0_4.0.0.0__31bf3856ad364e35\windowsbase.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_64\presentationcore\v4.0_4.0.0.0__31bf3856ad364e35\presentationcore.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\presentationframework\v4.0_4.0.0.0__31bf3856ad364e35\presentationframework.dll'     first chance exception of type 'system.runtime.interopservices.comexception' occurred in microsoft.visualstudio.hostingprocess.utilities.dll     thread 'vshost.notifyload' (0x15c8) has exited code 0 (0x0).     thread 'vshost.loadreference' (0x29d0) has exited code 0 (0x0).     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded '<path stripped>\myprojectname.exe', symbols loaded.     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system.configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.configuration.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'microsoft.practices.servicelocation'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'galasoft.mvvmlight.extras'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\presentationframework-systemxmllinq\v4.0_4.0.0.0__b77a5c561934e089\presentationframework-systemxmllinq.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'galasoft.mvvmlight'     first chance exception of type 'system.io.filenotfoundexception' occurred in system.dll     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'system.windows.interactivity'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'newtonsoft.json'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system.numerics\v4.0_4.0.0.0__b77a5c561934e089\system.numerics.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\presentationframework.aero\v4.0_4.0.0.0__31bf3856ad364e35\presentationframework.aero.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system.dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.dynamic.dll'     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'anonymously hosted dynamicmethods assembly'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\presentationframework-systemxml\v4.0_4.0.0.0__b77a5c561934e089\presentationframework-systemxml.dll'     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'xceed.wpf.toolkit'     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_64\system.data\v4.0_4.0.0.0__b77a5c561934e089\system.data.dll'     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     first chance exception of type 'microsoft.csharp.runtimebinder.runtimebinderexception' occurred in microsoft.csharp.dll     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\uiautomationtypes\v4.0_4.0.0.0__31bf3856ad364e35\uiautomationtypes.dll'     'myprojectname.vshost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\uiautomationprovider\v4.0_4.0.0.0__31bf3856ad364e35\uiautomationprovider.dll'     first chance exception of type 'system.net.webexception' occurred in system.dll     thread 'vshost.runparkingwindow' (0x31a4) has exited code 0 (0x0).     thread '<no name>' (0x2884) has exited code 0 (0x0).     thread '<no name>' (0x3590) has exited code 0 (0x0).     program '[12724] myprojectname.vshost.exe: managed (v4.0.30319)' has exited code 0 (0x0).     program '[12724] myprojectname.vshost.exe: program trace' has exited code 0 (0x0). 

there no useful stack info since there no breakpoints hit dies before app starts. unsure module causing this. given runs fine on disk whats compiled, don't think issue resides in project perhaps inside of vs. have not installed/uninstalled on machine nothing has changed lately. unsure why started happening out of nowhere.

edit

and anycpu causing error appear when literally working typing this.. :(

thanks @yusefnejad, deleting output folder resetting references dependencies seems have fixed problem. no idea why started having issues. nothing else changed , working again. thanks. :)


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -