简体   繁体   English

我可以使用 ASP.NET 在同一个 web 域上上传两个 web 应用程序吗?

[英]Can I upload two web applications on the same web domain using ASP.NET?

Is it possible to publish two web applications on the same webdomain?是否可以在同一个域上发布两个 web 应用程序? Currently when I try to do this, it gives 500 server error.目前,当我尝试执行此操作时,会出现 500 服务器错误。

Also, these two web apps will have two different webconfig files.此外,这两个 web 应用程序将有两个不同的 webconfig 文件。 So is that okay?那可以吗?

I plan to publish these two web applications not in root but in seperate folders other than root.我计划不在根目录中发布这两个 web 应用程序,而是在根目录以外的单独文件夹中发布。

Please let me know.请告诉我。

Yes, it's possible.是的,这是可能的。 They should also run in separate application pools.它们还应该在单独的应用程序池中运行。 They should both be written in the same version of.Net that is being run in the root directory.它们都应该使用在根目录中运行的相同版本的 .Net 编写。 If there is a difference, you may run into web.config errors regarding unsupported keys.如果存在差异,您可能会遇到有关不受支持的密钥的 web.config 错误。 Preferably if there must be a difference, you will want the newer version to be in the sub-folder since backwards compatibility will allow deprecated elements to be tolerated.如果必须有区别,最好将较新的版本放在子文件夹中,因为向后兼容性将允许允许弃用的元素。

Edit:编辑:
Also: Each sub-folder will need to be configured as a separate "Virtual Directory" and run with a separate application name.另外:每个子文件夹都需要配置为单独的“虚拟目录”并使用单独的应用程序名称运行。 If they share an application pool and potentially an application name, you may have object collisions and memory usage problems.如果它们共享一个应用程序池并且可能共享一个应用程序名称,您可能会遇到 object 冲突和 memory 使用问题。

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

相关问题 在同一解决方案中的两个Asp.Net Web应用程序之间共享文件夹 - Share a folder between two Asp.Net web applications in the same solution 在哪里可以找到有关使用 MySQL 设置 ASP.NET web 应用程序的信息? - Where can I find information on setting up ASP.NET web applications with MySQL? 我可以在MVC站点下的虚拟目录中使用传统的ASP.NET Web应用程序吗? - Can I have traditional ASP.NET Web Applications in Virtual Directories under MVC Site? ASP.Net Web应用程序的探查器? - Profilers for ASP.Net Web Applications? ASP.NET Web Applications依赖于ASMX Web服务 - ASP.NET Web Applications's dependency on ASMX web service 需要如何在两个 .net 2.0 web 运行在同一域上的应用程序之间共享“会话”数据的工作示例 - need working example of how to share “session” data between two .net 2.0 web applications running on the same domain 文件夹上传 asp.net web forms - Folder upload in asp.net web forms ASP.NET Web API可以在与MVC相同的URL上工作吗? - Can ASP.NET Web API work on same url as MVC? 在两个asp.net MVC Web应用程序之间传递非ASCII字符将无法识别 - Passing non-ASCII characters between two asp.net MVC web applications will not be recognized 具有相同 ID 的 ASP.NET Web 控件 - ASP.NET web control with the same ID
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM