Assembly Reference Error When Compiling Application

Applies to: WebGrid 4.0, WebCombo 3.0, WebUI 2.0
Published on: October 30, 2005 | Last Modified on November 25, 2005
Rate this topic:
     

Summary

When trying to run samples project or application, you get assembly reference error.

Content

The error message could be one of the following :
  1. Type 'ISNet.WebUI.WebStyle' is not defined.
  2. The located assembly's manifest definition with name 'ISNet.WebUI.WebGrid' does not match the assembly reference.
  3. The type or namespace name 'BorderDetail' does not exist in the namespace 'ISNet.WebUI' after compiling the project with latest trial version of WebGrid.NET 4.0.
  4. Field not found: ISNet.WebUI.ISNetControl.viewStateLoaded.

This error is caused by wrong or not exist reference in your application.
These are the steps to solve this error:
  1. In Solution Explorer, choose References.
  2. If exist, remove all Intersoft related reference from References. The reference includes framework's DLL (ISNet.dll and ISNet.WebUI.dll) and product's DLL (for example : ISNet.WebUI.WebGrid.dll and ISNet.WebUI.WebCombo.dll).
  3. Re-add the references from the Intersoft folder. If you don't change the default folder during installation, the files can be found in C:\Program Files\Intersoft Solutions\WebCombo.NET V3.0\Bin, C:\Program Files\Intersoft Solutions\WebGrid.NET V4.0\Bin, and C:\Program Files\Intersoft Solutions\WebUI.NET Framework\Bin. Make sure the reference use the correct version.
  4. Set the Copy Local property to True.
  5. Compile and run the application.