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

Error:missing an assembly reference

4 Answers 366 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 05 Nov 2009, 11:47 AM
Hi
       I upgraded .net 3.5 from .net 1.1 version, after that i installed Telerik control 2009.1.527.20 for my new project.Then  I added 

<%

@ Register Assembly="Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"  

 

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 to my new form to work out telerik control. But i am facing the follwing issues
1) I cannot drag and drop the telerik control from tool box
2) suppose i  manually add control by code by griving tagprefix name like                                                                        <telerik:RadGrid ID="Grid1" runat="server"></telerik:RadGrid>
After i try to run the project i am getting the following error eventually. I dont know what is the reason

"The type or namespace name 'Telerik' could not be found in the global namespace (are you missing an assembly reference?) "

I tried 'gacutil' command tool to register the dll and also added the following block of code in web,config 

 

<

assemblies>

 

<

 

add assembly="Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>

 

 

 

But no use...the error still comes...What step i need to be taken to avoid the foloowing issues.

-Thanks


 

 

 




 

 

 

 

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 05 Nov 2009, 01:11 PM
Hi John,

Can you please check whether restarting your Visual Studio or removing RadControls from the toolbox and adding them manually as explained here makes a difference?

Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John John
Top achievements
Rank 1
answered on 05 Nov 2009, 01:45 PM
Hi Pavlina,
                     I have no problem in adding RadControls to toolbox section eventhough the toolbox configured after installing the Telerik new version exe.

But my problem is i could not add it into my form, and if i add it by code it shows error when i try to build the application as menioned above. The error is mainly coming from the designer page of respective form(FileName Format: frmTest.aspx.designer.cs ).
I assume the error is coming from due to unable to load the namesace or assembly to the project.

I cannot even import the Telerik.Web.UI namespace at the header section of the page.The namsace doesnt list in the namespace intellisenses list.

May i ask few questions,

I am upgrading the project from .net 1.1 version to .net 3.5 version, and installed or browsed the Telerik control Dll to the tool box of my project.
My question is whether Telerik controls supports to the upgration project betwen 1.1 to 3.5.
Because my usual .net 3.5 version supports all of the above scenarions.It is working perfectly in all cases, i could even import namespace too.
But the problem mainly come after upgrading the project done from 1.1 to 3.5

Please help me to find the solution at the earliest.

--Thanks

0
Pavlina
Telerik team
answered on 10 Nov 2009, 03:32 PM
Hi John,

It is definitely important to ensure your project is using the correct assemblies. Please note that If you are using .NET 3.5 you should use the Telerik.Web.UI.dll from the Bin35 folder and not the one from the Bin folder of the installation zip archive.

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John John
Top achievements
Rank 1
answered on 11 Nov 2009, 12:31 PM
Hi Pavlina,

     Thanks for your help. I solved the prblem in the way of adding reference of Telerik Dll's to my project. Even though my project is upgraded from .Net 1.1 to .Net 3.5, it could not managed with the inbuilt fetures of .Net 3.5. So i came to know the problem is mainly due to the lack of  Dll mapping. Hence i added the dll's manually to the project.


-Thanks
Tags
Grid
Asked by
John John
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
John John
Top achievements
Rank 1
Share this question
or