Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > asp.net: Change .NET version in Web.config

Reply
Thread Tools

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

 
 
meo
Guest
Posts: n/a
 
      03-22-2007
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.


 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      03-22-2007
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" <> wrote in message
news:...
> 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.
>
>



 
Reply With Quote
 
 
 
 
meo
Guest
Posts: n/a
 
      03-22-2007
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" <> wrote in
message news:...
>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" <> wrote in message
> news:...
>> 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.
>>
>>

>
>



 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      03-22-2007
"Eliyahu Goldin" <> wrote in
message news:...

>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...?


 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      03-22-2007
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" <> wrote in
> message news:...
>
> >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...?
>
>
>

 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      03-22-2007
"Peter Bromberg [C# MVP]" <> wrote in
message news:5AEFA2AA-B6FA-4800-881F-...

> "Mark Rae" wrote:
>
>> "Eliyahu Goldin" <> wrote in
>> message news:...
>>
>> >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...?


 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      03-22-2007
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" <> wrote in message news:...
> "Eliyahu Goldin" <> wrote in message
> news:...
>
>>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...?
>



 
Reply With Quote
 
meo
Guest
Posts: n/a
 
      03-22-2007
Hope that in the next version, this feature can be done.

"Juan T. Llibre" <> wrote in message
news:...
> 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" <> wrote in message
> news:...
>> "Eliyahu Goldin" <> wrote in
>> message news:...
>>
>>>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...?
>>

>
>



 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      03-22-2007
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 <startup> element.

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]" <> wrote in message
news:5AEFA2AA-B6FA-4800-881F-...
>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" <> wrote in
>> message news:...
>>
>> >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.



 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      03-22-2007
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" <> wrote in message news:%...
> "Peter Bromberg [C# MVP]" <> wrote in message
> news:5AEFA2AA-B6FA-4800-881F-...
>
>> "Mark Rae" wrote:
>>
>>> "Eliyahu Goldin" <> wrote in
>>> message news:...
>>>
>>> >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...?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] ASP .Net 5 02-09-2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM
A Paradise DNS address change? What change? There was no change. Tony Neville NZ Computing 7 09-22-2006 01:02 PM
Can I change trial version to full version ? Jools Windows 64bit 1 02-04-2006 02:45 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57