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

UserControl/SharePoint - ould not load file or assembly 'Telerik.Web.UI'

3 Answers 310 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
kp
Top achievements
Rank 1
kp asked on 25 Nov 2008, 02:17 PM
Hi,

I'm trying to create a UserControl that would retrieve data from a database and display the results in SharePoint.
So far I have managed to create a UserObject using VS2008 (Net3.5) with a Rad GRID (Q3 2008). Testing the Usercontrol in VS works fine, data gets retrieved and is displayed in the rad grid.

Problems start when I move the UserControl to SharePoint  and include it to a page using the "SmartPart"  WebPart. The UserControl is sort of displayed in the page but it contains the following error message

"Error: unable to load ~\/UserControls\WebUserControl2.ascx
Details: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified."

Without the Rad control the UserObject is displayed correctly.

I have followed the instructions how to integrate Telerik to SharePoint, in the GAC I have the Telerik.Web.UI (version 2008.3.1105.35), in the UserControl the registration is as follows <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>.

What might be wrong here and what else should I check or do?

Tia,
kp

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 28 Nov 2008, 10:06 AM
Hello kp,

Please use the fully qualified name of the assembly in its reference as follows:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2008.3.1105.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %> 

Sincerely yours,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
kp
Top achievements
Rank 1
answered on 28 Nov 2008, 10:20 PM
Hi,

thanks, that helped me to get it a little bit further before the next error appeared.

The first error was that the control requires the "ScriptManager". Adding that then resulted wirh an other error
"Script controls may not be registered before PreRender".

My object is a simple one and I haven't customised it in any way so knowingly I haven't done anything relating to the "PreRender".

What could and should I do to fix this one?

kp
0
Dimitar Milushev
Telerik team
answered on 01 Dec 2008, 03:41 PM
Hello,

The latest version of the SmartPart with several sample UserControls and a good installation guide that explains what you need to do get AJAX UserControls running on a SharePoint installation. Can you please test the AJAXHelloSmartPart.ascx sample UserControl to make sure that your SharePoint server is setup properly as explained in the installation guide?

Thank you for your understanding.

Sincerely yours,
Dimitar Milushev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
kp
Top achievements
Rank 1
Answers by
Simon
Telerik team
kp
Top achievements
Rank 1
Dimitar Milushev
Telerik team
Share this question
or