Hi,
Recently I downloaded 2011 version of infragistics for ASP.NET.I change web config file from 7.1 to 11.1 version.But when I try to built web site I am getting error:
the given assembly name or codebase was invalid.(Exception from HRESULT:0x80131047).
Please help.
Thanks.
Hello vaverbukh,
If you are still in need of assistamce please do not hesitate to contact me.
In order to manually change the point assembly references from pointing to you current version you have to change the version of NetAdvantage as well as the current build that you are using. I made a screenshot showing what should be changed in the web.config file as well as in all your aspx pages in your web site.
Register directive associates aliases with namespaces and classes, which allow user controls and custom server controls to be rendered when icnluded in a requested page or user control. For example:
<%@ Register assembly="Infragistics4.WebUI.UltraWebGrid.v11.1, Version=11.1.20111.2064, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid" tagprefix="igtbl" %>
This should be done on every WebForm, in every Register directive where the asesmblies are being registered.
Assemblies are the core of the common language runtime(CLR). They are collections of the types and resources required by the CLR to extecute the application. Since the web.config file is the main configuration file for the ASP.NET application all the assemblies should be reffered correctly in this file. For example:
<assemblies> <add assembly="Infragistics4.WebUI.UltraWebGrid.v11.1, Version=11.1.20111.2064, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" /> <add assembly="Infragistics4.WebUI.Shared.v11.1, Version=11.1.20111.2064, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" /> <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> </assemblies>
<assemblies>
<add assembly="Infragistics4.WebUI.UltraWebGrid.v11.1, Version=11.1.20111.2064, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="Infragistics4.WebUI.Shared.v11.1, Version=11.1.20111.2064, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
</assemblies>
Please note that this should be done for every single assembly being used.
I am attaching the screenshots for your reference.
Please feel free to contact me if you need any further assistance.
Since I am new to .Net programming please give more details how this could be done and also some example how to manually changing the point assembly and example for register directive.
Thanks,
Vitaly.
Thank you for posting in the community.
What I can suggest is manually changing the point assembly references from pointing to the version of 7.1 that you are uisng to pointing to your current version (11.1). This should be done on every WebForm in the Register directive where the assemblies are being registered as well as in the web config file or application.
I hope this helps. Feel free to contact me if you have any additional questions regarding this matter.