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

Developing on 2.0 Framework in VS 2010

2 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chrystal Tyler
Top achievements
Rank 1
Chrystal Tyler asked on 21 Mar 2012, 09:02 PM
Hi,

Currently we are using the Q1 2010 version of Telerik.Web.UI for the v2.0 Framework.  We just moved from VS2008 to VS2010 and now our Unit Tests are failing.  Our projects are running on the 3.0 Framework, but our Unit Tests projects are on the 4.0 Framework.

We are now getting the following error in each unit test project when running the unit tests:

 error CS0012: The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. 

I am working to see if I just have some bad references.  But anytime I add a new System.Web.Extensions reference  for v2.0 it adds the v4.0.  

Therefore, my question is.  Due to the fact that unit tests in VS2010 must be on either 3.5 or 4.0, does that mean I have to upgrade to a 3.5 version of Telerik for my unit tests to work?

Thanks,

Chrystal

2 Answers, 1 is accepted

Sort by
0
Johny
Top achievements
Rank 1
answered on 26 Mar 2012, 08:46 AM
Hi

I am using Telerik 20 controls on a 35 web application project and all is fine. maybe you have to install the v20 extensions on the machine first. If it is already installed (the .dll will be in the GAC) you can try explicitly add the correct v20 reference to it in the web.config file of the project (use the .dll full name).

Thanks,
Johny

0
Chrystal Tyler
Top achievements
Rank 1
answered on 26 Mar 2012, 04:14 PM
Hi Johny,

Thank you for the suggestions, I will try them today. I do have the v20 extensions installed, but I will try the web.config modification.  For right now I was just able to get the unit tests to run using the 4.0 version of system.web.extensions.  Hopefully, that will not cause any other issues, but so far it looks OK.

Thanks,

Chrystal
Tags
Grid
Asked by
Chrystal Tyler
Top achievements
Rank 1
Answers by
Johny
Top achievements
Rank 1
Chrystal Tyler
Top achievements
Rank 1
Share this question
or