473,379 Members | 1,201 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,379 software developers and data experts.

asp.net: Change .NET version in Web.config

meo
Can I select version of .NET compiler to run my ASP.NET web application?

I thought I can select version of compiler by config in Web.config when I
need to change between 1.0 or 1.1

But in ASP.NET 2.0, Can I choose?

I see the way to change only in IIS but in Web.config, I cannot see at this
moment.

Anybody find the way to set, pls let me know.
Mar 22 '07 #1
11 3207
I don't think it can be done outside of IIS. Web.config is processed by
asp.net, not by IIS. But IIS needs to know what asp.net to invoke to process
the request. Therefore the decision on the asp.net version has to be made
before looking at web.config.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"meo" <j_******@hotmail.comwrote in message
news:ug*************@TK2MSFTNGP06.phx.gbl...
Can I select version of .NET compiler to run my ASP.NET web application?

I thought I can select version of compiler by config in Web.config when I
need to change between 1.0 or 1.1

But in ASP.NET 2.0, Can I choose?

I see the way to change only in IIS but in Web.config, I cannot see at
this moment.

Anybody find the way to set, pls let me know.


Mar 22 '07 #2
meo
But in ASP.NET 1.0 and ASP.NET 1.1 can do, I can select version of framework
by setting in Web.config.

It's so pity if this feature has been removed when using ASP.NET 2.0.

In some situtation, we may require to select version of framework by myself
in the config, not IIS. i.e. publish the website to web hosting rental, If I
can select version of framework, that's good and no need to tell admin to
change.

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OH**************@TK2MSFTNGP04.phx.gbl...
>I don't think it can be done outside of IIS. Web.config is processed by
asp.net, not by IIS. But IIS needs to know what asp.net to invoke to
process the request. Therefore the decision on the asp.net version has to
be made before looking at web.config.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"meo" <j_******@hotmail.comwrote in message
news:ug*************@TK2MSFTNGP06.phx.gbl...
>Can I select version of .NET compiler to run my ASP.NET web application?

I thought I can select version of compiler by config in Web.config when I
need to change between 1.0 or 1.1

But in ASP.NET 2.0, Can I choose?

I see the way to change only in IIS but in Web.config, I cannot see at
this moment.

Anybody find the way to set, pls let me know.



Mar 22 '07 #3
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OH**************@TK2MSFTNGP04.phx.gbl...
>I don't think it can be done outside of IIS. Web.config is processed by
asp.net, not by IIS. But IIS needs to know what asp.net to invoke to
process the request. Therefore the decision on the asp.net version has to
be made before looking at web.config.
Isn't this what <supportedRuntime version="......." /is for...?
Mar 22 '07 #4
I don't think so, because as Eliyahu pointed out, it's all controlled by an
IIS setting.
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Mark Rae" wrote:
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OH**************@TK2MSFTNGP04.phx.gbl...
I don't think it can be done outside of IIS. Web.config is processed by
asp.net, not by IIS. But IIS needs to know what asp.net to invoke to
process the request. Therefore the decision on the asp.net version has to
be made before looking at web.config.

Isn't this what <supportedRuntime version="......." /is for...?
Mar 22 '07 #5
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:5A**********************************@microsof t.com...
"Mark Rae" wrote:
>"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OH**************@TK2MSFTNGP04.phx.gbl...
>I don't think it can be done outside of IIS. Web.config is processed by
asp.net, not by IIS. But IIS needs to know what asp.net to invoke to
process the request. Therefore the decision on the asp.net version has
to
be made before looking at web.config.

Isn't this what <supportedRuntime version="......." /is for...?
>I don't think so, because as Eliyahu pointed out, it's all controlled by an
IIS setting.
OK, so does that configuration option apply only to WinForms apps...?
Mar 22 '07 #6
supportedRuntime version only works for console/WinForms apps.

See :
http://www.eggheadcafe.com/articles/20030412.asp

ASP.NET (web-based) applications use aspnet_regiis.exe
to set the version of the .Net Framework they target.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message news:u1**************@TK2MSFTNGP06.phx.gbl...
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in message
news:OH**************@TK2MSFTNGP04.phx.gbl...
>>I don't think it can be done outside of IIS. Web.config is processed by asp.net, not by IIS. But
IIS needs to know what asp.net to invoke to process the request. Therefore the decision on the
asp.net version has to be made before looking at web.config.

Isn't this what <supportedRuntime version="......." /is for...?

Mar 22 '07 #7
meo
Hope that in the next version, this feature can be done.

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eD**************@TK2MSFTNGP05.phx.gbl...
supportedRuntime version only works for console/WinForms apps.

See :
http://www.eggheadcafe.com/articles/20030412.asp

ASP.NET (web-based) applications use aspnet_regiis.exe
to set the version of the .Net Framework they target.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:u1**************@TK2MSFTNGP06.phx.gbl...
>"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OH**************@TK2MSFTNGP04.phx.gbl...
>>>I don't think it can be done outside of IIS. Web.config is processed by
asp.net, not by IIS. But IIS needs to know what asp.net to invoke to
process the request. Therefore the decision on the asp.net version has to
be made before looking at web.config.

Isn't this what <supportedRuntime version="......." /is for...?


Mar 22 '07 #8
re:
>it's all controlled by an IIS setting
....which is set with aspnet_regiis.exe

The <supportedRuntime version="......." /setting
is ignored by ASP.NET applications.

It's only valid in console and WinForms applications,
and must be placed in the application configuration file's <startupelement.

The application configuration file must have
the same name as the application, with a .config extension.

For an application named myExecutable.exe,
the application configuration file must be named myExecutable.exe.config.

http://msdn.microsoft.com/library/de...orkversion.asp


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in message
news:5A**********************************@microsof t.com...
>I don't think so, because as Eliyahu pointed out, it's all controlled by an
IIS setting.
"Mark Rae" wrote:
>Isn't this what <supportedRuntime version="......." /is for...?
>"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OH**************@TK2MSFTNGP04.phx.gbl...
>I don't think it can be done outside of IIS. Web.config is processed by
asp.net, not by IIS. But IIS needs to know what asp.net to invoke to
process the request. Therefore the decision on the asp.net version has to
be made before looking at web.config.

Mar 22 '07 #9
re:
does that configuration option apply only to WinForms apps...?
Exactly, as pointed out in my two just-sent posts
( which hadn't arrived yet when I wrote this reply...).

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in message
news:5A**********************************@microsof t.com...
>"Mark Rae" wrote:
>>"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OH**************@TK2MSFTNGP04.phx.gbl...

I don't think it can be done outside of IIS. Web.config is processed by
asp.net, not by IIS. But IIS needs to know what asp.net to invoke to
process the request. Therefore the decision on the asp.net version has to
be made before looking at web.config.

Isn't this what <supportedRuntime version="......." /is for...?
>>I don't think so, because as Eliyahu pointed out, it's all controlled by an
IIS setting.

OK, so does that configuration option apply only to WinForms apps...?

Mar 22 '07 #10
It can't be done. Not in the next version, not ever.

It's just the way things work.
See my other posts in this thread for the technical explanation.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"meo" <j_******@hotmail.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
Hope that in the next version, this feature can be done.

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eD**************@TK2MSFTNGP05.phx.gbl...
>supportedRuntime version only works for console/WinForms apps.

See :
http://www.eggheadcafe.com/articles/20030412.asp

ASP.NET (web-based) applications use aspnet_regiis.exe
to set the version of the .Net Framework they target.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:u1**************@TK2MSFTNGP06.phx.gbl...
>>"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in message
news:OH**************@TK2MSFTNGP04.phx.gbl...

I don't think it can be done outside of IIS. Web.config is processed by asp.net, not by IIS. But
IIS needs to know what asp.net to invoke to process the request. Therefore the decision on the
asp.net version has to be made before looking at web.config.

Isn't this what <supportedRuntime version="......." /is for...?



Mar 22 '07 #11
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:u2**************@TK2MSFTNGP03.phx.gbl...
re:
>does that configuration option apply only to WinForms apps...?

Exactly, as pointed out in my two just-sent posts
( which hadn't arrived yet when I wrote this reply...).
Thanks for the clarification - I had a feeling that would be the case...
Mar 22 '07 #12

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

Similar topics

2
by: Nayt Grochowski | last post by:
I have a common Class Library that I use on a QA server which has 10+ sites that all use this library... I got everything working with the current version installed in the GAC and since some aspx...
9
by: Invalidlastname | last post by:
Hi, We developed some assemblies which use EnterpriseServices queued components. In order to use EnterpriseServices, these assemblies need to be installed into GAC. I used the pre-build and...
20
by: Tim Reynolds | last post by:
Team, I am developing a web service. In testing in on my enw PC, I am expecting to see exceptions thrown appear on my browser. Instead I am getting an HTTP 500 Internal Server Error page and I am...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: shamirza | last post by:
· When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and...
0
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
29
by: =?Utf-8?B?SGVybWF3aWg=?= | last post by:
Hello, Please anybody help me. I have only a little experience with web development. I created simple project using ASP NET 2.0 (VS 2005) It works fine on local computer. When I tried to run...
13
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.