Solved

Installing a 3.5 Framework app on a 2.0 Framework

Posted on 2008-10-13
14
456 Views
Last Modified: 2013-11-08
My client has XP and Visual Studio 2008 / 3.5 Framework.  The server has Windows 2003 with 2.0 Framework.  

I wrote a WinForms and WebSerfvices application with VS 2008.  Is it possible to install on the server with the setting mentioned above?

I tried to change the Framework in VS 2008 from 3.5 to 2.0.  I even created a new app and specified 2.0.  but when I create the install disks and run on the server it keeps prompting to install the 3.5 framework.

Help...
0
Comment
Question by:CipherIS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
  • 3
14 Comments
 
LVL 2

Expert Comment

by:Carsontl
ID: 22705983
I remember when i did something like this that you will need to load the updated .net 3.5 dll's on the server, but this is very feasible.
0
 
LVL 2

Expert Comment

by:JasonChandler
ID: 22706187
Just Download the Latest .NEt 3.5 sp1 Framework run time from
http://www.microsoft.com/downloads/details.aspx?FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7&displaylang=en
It will still run side by side no problems. 1.1 - 2.0 - 3.5 can all run on the same server without affecting each other or the apps that use them.
0
 
LVL 1

Author Comment

by:CipherIS
ID: 22706244
I understand that I can download and install the .NET 3.5 framework.
I just need to know if I can run the app without downloading and installing the 3.5 framework.  If this is possible how is this accomplished.  (If I install 3.5 it will require a reboot and it is difficult to reboot the server because of scheduling issues).
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
LVL 2

Expert Comment

by:Carsontl
ID: 22706366
If you load the dlls that the server requires for your site into the bin folder of your VS page, that will accomplish the same thing.
0
 
LVL 1

Author Comment

by:CipherIS
ID: 22710543
Does anyone know what DLL's I need to load?
0
 
LVL 2

Expert Comment

by:Carsontl
ID: 22710576
When i was making my page, i had to load dll's into the bin folder, i would just build the page, and when it failed to load, i'd read the error (it will say which .dll it's looking for) and copy the dll to the bin folder.  I rinsed and repeated and after 4 .dll's it popped up.

A bit more trial and error than i would have liked, but i got it working.

It all depends on what you've used in your site, it will pull different drivers up to do different things.
0
 
LVL 2

Expert Comment

by:Carsontl
ID: 22710588
Here's the list i had to put in the bin folder:

System.Core.dll
System.Data.DataSetExtensions.dll
System.Web.Extensions.dll
System.Xml.Linq.dll
0
 
LVL 2

Accepted Solution

by:
JasonChandler earned 500 total points
ID: 22710620
Its not always just a matter of Loading DLLs, some of them need to be registered I think. However if you look in the property pages of your App, you will see what dlls need loading on the references page. This will enable you to see what files you project is using locally. You can then use that information to copy from the CAG Usually "C:\Windows\assembly" or "C:\WinNt\assembly" to your bin folder and try that. Either way I would recommend a 3.5 install of .net framework. a restart should not need more than 5 minutes on a server, and if you can take the down time you will save yourself a lot of pain.
0
 
LVL 1

Author Comment

by:CipherIS
ID: 22710629
I added the dll's you recommended and it is still trying to install the .NET 3.5 framework.  Any other DLL's?
0
 
LVL 1

Author Comment

by:CipherIS
ID: 22710687
I clicked on add Reference, sorted by version and selected all that were 3.5.  I created my setup disks, put it on the server and tried to install.  Still receiving the install 3.5 message.
I attached 2 files.  1 is a pic of the DLL's I selected.  The other is the message I receive when I am trying to install the app.

3.5-DLLs.JPG
Installation-Result.JPG
0
 
LVL 2

Expert Comment

by:Carsontl
ID: 22710700
At this point, I would just install 3.5 on the server.
0
 
LVL 1

Author Comment

by:CipherIS
ID: 22711039
Unfortunately I can not install 3.5.
0
 
LVL 2

Assisted Solution

by:JasonChandler
JasonChandler earned 500 total points
ID: 22711255
Is setup program built using the 2.0 or 3.5 Framework. Also remove any 3.5 Specific DLLS from your project before you create the setup.
0
 
LVL 1

Author Comment

by:CipherIS
ID: 22720901
Ok, between some of the suggestions here I was able to convert the 3.5 Framework app to a 2.0.  I have created a document which should help anyone else going through this in the future.
Convert-from-3.5-to-2.0.pdf
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Iteration Help (Asp.net VB) 5 35
Formula for calculating ROI on training 6 66
How can I do Unit Testing with Session ? 1 23
Upgrade code from VS 2010 to VS 2015 7 32
Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question