IIS 7 and Above
Configuration & Scripting
Error message: Invalid application path
Last post May 04, 2012 03:20 AM by Maria-K
May 05, 2011 03:18 AM|zvonimirzg|LINK
I have problem with application in IIS 7.5 installed on Server 2008 R2. When I click on Basic Settings -> Test Settings I get "Invalid application path" error message. Bellow is part of applicationHost.config file.
site name="Portal" id="2" serverAutoStart="true"
application path="/" applicationPool="Portal"
virtualDirectory path="/" physicalPath="C:\inetpub\websites\Portal" /
virtualDirectory path="/Video" physicalPath="C:\inetpub\websites\Video" /
application path="/Forum" applicationPool="Forum"
virtualDirectory path="/" physicalPath="C:\inetpub\websites\Forum" /
I suspect that path in 7th line is the problem. But when I change it I can no longer test settings, button in grayed out in IIS manager. Can you please assist me with this issue?
virtualDirectory path="/Forum" physicalPath="C:\inetpub\websites\Forum" /
May 05, 2011 05:51 AM|KristoferG|LINK
I assume that the physical paths it refers to exists on the file system. Is that correct?
What if you remove the applicationPool from the <application> element. Does it work?
I cannot see any obvious errors. Either i am missing something somewhere, or there are other things that goes wrong.
May 05, 2011 06:36 AM|zvonimirzg|LINK
That is correct, physical paths exist in file system. I have removed applicationPool as suggested and application is automatically switched to DefaultAppPool but I still get error message.
For more info, IIS server is part of ActiveDirectory and application is using integrated pipeline, pass-through authentication and NetworkService as application pool identity. NetworkService has read permissions on C:\inetpub\websites\Forum folder.
Web site Portal and its virtual directory Video are working but throwing warning "Cannot verify access to path C:\inetpub\websites\Portal" and "Cannot verify access to path C:\inetpub\websites\Video"
May 05, 2011 06:50 AM|KristoferG|LINK
Is this the warning you see?
If so, you may ignore it, assuming that everything works :-)
Does this means that we are up and running now?
If so, you may want to add back the application pools settings for the applications. Use IIS Manager so we don't get everything wrong.
May 05, 2011 07:08 AM|zvonimirzg|LINK
Yes, that is the message it get on web site and virtual directory. I am aware it's false positive warning and my portal websites works OK.
I have not installed forum application yet, but I am worried about this error Invalid application path and I was hoping you guys would know the solution.
May 05, 2011 07:35 AM|KristoferG|LINK
Do you still get "Invalid Application Path"? I thought we had got rid of that.
May 05, 2011 07:37 AM|HCamper|LINK
Since you asked for information on "Invalid Application Path Message" for Test in IIS Server
information from IIS MVP.
You can install your application you have nothing to worry about for this warning message.
You can thank Kris for helping trouble shoot.
May 05, 2011 05:49 PM|zvonimirzg|LINK
Thank you for your effort so far... Unfortunately "Invalid Application Path" error is still there. I have tried to resolve the issue by reinstalling whole web server but it didn't help.
I have created web site called "Portal" and its application called "Forum". Before installing any scripts I have tried to test configuration from IIS manager using only default settings but IIS was reporting "Invalid Application Path" error.
I went ahead and installed mojoPortal in Portal web site root. Web site works fine.
But I am trying to install YAF on Forum application and installation is pulling strange errors.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'mojoPortal.Web' or one of its dependencies. The system cannot find the file specified.
I don't have much experience with IIS and ASP.NET but looks to me that application is opening from incorrect path. mojoPortal files shouldn't be included in YAF installation.
For a test I have created simply text file and place it in application root folder. When trying to open it from browser www.mydomain.com/Forum/test.txt I get following entry in IIS logs. I know this indicated that application is opening from correct folder
which makes this issue more confusing for me.
2011-05-05 21:15:36 192.168.0.22 GET /Forum/test.txt - 80 - 192.168.0.22 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729) 500 0 0 265
Here is part of current applicationHost.config file. All physical paths exist on file system and folder/files have correct permission set up.
<site name="Portal" id="2">
<application path="/" applicationPool="Forum">
<virtualDirectory path="/" physicalPath="C:\inetpub\websites\Portal" />
<virtualDirectory path="/Video" physicalPath="C:\inetpub\websites\Video" />
<application path="/Forum" applicationPool="Portal">
<virtualDirectory path="/" physicalPath="C:\inetpub\websites\Forum" />
<binding protocol="http" bindingInformation="192.168.0.22:80:www.mydomain.com" />
If you have any ideas how to resolve this, I would really appreciate your assistance. And if you need any info regarding my IIS configuration please ask.
May 05, 2011 10:32 PM|HCamper|LINK
It appears that Mojo Portal installation can cause problems.
item 1) The likey source of problem is the name wwwroot in the archive.
item 2) Another factor is Mojo Portal has smart installer that looks to fix database and folder problems as part of first run.
item 3) The Mojo Portal offers serveral versions of the CMS to use different Database Systems but for each archive the wwwwroot is present.
A suggested way to install Mojo portal and avoid some issues:
A) Layout and folders: Copy the directories and files from the archive to a virtual directory like mjp and ignore the deployment folder.
After the copy of the folders and files use Windows Explorer or IIS Manager Security Pane to add or confirm IUSR,IIS_USERS
have read,execute,list permissions.
B) Web Site creation: Using a browser go to the virtual directory mjp the first run dialog will start.
During the first run dialog any incorrect permissions are detected and you can use IIS Manager to fix and then re-run the setup.
C) Install Phase:During the first run an attempt to connect to the database server and fix links and pages occurs.
D) Success: After some wait you will be provided a link to login to your new Mojo Portal Site.
E) Post Install Step: Once in your new the Mojo Portal site first task is to change the Admin password.
The steps A - E do work for current releases of Mojo Portal using SQL Compact 40 Edition,SQL Server 2008.
Summary for your current problems an Mojo Portal clean the files from the portal and run steps A-E.
The YAF aka Yet Another Forum I have no working experience so can not comment on the success or failures for YAF.
May 06, 2011 03:46 AM|zvonimirzg|LINK
Hello. The strange thing is that Invalid application path error appears on all applications in IIS, no matter if website and application have any script installed. I have tried to find solution or at least confirmation that error is false positive, but no
luck so far.
You are correct, there is some conflict with mojoPortal and YAF. Although I I wasn't using smart installer and have installed mojoPortal manually like you described. I was able to avoid mojoPortal conflict and install YAF within application on default web site
that doesn't have any content.
I will keep working on this and will update this thread if I find new information. Thanks.
May 08, 2011 03:59 PM|zvonimirzg|LINK
Either Windows Server 2008 R2 with SP1 and IIS 7.5 has some issues with applications and pass through authentication or something strange has gone wrong on my server. I have moved back to Windows Server 2008 R2 with IIS7.0 and initial issue with "Invalid
application path" error in IIS manager has gone away. Case closed... sort of.
Aug 18, 2011 12:16 PM|Jaaanosik|LINK
The same here, Windows Server 2008 R2 SP1, IIS 7.5. Is this something to be worried about?
The application works though.
Thanks for any comments, hints, ...
Aug 18, 2011 08:53 PM|HCamper|LINK
I suggest you check IIS Net Reference
Guide using the information and settings images to verify the physical location permissions and user access.
You might change the "Application Pool being used and the error may change or go away.
Not knowing more it hard to tell.
Aug 19, 2011 12:25 PM|Jaaanosik|LINK
I read the info provided in your link with no luck though.
Aug 19, 2011 01:13 PM|HCamper|LINK
You might check the Dot Net Migration Guide
to see if there are issues related to the application.
Other than the error message and no system
or application information is is hard to answer.
Aug 19, 2011 02:22 PM|Jaaanosik|LINK
I've created a clean new site:
<site name="mysite" id="8">
<application path="/" applicationPool="mysite">
<virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\mysite" />
<application path="/php" applicationPool="mysite">
<virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\mysite\php" />
<binding protocol="http" bindingInformation="*:8085:" />
One 'php' application added.
Basic Settings/Test settings... the same result.
Aug 20, 2011 04:04 AM|HCamper|LINK
What are the properties for the "Default" "Application Pool" User and permissions using a "Built-In Account" ?
Have you verified the permissions for "mysite" and "php" and the "Application Pool" being used ?
Is the "Application Pool" using the load "User Profile" for the Account ?
Aug 20, 2011 01:15 PM|Jaaanosik|LINK
All the rights are OK. IIS_IUSRS group has read/execute permissions. DefaultApplPool is member of the IIS_IUSRS group.
Even changing it to Full control does not help.
As I mentioned the application works. It seems that 'Test Settings...' for pass through authentication is a joke right now.
If that's the case MS just should say so and not to keep people in the dark. :)
Aug 20, 2011 01:41 PM|HCamper|LINK
If the Web Site and Applications operate correctly that is what really matters.
May 04, 2012 03:20 AM|Maria-K|LINK
Create locale admin account on server/computer.
IIS: Add Appliation, Connect as your local admin.
That worked for me.