473,804 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4292
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.co m> wrote in message
news:Oj******** ******@TK2MSFTN GP15.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(somethin g
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******** ********@TK2MSF TNGP10.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.co m> wrote in message
news:Oj******** ******@TK2MSFTN GP15.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.c om.hk> wrote in message
news:O2******** ******@TK2MSFTN GP10.phx.gbl...
But I remember that under project properties, there is an option(somethin g
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******** ********@TK2MSF TNGP10.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.co m> wrote in message
news:Oj******** ******@TK2MSFTN GP15.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.c om.hk> wrote in message
news:O2******** ******@TK2MSFTN GP10.phx.gbl...
But I remember that under project properties, there is an option(somethin g
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******** ********@TK2MSF TNGP10.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.co m> wrote in message
news:Oj******** ******@TK2MSFTN GP15.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*******@micr osoft.com> wrote in message
news:u7******** *****@TK2MSFTNG P12.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.c om.hk> wrote in message
news:O2******** ******@TK2MSFTN GP10.phx.gbl...
But I remember that under project properties, there is an
option(somethin g
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******** ********@TK2MSF TNGP10.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.co m> wrote in message
news:Oj******** ******@TK2MSFTN GP15.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
3599
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 installing the VS.NET 2005 beta the web browser embedded control is now running in the .NET 2.0 beta runtime environment, and crashing. Is it possible to have different IE hosted controls running side by side in different versions of the .NET...
1
1725
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
1675
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
3218
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 questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network share that happens to be a Network Appliance NAS.
11
2231
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 username/password are hardcoded into the code-behind C# code. How can I write my web.config to make this happen? Thanks.
5
1690
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? Or do I need to be using the latest version of Visual Studio to do so? Thanks,
8
3743
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 be relevant. On my development machine I build the exe and dll and run the exe which has a reference to the dll. At some point it uses featured in the dll. This works fine. Then I copy my exe and dll to the target system and when the featured...
2
7621
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 and changed the Build / Target Framework to 2.0 but I notice that References (also in web.config) still have 3.5 references such as LINQ. Can you change a project target framework half way through or can it only be
3
6364
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 C:\DOCUME~1\Windows\CONFIG~1\Temp\VSD31.tmp\DotNetFX35\dotNetFx35setup.exe WinVerifyTrust returned 0 File trusted
0
9715
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10354
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7642
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5535
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.