我认为我有 IIS 问题 this blog给我一个修复:
To resolve it, Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed.
但是我无权访问 IIS GUI。有没有办法通过编辑 web.config 文件来做同样的事情?
最佳答案
恐怕这是不可能的。将目录配置为应用程序、设置 AppPool 等是 Web 服务器的责任。通常,您的网络托管服务提供商会提供一个控制面板,让您配置虚拟目录。如果没有,您需要通过他们的支持 channel 与他们联系以完成此操作。
关于来自 web.config 的 IIS 虚拟目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/748772/