I have a IIS problem that I think this blog gives me a fix for:
我有一个IIS问题,我认为这个博客给了我一个修复:
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.
要解决此问题,请右键单击虚拟目录 - 选择属性,然后单击“应用程序”标签和文本框旁边的“创建”。它将使用虚拟目录的名称自动创建“应用程序”。现在可以访问该应用程序。
However I don't have access to the IIS GUI. Is there a way to do the same thing by editing the web.config file?
但是,我无权访问IIS GUI。有没有办法通过编辑web.config文件来做同样的事情?
4 个解决方案
#1
I'm afraid this isn't possible. Configuring a directory as an application, setting up the AppPool, etc is the responsibility of the web server. Typically your web hosting provider will offer a control panel that lets you configure the virtual directories. If not, you'll need to contact them through their support channels to have this done.
我担心这是不可能的。将目录配置为应用程序,设置AppPool等是Web服务器的责任。通常,您的Web托管提供商将提供一个控制面板,允许您配置虚拟目录。如果没有,您需要通过他们的支持渠道与他们联系以完成此操作。
#2
You can not create a virtual directory via your web.config. If this is on a web host then you will need to use whatever user interface they give you to create Virtual Directories.
您无法通过web.config创建虚拟目录。如果这是在Web主机上,那么您将需要使用他们为您创建虚拟目录的任何用户界面。
#3
or on some hosted sites that you're allowed access to, you need to put in a ticket to the service center or help desk to get them make it an app. They will need to know which version of the .net framework you want it to be also.
或者在您允许访问的某些托管网站上,您需要将服务中心或服务台的票证放入其中,以使其成为应用程序。他们需要知道您希望它的.net框架版本。
#4
The ImageResizer
project has a way to create a virtual folder using its own mechanism. It isn't recommended for production, but it may suit some needs.
ImageResizer项目有一种使用自己的机制创建虚拟文件夹的方法。不建议用于生产,但它可能适合某些需求。
Add
<add name="VirtualFolder" virtualPath="~/" physicalPath="..\Images" vpp="false "/>
to the <plugins />
section.
到
#1
I'm afraid this isn't possible. Configuring a directory as an application, setting up the AppPool, etc is the responsibility of the web server. Typically your web hosting provider will offer a control panel that lets you configure the virtual directories. If not, you'll need to contact them through their support channels to have this done.
我担心这是不可能的。将目录配置为应用程序,设置AppPool等是Web服务器的责任。通常,您的Web托管提供商将提供一个控制面板,允许您配置虚拟目录。如果没有,您需要通过他们的支持渠道与他们联系以完成此操作。
#2
You can not create a virtual directory via your web.config. If this is on a web host then you will need to use whatever user interface they give you to create Virtual Directories.
您无法通过web.config创建虚拟目录。如果这是在Web主机上,那么您将需要使用他们为您创建虚拟目录的任何用户界面。
#3
or on some hosted sites that you're allowed access to, you need to put in a ticket to the service center or help desk to get them make it an app. They will need to know which version of the .net framework you want it to be also.
或者在您允许访问的某些托管网站上,您需要将服务中心或服务台的票证放入其中,以使其成为应用程序。他们需要知道您希望它的.net框架版本。
#4
The ImageResizer
project has a way to create a virtual folder using its own mechanism. It isn't recommended for production, but it may suit some needs.
ImageResizer项目有一种使用自己的机制创建虚拟文件夹的方法。不建议用于生产,但它可能适合某些需求。
Add
<add name="VirtualFolder" virtualPath="~/" physicalPath="..\Images" vpp="false "/>
to the <plugins />
section.
到