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.
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?
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"
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.
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.
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.
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.
zvonimirzg
10 Posts
Error message: Invalid application path
May 05, 2011 07:18 AM|LINK
Hello.
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
application path="/Forum" applicationPool="Forum"
virtualDirectory path="/" physicalPath="C:\inetpub\websites\Forum" /
/application
/site
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" /
Best regards
KristoferG
1343 Posts
Moderator
Re: Error message: Invalid application path
May 05, 2011 09:51 AM|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.
http://www.it-notebook.org
zvonimirzg
10 Posts
Re: Error message: Invalid application path
May 05, 2011 10:36 AM|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"
KristoferG
1343 Posts
Moderator
Re: Error message: Invalid application path
May 05, 2011 10:50 AM|LINK
Hi,
Is this the warning you see?
http://www.it-notebook.org/iis/article/test_connection_authorization_failed.htm
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.
http://www.it-notebook.org
zvonimirzg
10 Posts
Re: Error message: Invalid application path
May 05, 2011 11:08 AM|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.
Best regards.
KristoferG
1343 Posts
Moderator
Re: Error message: Invalid application path
May 05, 2011 11:35 AM|LINK
Do you still get "Invalid Application Path"? I thought we had got rid of that.
http://www.it-notebook.org
HCamper
8048 Posts
Re: Error message: Invalid application path
May 05, 2011 11:37 AM|LINK
Hello,
Since you asked for information on "Invalid Application Path Message" for Test in IIS Server
check this http://msmvps.com/blogs/bernard/archive/2009/11/04/warning-authorization-cannot-verify-access-to-path-c-inetpub-wwwroot.aspx
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.
Martin
Community Member Award 2011
zvonimirzg
10 Posts
Re: Error message: Invalid application path
May 05, 2011 09:49 PM|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>
<application path="/Forum" applicationPool="Portal">
<virtualDirectory path="/" physicalPath="C:\inetpub\websites\Forum" />
</application>
<bindings>
<binding protocol="http" bindingInformation="192.168.0.22:80:www.mydomain.com" />
</bindings>
</site>
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.
HCamper
8048 Posts
Re: Error message: Invalid application path
May 06, 2011 02:32 AM|LINK
Hello,
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.
Martin
Community Member Award 2011
zvonimirzg
10 Posts
Re: Error message: Invalid application path
May 06, 2011 07:46 AM|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.