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=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"


Probable Cause

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.


Resolution

Until this issue is resolved, use one of the following workarounds: