简体   繁体   English

我可以托管带有.NET 4.0应用程序池的.NET 2.0运行Web应用程序吗

[英]Can I Host .NET 2.0 Running Web Application with .NET 4.0 App Pool

Can I Host .NET 2.0 Running web Application with .NET 4.0 App Pool..?? 我可以托管带有.NET 4.0 App Pool的.NET 2.0运行Web应用程序吗?

I have added the following node in the Web.config of my Web Application : 我在Web应用程序的Web.config中添加了以下节点:

<startup>
    <supportedRuntime version="v2.0.50727"/>
</startup>

This means that my application runs using .NET 2.0 CLR. 这意味着我的应用程序使用.NET 2.0 CLR运行。

I added it to an Application in ISS with App Pool set to .NET 4.0 and did a quick smoke test. 我将其添加到ISS中的“应用程序池”设置为.NET 4.0的应用程序中,并进行了快速冒烟测试。 Its working fine for normal cases. 对于正常情况,它的工作正常。

Refer the image below. 请参考下图。 The name of the application is LMSInterface. 该应用程序的名称为LMSInterface。

在此处输入图片说明

Will it run seamlessly..?? 它会无缝运行吗? Or are there any hidden complexities / issues in doing so..?? 还是这样做有任何隐藏的复杂性/问题。

It could be done: 可以做到:

Project framework 2.0 can run in IIS with Application pool 4.0

Here's my Test: 这是我的测试:

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用.net 4.0编写的程序,但我需要此应用程序在运行.net 2.0的计算机上运行 - Program written using .net 4.0 but I need this application to run on computers running .net 2.0 在.Net 4.0程序中运行.Net 2.0可执行文件 - Running .Net 2.0 executable in .Net 4.0 program 我可以在.NET 2.0上使用.NET 4.0 API调用吗? - Can I use .NET 4.0 API calls on .NET 2.0? 在 .net 4.0 应用程序中引用 .net 2.0 程序集 - Referencing .net 2.0 assemblies in .net 4.0 application 创建使用.NET 4.0的应用程序池 - Create an application pool that uses .NET 4.0 在仅具有4.0框架的机器上参考2.0库运行.NET 4.0应用程序 - Running .NET 4.0 app with reference to 2.0 library on machine with only 4.0 framework 如何在asp.net 4.0中的整个Web应用程序中禁用浏览器的缓存? - How can I disable Browser's Cache throughout my web application in asp.net 4.0? 应用程序池标识(.net Framework 4.0)提供响应超时异常,但网络服务(框架2.0)正常运行 - Application pool identity (.net framework 4.0) is giving response timeout exception but network service (frame work 2.0) is working OK 在.net 4.0 wpf应用程序中使用.net 2.0 dll - use .Net 2.0 dll in .net 4.0 wpf application 在.net 4.0上执行应用程序时,在.net 2.0下编译 - When executing an application on .net 4.0, compiled under .net 2.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM