Error:
Common language runtime detected an invalid program
Snapshot:
Workaround1:
Windows 8: Enable .NET Framework 3.5
.NET Framework .NET 4.5 is shipped with Windows 8 as a feature and by default the feature is disabled. You can enable this particular right away using this GUI Tool but in order to do that you need to be connected to internet i.e. Online Mode. Other way is using DISM Command and this can be done in an Offline Mode using Windows 8 installation media.
First step is to check the Program and Features to enable any available additional features in an Operating System. This is what you see in your
Control Panel |Program and Features| Turn Windows features on or off.
Find “Microsoft .NET framework 3.5.1” when the window opens
Click the + sign next to it to expand it so you can now see:
“Windows Communication Foundation HTTP Activation”
“Windows Communication Foundation HTTP non-Activation”
Make sure there is a tick in both boxes and select OK.
Method 1: When you are Online, connected to Internet.
In order to install the following window click on the .NET Framework 3.5 (included .NET 2.0 and 3.0) select it & click OK
Now, it will download the entire package from the internet & install the .NET Framework feature.
Method 2: When you are Offline and not connected to Internet
copy the required package to local machine before you run the command to install .NET Framework. To do that use Windows 8 ISO/DVD/USB Media. You need to copy SXS folder to local machine located at D:\sources\sxs (In this case D: your drive letter on which you have loaded Windows 8 Media)
Open CMD.EXE with Administrative Privilege
Run the following command
dism /online /enable-feature /featurename:NetFx3 /All /SourceC:\sxs /LimitAccess and hit Enter