System.IO.FileNotFoundException When Using WebGrabber
Running a .NET application targeted to the .NET 3.5 Framework with only the .NET 4.0 Framework installed on the system results in the error: "System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceModel, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c561934e089'"
This error is due to the .NET Framework attempting to locate a system file that does not exist when only the .NET 4.0 Framework is installed and the application is targeted to the .NET 3.5 Framework. Further explanation can be found here: https://social.msdn.microsoft.com/Forums/en/netfxsetup/thread/4f0b7821-506f-453f-896e-54a545c75081.
Until this issue is resolved, use one of the following workarounds:
- Install the .NET 3.5 Framework in addition to the WebGrabber installation of the .NET 4.0 Framework.
- Target your application to the .NET 4.0 Framework instead of the .NET 3.5 Framework. For more details, see https://social.msdn.microsoft.com/Forums/mr/netfxsetupprerelease/thread/d6d8957e-742a-4cc2-b5c1-d9130ea423d0.