在默认网站下的IIS 7中不能使用多个应用程序 [英] Cannot use more than one application in IIS 7, under Default Web Site

查看:101
本文介绍了在默认网站下的IIS 7中不能使用多个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用IIS连接数据库的应用程序.基本上,有几个目录(命名为S21.1,S21.2等),每个目录包含一个不同的web.config和一个相似的bin目录.在IIS 5.1和更高版本下6我正在为每个目录创建一个虚拟目录(在默认网站"下),然后能够根据要连接的数据库选择所需的目录.只要虚拟目录没有应用程序名称,一切都可以正常工作.

I have an application that uses IIS to connect to a database. Basically, there are several directories (named, lets say, S21.1, S21.2, ...), each containing a different web.config and a similar bin directory. Under IIS 5.1 & 6 I was creating a virtual directory for each of these directories (under Default Web Site) and then was able to select the one I wanted depending to what database I wanted to connect. Everything worked fine provided that the virtual directories didn't have an application name.

我在IIS 7中尝试了相同的操作,首先,仅使用虚拟目录无济于事(在所有),因此我必须将其转换为应用程序才能正常工作,其次(这很重要),一旦我创建了第二个应用程序,第一个应用程序就不再工作了(只有最后一个工作了,所以我不能有IIS早期版本中的几个).我的问题是,是否有某种东西(安全性,设置等)可以阻止一个人在默认网站上定义一个以上的应用程序?

I tried the same in IIS 7 and, firstly, having just a virtual directory doesn't help (it doesn't work at all), so I had to convert it to application in order to work, and secondly (this is the important thing), once I create a second application, the first one didn't work anymore (only the last one works, so I cannot have several ones like in the previous versions of IIS). My question is, is there something (security, setting, something else) that prevents one from having more than one working application defined under Default Web Site ?

TIA,

Michael

推荐答案

迈克尔,

 

谢谢您的发帖!  ;我建议将您的问题发布到MS论坛之一中,

首页 > 论坛 > IIS 7

Home > Forums > IIS 7

位于此处: http://forums.iis.net/default.aspx?GroupID=41

祝您度过愉快的一天!


这篇关于在默认网站下的IIS 7中不能使用多个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆