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

Could not load file or assembly

4 Answers 254 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 17 Jul 2008, 11:58 AM
I'm using RadControls for ASPNET AJAX Q1 2008 in a web part in WSS 3.0.

My solutions build and deploy fine but when I try to hit the web part in WSS I get the following error msg:

"Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified."

I didn't know this dll had any dependencies.

Can you tell me how to fix this pls?

4 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 17 Jul 2008, 12:19 PM
Hello Steve,

It seems that you have not registered correctly the Telerik.Web.UI.dll and it cannot be referenced at runtime. Can you please double-check that you followed precisely the steps from the Integrating RadControls in MOSS chapter of the online documentation:

http://www.telerik.com/help/aspnet-ajax/introduction.html

This should help you address the issue you are currently facing.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Steve
Top achievements
Rank 1
answered on 17 Jul 2008, 01:19 PM

  • MS AJAX is installed because I have the System.Web.Extensions dll in the GAC
  • All sections have been added to web.config
  • Telerik.Web.UI (version: 2008.1.619.20 key: 121fae78165ba3d4) is in the GAC
  • I have 2 Telerik.Charting dlls in the GAC: 1) version: 1.7.2.0 key: d14f3dcc8e3e8763 and 2) version: 2.0.2.0 key: d14f3dcc8e3e8763
  • Both dlls have been added as safe controls to web.config, the versions are correct

I've added the scriptmanager in without error like below:

            RadScriptManager scriptManager = new RadScriptManager();  
            scriptManager.ID = "ScriptManager";  
            this.Controls.Add(scriptManager);  
 

When I try to use the RadTabStrip it generates the error in my original post.
0
Steve
Top achievements
Rank 1
answered on 17 Jul 2008, 01:36 PM
I'm using custom user controls in my web part and in one of my user controls i register the Telerik assembly like below:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<table cellpadding="10">  
    <tr> 
        <td align="center">  
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Default"></telerik:RadTabStrip> 
        </td> 
    </tr> 
</table> 
 

Is this the correct method or would i have to include the full version and key?
0
Steve
Top achievements
Rank 1
answered on 17 Jul 2008, 02:41 PM
I finally got it working by referencing the GAC dll when I registered it in my user control like this:

<%@ Register TagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2008.1.619.20, PublicKeyToken=121fae78165ba3d4, Culture=neutral" %> 
 

That then gave me another error regarding the Script Manager and PreRender. I fixed that error by backing up my Master Page and adding the ScriptManager manually as per this thread
Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Steve
Top achievements
Rank 1
Share this question
or