How to solve a same site and multiple projects of global.asax file

611 views Asked by At

We have 3 web api projects with different functions,such as: order, coupon, shopping cart, and the 3 projects belong to different developer.

When released, merge to the same iis site, but there can only one Global.asax file:

<%@ Application Codebehind="Global.asax.cs" Inherits="Company.Product.Order.MvcApplication" Language="C#" %>

the other 2 Global.asax.cs files of code can't to fire, how to solve the problem???

thanks!

1

There are 1 answers

0
Shlomi Haver On

I don't think you supposed to run 3 different website in the same web application. if you want to keep the same domain with different endpoint such as:

[domain]/app1   
[domain]/app2

you can set a virtual directory for each app under the same web application.

But if you want your 3 projects in the same endpoint i think you should join them into one project.