When trying to run samples project or application, you get assembly reference error.
The error message could be one of the following :
- Type 'ISNet.WebUI.WebStyle' is not defined.
- The located assembly's manifest definition with name 'ISNet.WebUI.WebGrid' does not match the assembly reference.
- 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.
- 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:
- In Solution Explorer, choose References.
- 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).
- 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.
- Set the Copy Local property to True.
- Compile and run the application.