asp.net:在Web.config中更改.NET版本 [英] asp.net: Change .NET version in Web.config

查看:140
本文介绍了asp.net:在Web.config中更改.NET版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以选择.NET编译器的版本来运行我的ASP.NET Web应用程序吗?


我认为我可以在Web.config中通过config选择编译器的版本/>
需要在1.0或1.1之间变化


但是在ASP.NET 2.0中,我可以选择吗?


我明白了只在IIS中更改的方式,但是在Web.config中,我看不到这个

的时刻。


任何人都找到了设置方式,请让我知道。

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.

推荐答案

我不认为它可以在IIS之外完成。 Web.config由

asp.net处理,而不是由IIS处理。但IIS需要知道要调用哪个asp.net来处理

请求。因此,在查看web.config之前,必须先决定使用asp.net版本




-

Eliyahu Goldin,

软件开发人员&顾问

Microsoft MVP [ASP.NET]
http: //msmvps.com/blogs/egoldin
http://usableasp.net

" meo" < j _ ****** @ hotmail.comwrote in message

news:ug ************* @ TK2MSFTNGP06.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...

我可以选择.NET编译器版本来运行我的ASP.NET Web应用程序吗?


我以为我可以选择版本的我在Web.config中编译配置时我需要在1.0或1.1之间进行更改


但是在ASP.NET 2.0中,我可以选择吗?


我看到只在IIS中更改的方法,但是在Web.config中,我现在看不到




任何人都找到了设置的方法,请告诉我。

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.



但是在ASP.NET 1.0和ASP.NET中1.1可以做,我可以通过在Web.config中设置来选择框架版本




如果在删除此功能时很遗憾使用ASP.NET 2.0。


在某些情况下,我们可能需要自己选择框架版本

在配置中,而不是IIS。即将网站发布到网站托管租赁,如果我可以选择框架的版本,那就好了,不需要告诉管理员

更改。


" Eliyahu Goldin" < RE ************************** @ mMvVpPsS.org写在

消息新闻:OH **** ********** @ TK2MSFTNGP04.phx.gbl ...
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...

>我不认为可以在IIS之外完成。 Web.config由
asp.net处理,而不是由IIS处理。但是IIS需要知道要调用的asp.net来处理请求。因此,在查看web.config之前必须先做出asp.net版本的决定。


-

Eliyahu Goldin,

软件开发人员&顾问

Microsoft MVP [ASP.NET]
http: //msmvps.com/blogs/egoldin
http://usableasp.net


" meo" < j _ ****** @ hotmail.comwrote in message

news:ug ************* @ TK2MSFTNGP06.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...

>我可以选择.NET编译器版本来运行我的ASP.NET Web应用程序吗?

我想我可以选择编译器的版本当我需要在1.0或1.1之间进行更改时,在Web.config中配置

但是在ASP.NET 2.0中,我可以选择吗?

我看到的方法是只在IIS中更改,但在Web.config中,我现在无法看到


任何人都找到了设置的方式,请告诉我。

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




" Eliyahu Goldin" < RE ************************** @ mMvVpPsS.org写在

消息新闻:OH **** ********** @ TK2MSFTNGP04.phx.gbl ...
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OH**************@TK2MSFTNGP04.phx.gbl...

>我不认为可以在IIS之外完成。 Web.config由
asp.net处理,而不是由IIS处理。但是IIS需要知道要调用的asp.net来处理请求。因此,在查看web.config之前,必须先做出asp.net版本的决定。
>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.



这不是什么< supportedRuntime version =" ......." /适用于......?

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


这篇关于asp.net:在Web.config中更改.NET版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆