[英]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.