Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have successfully created msi in release mode and installed and execute in my pc but I am not able to execute in other pc. How can I solve these problem..I dont want everyone who need use my app to install vc++.

When I try to execute in other pc I get following warning

"
the application has failed to start because its side-by-side configuration is in correct. please see
the application event log or use the command line sxstrace.exe tool for more detail
"

and In event viewer under administration tool I have following error

"
Activation context generation failed for "MIDIDevDemo v2.exe". Dependent Assembly Microsoft.VC90.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",
type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis."
Posted
Updated 8-May-12 2:00am
Comments
bbirajdar 8-May-12 8:15am    
Add all the dependent assemblies to the setup... The above mentioned assembly is missing...

The one missing is Microsoft.VC90.MFC; you can link statically to mfc, then you won't need the DLL.
Right-click your project, choose 'Properties': in the tree view, under 'Configuration Properties' choose the 'General' branch.
One of the settings is 'Use of MFC' with three options:

  • 'Use standard Windows libraries' - i.e., don't use MFC at all.
  • 'Use MFC in a Static Library' - The MFC code is linked inside your program, no additional files need to be deployed.
  • 'Use MFC in a Shared DLL' - Requires deploying the MFC DLL with your application.


Hope this helps,
Pablo.
 
Share this answer
 
Comments
chaiein 9-May-12 2:37am    
Thank you this solved my problem:)
Dependent Assembly Microsoft.VC90.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b", type="win32",version="9.0.21022.8" could not be found.
It's pretty clear from the error that you missed adding assembly 'Microsoft.VC90.MFC' in your installer.

Add the same and this error should get resolved.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900