我有1个<代码>asp.net(iis7)的网络链接和多个数据库备份。
每个客户都有不同的午餐,例如:
client1.test.com
client2.test.com
申请应改为:url (HttpContext.Current.Request.Url.Host)
,并确定哪些数据库使用。
问题在于<代码>iis HttpContext.Current.Request.Url.Host in category not work (Request is not available in this context ).
I don t have idea how to replace this mechanism. One web app for every client is not a solution.