"Invalid application path" error. Here are the steps I took.
Right-click the root folder of the website. Click Add Virtual Directory.
In the window that opens, set an alias to the name of the subfolder. WS
Use the browse button to navigate and set the path to the physical folder on the disk. Click OK
Click "Test Settings ...". Authentication passes through the pass. But get a warning that the path cannot be verified. It looks ok.
Click OK. And the "WS" folder is now installed as a virtual directory. (If I click "Basic Settings ..." and the test parameters, you will still get the results.
Right-click the folder. Select Convert to Application. Leave all the defaults as they are. Click "Test Settings" and I get an error message. (This is with pass-through authentication.)
Connect as a "Specific User", and this time, "Test Settings ..." do not report any errors. In addition, the path is indicated as “accessible”.
So the question is, why does “Pass Through” authentication fail?
Now note that if I continue and click OK to convert the virtual folder to the application, an error does not occur. And I can start the web service (this is using the pass-through authentication option for the application).
So what a problem. Well, when I add a website to VS 2008 solution and try to create a website (I need to debug the web service). I get this error:
An error occurred while using a section registered as allowDefinition = 'MachineToApplication' that exceeded the application level. This error can be caused by the fact that the virtual directory is not configured as an application in IIS.
But a folder is an application. I just converted it. And the web service is working fine on the local host.
What details am I missing?
(Studying these problems, I found that several web.config files can lead to a site build error. I do not have multiple web.config files.)
web-applications iis-7
Karl Oct 29 '11 at 15:05 2011-10-29 15:05
source share