scale down from .net framework 3.5 to 2.0.

I have created a windows application in visual studio 2008. It is taking .net framework 3.5.
and while installing its setup, it is askin for .net framework 3.5.
As in that system .net framework 2.0 is there but it is asking for 3.5 only.Its not scaling down by itself.
Can any one please tell me how to scale down my application  to make it work for .net framework 2.0.

Thanks in advance
Bytech IndiaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rahul GadeSr. ArchitectCommented:

Goto WebSite->Start Option->Build and change the target build to .Net Framework 2.0

In this case, if you are using webproject hosted on IIS, then goto webdir and in the properties you need to set it to .Net Framework 2.0

If you don't see .Net Framework 2.0, and you are sure that .Net framework 2.0 is installed on your machine, goto C:\Windows\Microsoft.NET\Framework\v2.0.50727 and run "aspnet_regiis -i" command to register the .Net framewok with IIS.

-Rahul Gade
0
EyalCommented:
in project properties you can change the target framework
0
Bytech IndiaAuthor Commented:
For my windows application, I did the frame work change.. but I am using a web service, for that also shall I need to do any change.Where is this web directory?
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

EyalCommented:
it should have application pool with the relevant framework version
0
Bytech IndiaAuthor Commented:
Actually I have published this windows application and trying to run the setup in a system in framework 2.0 is available but my application is still requesting for framework 3.5 SP1 . What should I do for it?
Please do reply.
0
EyalCommented:
you must change all the projects to older framework
0
Bytech IndiaAuthor Commented:
Can I do the framework change of web service by my windows application only?
0
Rahul GadeSr. ArchitectCommented:
If you want to modify the framework requirement of a specific project, you just create another solution and add the other project to other solution. This way you keep both projects (with framewok version 2.0 and 3.5 separate)

2.0 is subset of 3.5, so all app targeted for 2.0 will work on 3.5, while if on any system only 2.0 is installed you will be able to work with app built with the target for 2.0.

-Rahul Gade
0
Bytech IndiaAuthor Commented:
Actually sir I have changed the framework requirement by changing the target build as per you said but while running its setup.exe file it is still demanding 3.5 framework. Why is this happening?
0
jonnidipCommented:
You may need to change the WebService Target Framework.
Simply right-click your ws project and choose "Property Pages" (it should be the last context entry).
Then select "Build" on your left and change the framework:
 PropertyPages
Regards.
0
Rahul GadeSr. ArchitectCommented:

You might have selected framework 3.5 as pre-requisit while developing your installer project. Could you please verify.
In this, there is a option to either bundle the selected version of framework with installer or download it from microsoft website. If you have selected wrong version here, the installer will keep on expecting to install the said version.

-Rahul
0
Bytech IndiaAuthor Commented:
Actually after changing the target build, I have installed the .net framework 2.0 with my application but while installing my application,it download both(my application as well as .net framework 2.0) but later demand for .net framework 3.5.
0
jonnidipCommented:
Please take a look to your references.
It seems very strange to me, but it can be possible that your app still references a 3.5 dll while in 2.0 target.
At worst you could try to do a new solution, a new project and add your code files. This will take you time (you will need to add every single reference), but you will be able to find your problem cause.

Regards.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bytech IndiaAuthor Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.