简体   繁体   English

在不同的应用程序池中运行的Web应用程序-如何访问网站资源

[英]Web application running in different application pool - how to access website resources

For one of the NPO's that I am designing my application for, there is also a website which is not designed by me. 对于我要为其设计应用程序的NPO之一,还有一个不是我设计的网站。 The website consists of static HTML pages, where as my application (Blood Donor Management System) is designed in ASP.Net MVC. 该网站包含静态HTML页面,在ASP.Net MVC中设计了我的应用程序(献血者管理系统)。 The Blood Donor Management System will be running in a separate application pool. 献血者管理系统将在单独的应用程序池中运行。 Here is how the Site will be organized. 这是网站的组织方式。

IisServer IisServer
----NPO WebSite(root) ---- NPO网站(根)
---------Blood Donor Management System (root/MyAppPath) ---------献血者管理系统(root / MyAppPath)
----Other Websites (not belonging to my NPO). ----其他网站(不属于我的NPO)。

The Blood Donor Management System is a back office application for most of its part. 献血者管理系统大部分是后台应用程序。 The only part that will be exposed to public is the Registration of Blood Donors and viewing their profiles. 公开露面的唯一部分是献血者注册和查看其个人资料。 I am not sure about the following 我不确定以下内容

  1. How do I decorate these registration and profile pages using the resources (layout) from the Website, since my application will run in separate application pool. 由于我的应用程序将在单独的应用程序池中运行,因此如何使用网站上的资源(布局)装饰这些注册和配置文件页面。
  2. Should I run the website and my application in same application pool. 我是否应该在同一应用程序池中运行网站和应用程序。 There are only two pages in my application that would need resources(layout related) from the website. 我的应用程序中只有两个页面需要网站的资源(与布局相关)。

I suggest you combine your MVC application into one, and use Areas to separate them and still able to utilize shared resources. 我建议您将MVC应用程序合并为一个,并使用Areas将它们分开,并且仍然能够利用共享资源。

Walkthrough: Organizing an ASP.NET MVC Application using Areas 演练:使用区域组织ASP.NET MVC应用程序

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM