I copy my project web site (all the files) from my local machine to the production server, and copy all the the files from the directory C:\Archivos de programa\Infragistics\NetAdvantage 2010.2\ASP.NET\CLR2.0\Bin to the bin directory of the website in the production server how say in the help topic Deploying a Web Application that Uses NetAdvantage ASP.NET Controls and give the following error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load file or assembly 'Infragistics2.Web.v10.2, Version=10.2.20102.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. The system cannot find the file specified.Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> Line 2: Line 3: <%@ Register Assembly="Infragistics2.Web.v10.2, Version=10.2.20102.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Line 4: Namespace="Infragistics.Web.UI.LayoutControls" TagPrefix="ig" %> Line 5: <%@ Register Assembly="Infragistics2.Web.v10.2, Version=10.2.20102.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
What can I do for solve this error?
Thanls
I was using .NET 4 assemblies, but had the same problem and have solved it. I was using GoDaddy.com as the hosting provider. I was using a sub-domain and copied my Website files and then copied the Infragistics files. I tried all the types of Infragistics files (bin, signed, aptca, etc) without luck. After talking to GoDaddy, it was determined the sub-domain was not configured to run as an application. So make sure the destination Web server is running a application. If you are using the default Website, just make sure you are running the correct version of .NET. If you are copying to a hosted environment where you do not have a Full (unlimited) trust, then you'll need to copy the APTCA files. Make sure they are the same version as the references listed in your web.config.
If you are still having problems, create a test Website (new web.config also) with a sample text box just to see if .NET is working correctly. Here is some code to help you determine the trust mode of the site:
public
partial class testsecurity : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
}
AspNetHostingPermissionLevel GetCurrentTrustLevel()
[] {
AspNetHostingPermissionLevel.Unrestricted,
AspNetHostingPermissionLevel.High,
AspNetHostingPermissionLevel.Medium,
AspNetHostingPermissionLevel.Low,
AspNetHostingPermissionLevel.Minimal
})
try
new AspNetHostingPermission
(trustLevel).Demand();
catch (System.Security.SecurityException
)
continue
;
return
trustLevel;
return AspNetHostingPermissionLevel.None;
protected void Button1_Click(object sender, EventArgs e)
txtSecurity.Text = GetCurrentTrustLevel().ToString();
On a hosted server that has medium trust versus full trust, you have to configure your web.config and set the trust. Here is my web.config that worked. Notice the <trust level="Full"/>
tag and
<?
xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<
configuration>
configSections>
section name="infragistics.web" type="System.Configuration.SingleTagSectionHandler,System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</configSections>
infragistics.web styleSetName="LucidDream" styleSetPath="~/ig_res" enableAppStyling="true" imageDirectory="~/ig_common" javaScriptDirectory="~/scripts"/>
system.web>
compilation debug="true" targetFramework="4.0">
assemblies>
add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
add assembly="Infragistics4.WebUI.Misc.v10.2, Version=10.2.20102.2091, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/>
add assembly="Infragistics4.WebUI.Shared.v10.2, Version=10.2.20102.2091, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/>
add assembly="Infragistics4.WebUI.UltraWebListbar.v10.2, Version=10.2.20102.2091, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/>
add assembly="Infragistics4.WebUI.UltraWebNavigator.v10.2, Version=10.2.20102.2091, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/>
add assembly="Infragistics4.WebUI.WebNavBar.v10.2, Version=10.2.20102.2091, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/>
</
compilation>
customErrors mode="Off">
customErrors>
trust level="Full"/>
runtime>
assemblyBinding
xmlns="urn:schemas-microsoft-com:asm.vl">
dependentAssembly>
assemblyIdentity name="Infragistics4.WebUI.Misc.v10.2" publicKeyToken="7DD5C3163F2CD0CB"/>
bindingRedirect oldVersion="10.2.1.0-10.2.20102.2091" newVersion="10.2.20102.2091"/>
</dependentAssembly>
assemblyIdentity name="Infragistics4.WebUI.Shared.v10.2" publicKeyToken="7DD5C3163F2CD0CB"/>
bindingRedirect oldVersion="10.2.1.0-10.2.20102.2091" NewVersion="10.2.20102.2091"/>
<assemblyIdentity name="Infragistics4.WebUI.UltraWebListbar.v10.2" PublicKeyToken="7DD5C3163F2CD0CB"/>
<bindingRedirect oldVersion="10.2.1.0-10.2.20102.2091" newVersion="10.2.20102.2091"/>
assemblyIdentity name="Infragistics4.WebUI.UltraWebNavigator.v10.2" publicKeyToken="7DD5C3163F2CD0CB"/>
bindingRedirect oldVersion="10.2.1.0-10.2.20102.2091" newVersion="10.2.20102.2091" />
assemblyIdentity Name="Infragistics4.WebUI.WebNavBar.v10.2" publicKeyToken="7DD5C3163F2CD0CB"/>
: :
assemblyBinding>
Here is a good link that shows how to configure web.configs for partial trust environments:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.2/CLR4.0/html/Web_Deploying_an_Application_to_a_Partial_Trust_Environment.html
That should fix your errors!