[HttpException]: '/LM/W3SVC/2/ROOT/xxxxxxxxxxx' is not a valid IIS application.

Andrew Stipdonk 0 Reputation points
2023-05-16T17:33:02.0066667+00:00

The applications that I support are all on older servers. New servers are being set up with Windows Server 2019 so that the applications can be deployed here allowing the older servers (Windows Server 2012 R2) to be decommissioned. I am following the exact same deployment steps (using deployment batch files that have been used for many years) on the new server that I do on the older servers but am getting the following messages that I do not get when I deploy to the older servers:

Info: error
Info: ASPRUNTIME: '/LM/W3SVC/2/ROOT/EcoSysDev' is not a valid IIS application.

Info:

Info: [HttpException]: '/LM/W3SVC/2/ROOT/EcoSysDev' is not a valid IIS application.

Info:    at System.Web.Hosting.ISAPIApplicationHost..ctor(String appIdOrVirtualPath, String physicalPath, Boolean validatePhysicalPath, IProcessHostSupportFunctions functions, String iisVersion)
   at System.Web.Hosting.ApplicationManager.CreateObjectWithDefaul
Info: tAppHostAndAppId(String physicalPath, VirtualPath virtualPath, Type type, Boolean failIfExists, HostingEnvironmentParameters hostingParameters, String& appId, IApplicationHost& appHost)
   at System.Web.Compilation.ClientBuildManager.CreateHost()

[HttpException]: '/LM/W3SVC/2/ROOT/EcoSysDev' is not a valid IIS application.

Info:    at System.Web.Compilation.ClientBuildManager.EnsureHostCreated()
   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback, Boolean forceCleanBuild)
   at System.Web.Compilation.Precompiler.Main(String[]
Info:  args)

Warning: The process 'C:\windows\system32\cmd.exe' (command line '') exited with code '0x1'.

Any thoughts?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,613 questions
Internet Information Services
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,888 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Andrew Stipdonk 0 Reputation points
    2023-05-18T15:20:57.4266667+00:00

    Apparently the issue is that the path needs to be changed. I have always been using /LM/W3SVC/2/ROOT/ but now I need to use /LM/W3SVC/1/ROOT/. This resolves the errors.

    Does anyone know what this number represents and why changing it makes a difference on the different servers?

    0 comments No comments

  5. Sam Wu-MSFT 7,286 Reputation points Microsoft Vendor
    2023-05-19T09:42:06.5+00:00

    @Andrew Stipdonk

    This is the path in your project, we have no way of knowing what 1 and 2 represent, you can find the difference by looking for the path of this folder and comparing it.

    0 comments No comments