1740488 - Error: System.IO.FileNotFoundException: 'System.Web, Version=4.0.0.0

SAP Knowledge Base Article - Public

1740488 - Error: System.IO.FileNotFoundException: 'System.Web, Version=4.0.0.0

Symptom

  • Visual Studio .NET 32 bit application using Crystal Reports SDK for .NET is deployed and CR runtime correctly installed
  • When trying to run the application, the following error is produced:

System.IO.FileNotFoundException: 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
The system cannot find the file specified.  System.IO.FileNotFoundException: 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
The system cannot find the file specified.

  • Since this is a windows application why is the file system.web required?

Environment

  • Crystal Reports for Visual Studio 2010
  • Visual Studio 2010

Cause

  • Crystal Reports requires the full framework /  .Net Framework 4.0 Extended
  • System.Web file is a Crystal Reports dependency as the parameter prompt dilalogs require the dll to load correctly

Resolution

  • Install the  .Net Framework 4.0 Extended

Keywords

CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13 , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio