Invalid application path

Iis 7

Iis 7 Problem Overview


IIS7 Windows 7 64bit

No matter what I do I can't seem to add an application to a web site.

When I 'Test settings' I get "Invalid application path".

Any one have a guess as to what I could be doing wrong?

screenshot

Iis 7 Solutions


Solution 1 - Iis 7

When I got this error it appeared to be due to a security setting. When I changed the "Connect As" property to an administrator then I no longer got the message.

Obviously this isn't a good solution for a production environment - one should probably grant the least privileges necessary for the user IIS is going to be using by default. I'll update this answer if I learn more.

Solution 2 - Iis 7

The error message might be a bug. I ignored it and everything worked for me.

IIS Invalid Application Path Screen Shot

See Here: http://forums.iis.net/t/1177952.aspx

and here http://forums.iis.net/p/1182820/2000936.aspx

Solution 3 - Iis 7

I eventually tracked this down to the Anonymous Authentication Credentials. I don't know what had changed, because this application used to work, but anyway, this is what I did: Click on the Application -> Authentication. Make sure Anonymous Authentication is enabled (it was, in my case), but also click on Edit... and change the anonymous user identity to "Application pool identity" not "Specific user". Making this change worked for me.

Regards.

Solution 4 - Iis 7

Go to your HTTP bindings in IIS (select your website, then on the right click on Bindings...). Delete your SSL and your HTTP binding. Re-Add them.

This usually fixes this for me.

Solution 5 - Iis 7

Try : Internet Information Services (IIS) Manager -> Default Web Site -> Click Error Pages properties and select Detail errors

Solution 6 - Iis 7

Problem was installing iis manager after .net framework aspnet_regiis had run. Run run aspnet_regiis from x64 .net framework directory

aspnet_regiis -iru // From x64 .net framework directory

https://stackoverflow.com/questions/3738559/iis-manager-cant-configure-net-compilation-on-net-4-applications#3738651

Solution 7 - Iis 7

I was also getting this error, I found that it was because I had deleted the Default Application Pool "DefaultAppPool". Re-creating it fixed the problem. Drove me crazy for a few days.

This error will appear if either the web application is mapped to a non-existent app-pool; or if that application pool is stopped.

Solution 8 - Iis 7

I also had this error.

My IIS Website has a Default Website with three (3) application directories below it.

I had each of my 3 application directories configured correctly to use .NET Framework v2.0 in the Application Pools.

Edit Application Pool

However, the Default Website never was configured. I didn't think it was necessary since all of my apps were contained within it.

My IIS Server's default configuration is .NET Framework v4.0, so I changed that to .NET v2.0:

Edit Default App Pool

After I did that, I no longer received the same error message.

Now, I see this:

Result

I hope this information helps others.

Solution 9 - Iis 7

I was also getting this error. The problem for me turned out to be that I had two separate websites on the machine, and I had not designated which address went to which website. To resolve this, go to IIS Manager -> Select Web Site -> Bindings -> Add... -> Enter the host name that you want to resolve for this website. Repeat for any other websites on the machine.

HTH. Rick

Solution 10 - Iis 7

I had a similar issue today. It was caused by skype! A recent update to skype had re-enabled port 80 and 443 as alternatives to incoming connections.

H/T : http://www.codeproject.com/Questions/549157/unableplustoplusstartplusdebuggingplusonplustheplu

To disable, go to skype > options > Advanced > Connections and uncheck "Use port 80 and 443 as alternatives to incoming connections"

Solution 11 - Iis 7

I still haven’t find a solution, but find a workaround.

You can manually change IIS configuration, in system32\intsrv\config\applicationHost.config. Just manually create (copy-paste) section in <sites> and <location>.

Solution 12 - Iis 7

This worked for me. (btw its not recommended.)

For my test app , I created a new application pool and changed its Identity to "NetworkService" .

enter image description here

More about App Pool Identities here
http://www.iis.net/learn/manage/configuring-security/application-pool-identities and
http://www.iis.net/learn/get-started/planning-for-security/understanding-built-in-user-and-group-accounts-in-iis

You have to make sure that "NetworkService" has rights on your application's physical path.

Solution 13 - Iis 7

even it was getting the above error. i found out that IIS was not registered on the server.

registering the iis fixed the issue.

Thanks,

Solution 14 - Iis 7

In my case I had virtual dir. When I accessed main WCF Service in main dir it was working fine but accessing WCF service in virtual dir was throwing an error. I had following code in web.config for both main and virtual dir.

    <security>
        <requestFiltering>
            <denyQueryStringSequences>
                <add sequence=".." />
            </denyQueryStringSequences>
        </requestFiltering>
    </security>

by removing from web.config in virtual dir it fixed it.

Solution 15 - Iis 7

I was able to correct the flaw by changing the file below:

> C:\Windows\System32\inetsrv\config\applicationHost.config

In:

<application path="/" applicationPool="ASP.NET v4.0">
    <virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\Bonobo.Git.Server" />
</application>
<application path="/Bonobo.Git.Server" applicationPool="ASP.NET v4.0">
    <virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\Bonobo.Git.Server" />
</application>

For:

<application path="/">
    <virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\" />
</application>
<application path="/Bonobo.Git.Server" applicationPool="ASP.NET v4.0">
    <virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\Bonobo.Git.Server" />
</application>

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionfooView Question on Stackoverflow
Solution 1 - Iis 7pettysView Answer on Stackoverflow
Solution 2 - Iis 7Aaron HoffmanView Answer on Stackoverflow
Solution 3 - Iis 7john_catView Answer on Stackoverflow
Solution 4 - Iis 7Ryan TernierView Answer on Stackoverflow
Solution 5 - Iis 7lsalamonView Answer on Stackoverflow
Solution 6 - Iis 7Edward WildeView Answer on Stackoverflow
Solution 7 - Iis 7RocklanView Answer on Stackoverflow
Solution 8 - Iis 7jp2codeView Answer on Stackoverflow
Solution 9 - Iis 7Rick ArthurView Answer on Stackoverflow
Solution 10 - Iis 7DamoView Answer on Stackoverflow
Solution 11 - Iis 7Alexander BeletskyView Answer on Stackoverflow
Solution 12 - Iis 7AmitdView Answer on Stackoverflow
Solution 13 - Iis 7user3760372View Answer on Stackoverflow
Solution 14 - Iis 7SoftecView Answer on Stackoverflow
Solution 15 - Iis 7Wender AlvesView Answer on Stackoverflow