FAQ (Frequently Asked Questions)


Questions

  1. I receive the following error when compiling my project: "The referenced assembly 'VDISPCWIN' could not be resolved because it has a dependency on 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which is not in the currently targeted framework '.NETFramework,Version=v4.0,Profile=Client'. Please remove references to assemblies not in the targeted framework or consider retargeting your project."
  2. I receive the following error when compiling my project: "Error 2 Could not load the assembly file:///C:\Users\yourname\projectname\VDISPCWIN.dll. This assembly may have been downloaded from the Web. If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on the local computer. This may prevent it from being used in your project. You can change this designation by changing the file properties. Only unblock assemblies that you trust. See http://go.microsoft.com/fwlink/?LinkId=179545 for more information."

Answers

  1. In order to correct this issue, go to the project Properties and change the Target framework from .Net Framework 4 Client Profile to .Net Framework 4. An image of this is shown below:

    Project Properties
  2. In order to correct this issue, go to the location mentioned in the error and right-click on VDISPCWIN.dll. Select Properties from the context-menu. At the bottom of the dialog that pops up, there will be an Unblock button. Click this button to resolve the error. An image of this is shown below:

    Unblock button