473,385 Members | 1,325 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Specify target framework in Web.Config

Is it possible to specify the target framework version in the Web.Config
file? I'm planning on installing the Whidbey Beta2 framework soon and want
to explicitly make sure I'm pointing to the 2003 framework for some existing
web applications.

Thanks,
Mike
Nov 19 '05 #1
5 4276
By the time web.config is loaded, the .NET Framework
version has already been specified.

To do what you want to do, just use Denis Bauer's
free ASP.NET Version Switcher to configure the
applications you want targeted under version 1.1.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Mike" <no**@nospam.com> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
Is it possible to specify the target framework version in the Web.Config
file? I'm planning on installing the Whidbey Beta2 framework soon and
want to explicitly make sure I'm pointing to the 2003 framework for some
existing web applications.

Thanks,
Mike

Nov 19 '05 #2
But I remember that under project properties, there is an option(something
like supported runtime) specifying the version of .NET framwork you plan to
run on, isn't it?

"Juan T. Llibre" <no***********@nowhere.com> ¦b¶l¥ó
news:Oi****************@TK2MSFTNGP10.phx.gbl ¤¤¼¶¼g...
By the time web.config is loaded, the .NET Framework
version has already been specified.

To do what you want to do, just use Denis Bauer's
free ASP.NET Version Switcher to configure the
applications you want targeted under version 1.1.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Mike" <no**@nospam.com> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
Is it possible to specify the target framework version in the Web.Config
file? I'm planning on installing the Whidbey Beta2 framework soon and
want to explicitly make sure I'm pointing to the 2003 framework for some
existing web applications.

Thanks,
Mike


Nov 19 '05 #3
I think that works only for desktop applications. I could be wrong. But
the ASPNET version switcher will force it to work on a specified version of
the .net framework
"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...
But I remember that under project properties, there is an option(something
like supported runtime) specifying the version of .NET framwork you plan
to
run on, isn't it?

"Juan T. Llibre" <no***********@nowhere.com> ¦b¶l¥ó
news:Oi****************@TK2MSFTNGP10.phx.gbl ¤¤¼¶¼g...
By the time web.config is loaded, the .NET Framework
version has already been specified.

To do what you want to do, just use Denis Bauer's
free ASP.NET Version Switcher to configure the
applications you want targeted under version 1.1.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Mike" <no**@nospam.com> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
> Is it possible to specify the target framework version in the
> Web.Config
> file? I'm planning on installing the Whidbey Beta2 framework soon and
> want to explicitly make sure I'm pointing to the 2003 framework for
> some
> existing web applications.
>
> Thanks,
> Mike



Nov 19 '05 #4
That's a compilation switch.

It tells VS.NET which compiler to use
and to load the appropiate classes.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...
But I remember that under project properties, there is an option(something
like supported runtime) specifying the version of .NET framwork you plan
to
run on, isn't it?

"Juan T. Llibre" <no***********@nowhere.com> ¦b¶l¥ó
news:Oi****************@TK2MSFTNGP10.phx.gbl ¤¤¼¶¼g...
By the time web.config is loaded, the .NET Framework
version has already been specified.

To do what you want to do, just use Denis Bauer's
free ASP.NET Version Switcher to configure the
applications you want targeted under version 1.1.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Mike" <no**@nospam.com> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
> Is it possible to specify the target framework version in the
> Web.Config
> file? I'm planning on installing the Whidbey Beta2 framework soon and
> want to explicitly make sure I'm pointing to the 2003 framework for
> some
> existing web applications.
>
> Thanks,
> Mike



Nov 19 '05 #5
It works for both desktop and web apps.

The thing is that it is a "compiler" switch.

It tells VS.NET which compiler version to use.

Which *runtime* version is used is a different thing,
which in 1.1 and 2.0 web apps can be changed via
the ASP.NET tab in the MMC ( which doesn't work
since Beta 1 ) or using Denis Bauer's ASP.NET
version switcher, like you correctly indicate.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Tampa.NET Koder" <an*******@microsoft.com> wrote in message
news:u7*************@TK2MSFTNGP12.phx.gbl...
I think that works only for desktop applications. I could be wrong. But
the ASPNET version switcher will force it to work on a specified version of
the .net framework
"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...
But I remember that under project properties, there is an
option(something
like supported runtime) specifying the version of .NET framwork you plan
to
run on, isn't it?

"Juan T. Llibre" <no***********@nowhere.com> ¦b¶l¥ó
news:Oi****************@TK2MSFTNGP10.phx.gbl ¤¤¼¶¼g...
By the time web.config is loaded, the .NET Framework
version has already been specified.

To do what you want to do, just use Denis Bauer's
free ASP.NET Version Switcher to configure the
applications you want targeted under version 1.1.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Mike" <no**@nospam.com> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
> Is it possible to specify the target framework version in the
> Web.Config
> file? I'm planning on installing the Whidbey Beta2 framework soon and
> want to explicitly make sure I'm pointing to the 2003 framework for
> some
> existing web applications.
>
> Thanks,
> Mike



Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mathew | last post by:
Hi How do you specfiy the version of the .net runtime libraries loaded for a ..net controls hosted in Internet Explorer 6? I have a control that's designed to work with .NET 1.1, but after...
1
by: Chad Silva | last post by:
Can I target the 1.0 framework from VC++ 2003? (been looking through help and on the newsgroups but can't find out how to do it in VC) Thanks Chad
3
by: LordHog | last post by:
Hello, I am wondering if there is a way to target the .NET v1.1 framework under Visual C# Express Beta 2? The application is a console application so no Winforms is needed. Thanks Mark
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
11
by: xenophon | last post by:
I have a web site with forms authentication and a single logon page. I have 4 subdirectories, each that should be protected by a different username/password combination. For testing purposes, the...
5
by: jroozee | last post by:
I am developing in VS '03. I have all of the current framework versions installed on my PC, 1.1, 2.0, and 3.0. How can I make sure the code I am developing in is using the 3.0 framework version?...
8
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
2
by: John | last post by:
Hi there, I've started off a new web site project in VS 2008 and inadvertently left the target framework as 3.5, when I really meant to base it 2.0. I've looked at the project properties page...
3
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
Hi all! I am having problems on installing .NET Framework 3.5 on some machines. In one machine the error is: '.NET Framework 3.5' RunCheck result: Install Needed Verifying file integrity of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.