This is a migrated thread and some comments may be shown as answers.

Version issues with RadControls

5 Answers 182 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rob Venable
Top achievements
Rank 1
Rob Venable asked on 11 Feb 2010, 02:19 AM
Hi,
I was working away yesterday and got a popup message in Visual Studio saying that there was an update for RadControls so I decided to download it. Everything downloaded correctly but now all of my radcontrols have an "Error Creating Control..." It was looking for a different version but the one that was updated was older than the one I had...so I went back to your site and downloaded the latest trial version and referenced that dll in my app...still nothing. I looked at some of the possible solutions and copied the dll's into the GAC. Now my entire website is down. I like using the controls but I keep having issues like this. How can I get this to work so I can make changes to my controls at design time? I'm using Visual Studio 2008 and Telerik version 2009.3.1314.35.

Thanks
Here is the error I'm getting
Parser 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 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.  
 
Source Error:   
 
 
[No relevant source lines]  
   
 
Source File: none    Line: 0   
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded. 
 
 
=== Pre-bind state information ===  
LOG: User = IIS APPPOOL\DefaultAppPool  
LOG: DisplayName = Telerik.Web.UI  
 (Partial)  
LOG: Appbase = file:///C:/WebSites/Harmony/Harmony.Web/  
LOG: Initial PrivatePath = C:\WebSites\Harmony\Harmony.Web\bin  
Calling assembly : (Unknown). 
===  
LOG: This bind starts in default load context.  
LOG: Using application configuration file: C:\WebSites\Harmony\Harmony.Web\web.config  
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Aspnet.config  
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.  
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).  
LOG: The same bind was seen before, and was failed with hr = 0x80070002.  
 
   
 

5 Answers, 1 is accepted

Sort by
0
Rob Venable
Top achievements
Rank 1
answered on 12 Feb 2010, 09:26 PM
I partially fixed it. I removed the dll's from the GAC and now I can at least view my site but I still can't modify the controls through the smart tag. All of my controls have this message.
 
RadGrid - radGvProductsSystem.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutralPublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutralPublicKeyToken=121fae78165ba3d4' at Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection regions) at System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner designer) 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].  
0
Martin
Telerik team
answered on 15 Feb 2010, 08:18 AM
Hello Rob Venable,

Please review the relevant section in the following help article:

General Troubleshooting

I would also suggest you to check this knowledge base article for more information about how to update your RadControls.
 
I hope this helps,
Martin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Rob Venable
Top achievements
Rank 1
answered on 17 Feb 2010, 04:01 AM
Hi Martin,
I checked out the link you sent me and I have identified the problem but the solution doesn't help me out. Here is my problem:
Problem:  
 
System.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=xxxx.x.xxx.xx, Culture=neutralPublicKeyToken=xxxxxxxxxxxxxxxx' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)  
 
Cause:  
 
There is a reference to a version of Telerik.Web.UI in the web.config that is different from the version of the deployed assembly.  
 
Suggested solution:  
 
Update the reference in the web.config to match the version of the deployed assembly.  
 
 
This is the problem I'm having. It just doesn't tell me what the reference should look like. I looked it up and found a solution that tells me what the references should be but there are two different solutions. If I registered the dll in the gac then me references should look like this:
<httpHandlers> 
      ...  
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2007.2.1107.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
        validate="false" /> 
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2007.2.1107.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
        validate="false" /> 
</httpHandlers> 
 
 
but if it is not then my references should look like this:
<httpHandlers> 
    ...  
    <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" 
 validate="false" /> 
    <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"  validate="false" /> 
</httpHandlers> 
 
and this is exactly what I have in my web.config. I don't know what else to do. Yesterday it worked and I was able to modify my radgrid in design mode but today I can't and I didn't do anything to the grids or my web.config.
This is frustrating!
Is there anything else I can try?
0
Martin
Telerik team
answered on 17 Feb 2010, 03:45 PM
Hello Rob Venable,

Since the problem still exists I would suggest you to open a formal support ticket and send me the web.config file of your current project. Another option is to send me a stripped runnable demo project that would help me to draw a clearer picture of your scenario.

Regards,
Martin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Tad
Top achievements
Rank 1
answered on 05 Oct 2011, 04:30 PM
I thought I'd chime in since this was happening to me as well.  Hopefully it can help others on the same chase...

For me, it happened when I upgraded a project from one version of the controls to a newer version.  Turns out that I had upgraded the project I was working on, but it was referencing the dll from another project that I had NOT yet upgraded.  It was that other dll that was looking for the older version of the Telerik assembly, not the project I was working in.

For what it's worth,

--Tad 
Tags
General Discussions
Asked by
Rob Venable
Top achievements
Rank 1
Answers by
Rob Venable
Top achievements
Rank 1
Martin
Telerik team
Tad
Top achievements
Rank 1
Share this question
or