I've developed a web application that resides at "C:\Program Files\MyWebApplication".
For the purposes of ensuring that it "just works" for now I've granted Full Access to Everyone on the "MyWebApplication" directory.
This is IIS7.5 running on Windows Server 2008 R2. If it helps, it's a new application within the Default Web Site (at "/MyApplication") which is also a Client Access Server for Exchange 2010, though I don't believe that should cause any problems.
When I create my new application within IIS and set the physical directory to "C:\Program Files\MyWebApplication" and click Test Settings I get this error message:
---------------------------
Test Connection
---------------------------
There was an error while performing this operation.
Details:
Invalid application path
---------------------------
OK
---------------------------
I can ignore the error and it goes through okay, and my web application appears to work okay.
I don't think this is related to the space in the folder name.
You use "Pass-through autentication", so which user should IIS use to "test the settings"? It does not know. So i think the error message is related to this, although i have to say that the error message is not what i really expected.
I am quite sure that if you set a user in "Connect as", you will get rid of this message.
Just make sure that the application pool identity has access to the physical folder (which it probably has), and you should be fine.
Kristofer Gafvert
http://www.it-notebook.org
Marked as answer by Lloydz on May 22, 2011 04:11 AM
I meet the same error when trying to test connections. However I remember it doesn't happen before. I doubt it is caused by some upgrades on IIS. Currently all these matters are conducted by platform installer which makes some people ( as me ) lazy to research
what are plugged behind scene.
ComradeGhork...
22 Posts
Cannot change application location - "Invalid application path" error
May 15, 2011 12:16 AM|LINK
I've developed a web application that resides at "C:\Program Files\MyWebApplication".
For the purposes of ensuring that it "just works" for now I've granted Full Access to Everyone on the "MyWebApplication" directory.
This is IIS7.5 running on Windows Server 2008 R2. If it helps, it's a new application within the Default Web Site (at "/MyApplication") which is also a Client Access Server for Exchange 2010, though I don't believe that should cause any problems.
When I create my new application within IIS and set the physical directory to "C:\Program Files\MyWebApplication" and click Test Settings I get this error message:
---------------------------
Test Connection
---------------------------
There was an error while performing this operation.
Details:
Invalid application path
---------------------------
OK
---------------------------
I can ignore the error and it goes through okay, and my web application appears to work okay.
Is this a bug in IIS?
iis bug application physical path
vikomall
122 Posts
Microsoft
Re: Cannot change application location - "Invalid application path" error
May 15, 2011 10:39 PM|LINK
One of the following could be the reasons:
1. application path does NOT start with '/'
2. application path is ending with '/'
3. application path contains '.' or '..'
ComradeGhork...
22 Posts
Re: Cannot change application location - "Invalid application path" error
May 15, 2011 10:50 PM|LINK
Afraid not. Please see the attached screenshot:
HCamper
8048 Posts
Re: Cannot change application location - "Invalid application path" error
May 16, 2011 03:01 AM|LINK
Hello,
Check the permissions and application pool user.
Martin
Community Member Award 2011
KristoferG
1343 Posts
Moderator
Re: Cannot change application location - "Invalid application path" error
May 16, 2011 04:53 AM|LINK
I don't think this is related to the space in the folder name.
You use "Pass-through autentication", so which user should IIS use to "test the settings"? It does not know. So i think the error message is related to this, although i have to say that the error message is not what i really expected.
I am quite sure that if you set a user in "Connect as", you will get rid of this message.
Just make sure that the application pool identity has access to the physical folder (which it probably has), and you should be fine.
http://www.it-notebook.org
zc0000
10 Posts
Re: Cannot change application location - "Invalid application path" error
Jun 11, 2011 10:40 AM|LINK
IIS7 .net 4