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

System.Web.Extensions

4 Answers 775 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
BradleyDean
Top achievements
Rank 1
BradleyDean asked on 23 Feb 2008, 07:39 PM
Trying to run the Prometheus demo, Visual Studio 2008.

I'm getting this error:

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

I've found System.Web.Extensions at:

C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\

If I the file (and System.Web.Extensions.Design.dll which I know I also need) to \bin\ then I get this error:

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

What am I doing wrong? Am I getting my files from the wrong spot?

I thought when using Visual Studio 2008 everything (Ajax.net) was included and you didn't need to download anything extra.

4 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 25 Feb 2008, 02:40 PM
Hello Bradley,

In order to use our "Prometheus" controls you need to have an AJAXEnabled WebSite. When you create such a site, the VS.NET adds a lot of additional information in its web.config file and you don't need put the .dll file in the bin directory - the reference is automatically added.
If you want to ajaxify an existing web site, I suggest you to open a new AJAXEnabled Web site and copy its web.config file's content and replace the existing site's web.config's content with the new one.
If you continue experiencing problems, don't hesitate to contact us.


Regards,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
BradleyDean
Top achievements
Rank 1
answered on 25 Feb 2008, 07:22 PM

> In order to use our "Prometheus"
> controls you need to have an
> AJAXEnabled WebSite.

Is this true of VS 2008 as well? Isn't the 'AJAXEnabled' project type limited to VS 2005? I don't have it available in either.

> If you want to ajaxify an existing web site,
> I suggest you to open a new AJAXEnabled
> Web site and copy its web.config file


Switching to VS 2005 for now to try and rule out one less problem. I'm able to get the demo running, but only at C:\Program Files\Telerik\RadControls 'Prometheus' for ASPNET Q3 2007\Live Demos

If I copy the contents of that directory to C:\Sandbox\Telerik and try to run from there (after modifying the pointers in the .sln of course) I get this:

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Same thing if I take my existing VS 2005 project and replace it's web.config with the web.config from the (working with Prometheus) demo.

My goal is to have my VS 2005 project running Prometheus under VS 2008 but at this point I'd gladly settle for VS 2005 with
Prometheus.

Thanks for the help so far.

0
Accepted
Tsvetie
Telerik team
answered on 26 Feb 2008, 07:34 PM
Hi BradleyDean,
I have already answered your support ticket with the same question. I will place the information here as well, so that it is available to all who might run into the same problem:

***
When you are using VS2008, you need not install ASP.NET AJAX, but in case you are using VS2005, you have to. In the case of VS2008, you have to use the Web.config.Net35 from the Live Demos folder - just rename it to Web.config and in the case of VS2005 - the Web.config.Net20.

As far as I understand you, your first problem was caused by the fact that you were using the wrong Web.config file.

However, as you mention you have switched to VS2005, you will have to install ASP.NET AJAX first and then use the correct Web.config file - please refer to our Troubleshooting section for additional information.

Generally, the System.Web.Extensions.dll should be in the GAC (C:\WINDOWS\assembly). As you have both VS2005 and VS2008, you should have two versions of this DLL file - please check the attached screenshot.

In case the problem persists, please send us your site and we will do our best to help you.
***

Regards,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
BradleyDean
Top achievements
Rank 1
answered on 27 Feb 2008, 07:42 AM
Yes, that was it. Thank you so much!

I had 'Atlas' installed, but not ASP.Net Ajax so the only System.Web.Extensions was 3.5. I'm still not sure why Live Demos worked fine from C:\Program Files\Telerik\ but I'm up and running now.

Thanks again.
Tags
General Discussions
Asked by
BradleyDean
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
BradleyDean
Top achievements
Rank 1
Tsvetie
Telerik team
Share this question
or