0

管理、UI、サービス (WCF サービス) など、3 つの MVC3 Web プロジェクトを 1 つのソリューションにまとめています。

ネットワーク ソリューション上の単一の IP でホストする必要があるため、単一のプロジェクトにマージする必要があります。これらすべてのプロジェクトを組み合わせる方法を提案してください。

4

1 に答える 1

0

You can host the three applications on a server and bind them with the same IP but different port number. In the application bindings give different port numbers to the applications. Like default (80) for UI and port 8080 for web-services and port 8090 for admin application.

Another option is to use the same IP and ports but ask your admin to configure 3 host name in DNS that map to the same IP. Then in bindings specific each distinct hostname for each of the web applications.

If the above solutions are not acceptable in your case then you need to make some changes to the application and organize it using MVC areas. Then you will have one application and 3 areas however you need to take care of session management, security,etc if they differ in the 3 apps. Here is info: http://msdn.microsoft.com/en-us/library/ee671793(v=vs.100).aspx

Another one: http://www.codeguru.com/csharp/.net/net_asp/mvc/article.php/c20227/Using-Areas-in-ASPNET-MVC-Application.htm

于 2012-10-29T08:45:54.583 に答える