By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 2,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

Specify target framework in Web.Config

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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隳l
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

P: n/a
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> 在郵件
news:Oi****************@TK2MSFTNGP10.phx.gbl 中撰寫...
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隳l
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

P: n/a
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> 在郵件
news:Oi****************@TK2MSFTNGP10.phx.gbl 中撰寫...
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隳l
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

P: n/a
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隳l
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> 在郵件
news:Oi****************@TK2MSFTNGP10.phx.gbl 中撰寫...
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隳l
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

P: n/a
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隳l
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> 在郵件
news:Oi****************@TK2MSFTNGP10.phx.gbl 中撰寫...
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隳l
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 discussion thread is closed

Replies have been disabled for this discussion.