New ASP.NET chart control not working on deployed website - asp.net

I have deployed my website to an .net 2.0.50727 hosting, and the page with the chart control is not working.
I think it may be because this .net version doesn't support the chart control or I have forgotten to upload some required assemblies.
Anybody knows wich assemblies are the required? Does the chart control work with .net 2? I have uploaded System.Web.DataVisualization.dll and System.Drawing.dll. I have on my machine .net 3.5 and the chart works without problems.
I'm using ASP.NET MVC RC without any problems, too. I guess it requires asp.net 3.5, and because that I don't understand why the chart control doesn't work.
Please, somebody can give me any clue? Thanks in advance.

Your hosting server needs to have .Net Framework 3.5 SP1 in order for the Chart Controls to work and you need to set the System.Web.DataVisualization.dll reference "Copy local" property to true.

Related

How to create a .Net version 2.0 website using Visual Studio 2012?

I have created a website using Visual Studio 2012. It is working just fine. The problem is I have to deploy it on a server that has .Net Framework 2.0 only. So I created another website using Visual Studio 2012 and set its version to 2.0. After copying the code of just a single page I tried to run it. But I am getting the errors "Unknown server tag asp:ScriptManager" and "Unknown server tag asp:UpdatePanel". I need them both as I have to use PageMethods in my page. How can I create a .Net Framework 2.0 website with ScriptManager and UpdatePanel without any error? Thanks in advance.
You didn't have to recreate your project. Go to the project settings, application, then change the "Target Framework".
To clearly answer your question, the answer is : you can't.
As Jamie Keeling suggested, Script Manager and Update Panel came with .Net Framework version 3.5.
You will have to find other components or some kind of workaround.
You might have to install ASP.NET 2.0 AJAX Extensions 1.0 if you are planning to use scriptmanager and update panel in .NET 2.0. Prior to .NET 3.5, Ajax was available as a separate library.

Experiences deploying ASP.NET 3.5 web site with charting control

Has anyone deployed a web site using the 3.5 framework and the Microsoft charting control?
I know this is built into .NET 4.0, but our client isn't ready to move up to the .NET 4.0 yet.
Specifically, do you need to run the chart install on the server to deploy the control, or is there a way to do this in the deployment (such as dropping the System.Web.DataVisualization [sp?] dll into the BIN directory and updating Web.config?
Thanks,
Tim
EDIT:
I want to add we're using VS 2010 as our IDE...has anyone used the chart control while targeting the 3.5 .NET framework?
I have not used the controls myself so I don't now what major differences there are between versions, if any, but you can try using the .NET 3.5 version of the charting controls.
Edit: You should be able to add the .NET 3.5 control to the VS 2010 Toolbox manually, if it isn't added automatically using the instructions on MSDN.

Asp to Aspx .net 4.0

can anyone tell me how to convert ASP project to asp.net web application.
I tried this url but was not able to convert it.
http://www.asp101.com/articles/paolo/asp2aspnet/default.asp
I am trying to convert asp application to .net 4.0 web application.
thanks in advance.
There is a tool provided by Microsoft to do such thing.
Anywyay, you might not be fully .Net 4.0 compatible at the end, you certainly will have to correct some issues manually.
http://www.asp.net/downloads/archived-v11/migration-assistants/asp-to-aspnet
unfortunately, in my experience, there is no easy way to migrate from 1 to the other, its a case of buying visual studio and creating a asp.net 4.0 solution in this context. then creating the functionality in the project
im sure this is NOT what you wanted to hear :(

ASP.NET IIS and framework

I have one ASP.NET web application projrct, created in Visual Studio 2008, .NET 3.5 Framework, IIS 6.1 and I'm using Ajax updatepanel, cache options for caching the datatable in a gridview. This project is working good in local, but when I deployed in a cert environment (.NET Framework 2.0 and IIS 6.0) I faced that caching issue.
So that, now I'm trying to change the project from 3.5 to 2.0 framework. But I'm facing an Ajax update panel error.
How can this problem be fixed?
You mean the target framework? You can right click the application name and then click on Property Pages, in that go to Build and then choose the target framework to 2.0.
Also, have a look at this:
http://msdn2.microsoft.com/en-us/library/bb398791(VS.90).aspx
reference : http://forums.asp.net/t/1194067.aspx
It will not be very straight forward though. As there may be some language features that are only available in 3.5.
The ASP.NEt AJAX framework for ASP.NET 2.0 has a separate DLL you have to install manually from this link: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en
You'll have to use an older version of the AJAX control toolkit too; the latest is only supported on 3.5 and 4.0.
HTH.

Getting started with AJAX with ASP.NET 3.5, what do I need on the server

I have the .net framework 3.5 on my development machine and also am using the AJAX toolkit in my code. In order to publish this code to a server for my users, do I need anything on the server in order for my AJAX code to operate correctly?
You need only the .NET framework 3.5.
If you publish your project, the AJAX Toolkit used will be also copied over. If you only reference the AJAX Toolkit via file, not via project, then be sure you set the dll to "Copy always" in the properties window.
.NET 3.5 needs to be installed on the server. The Ajax Control Toolkit assembly does not need to be actually loaded on the server, but needs to be at least in the Bin Folder, with references in the web.config.
Of course, you will need to install the .NET Framework on your server. If you are using the AJAX Toolkit you will want to copy over the AjaxControlToolkit.dll to the bin folder of your web application on your server.
Also want to make sure that you set your web application to use .NET Framework 2.0. In IIS you go to the properties of your web site, then the ASP.NET tab and make sure ASP.NET version is set to 2.0.

Resources