c# application not working without vc 10 runtime
my application crashed on startup on a machine without visual studio so i installed it and figured the only this开发者_开发百科 i need to make my app run is : Microsoft Visual C++ 2010 x86 Runtime - 10.0.30319
However when i uninstantiated this component and installed Microsoft Visual C++ 2010 SP1 Redistributable Package (x86), which is said to include the runtime components, my application still crashes.
How do i make it work? am i installing a wrong package? thanks
Which .Net Framework version are you targetting?
Is this a WPF, Winforms, Console Application?
If I understand you correctly:
You built a C# application and it runs on your development computer but when you try to run it on another system it fails?
Perhaps you need to include a prerequisite when you publish the application? In the project properties -> Publish tab. Check the Application Files and Prerequisite buttons to see if you need to include some items with your installer.
Found a fix in case someone have the same problem:
created setup project for my application, it automatically detected dependencies, then manually added Microsoft_VC100_DebugCRT_x86.msm to setup project : Project -> Add-> Merged Module. Build and install .msi on a user machine.
精彩评论