locked
"Server Application Unavailable" after moving to a VM RRS feed

  • Question

  • User-1207316831 posted

    We moved our development server to a new Windows 2003 Virtual Machine. What could be causing "Server Application Unavailable"? Our dot Net apps worked fine in our old development server. Event log shows the following:

    ======

    Failed to initialize the AppDomain:/LM/W3SVC/2082169611/Root

    Exception: System.Configuration.ConfigurationErrorsException

    Message: Exception of type 'System.Configuration.ConfigurationErrorsException' was thrown.

    StackTrace: at System.Web.Configuration.ErrorRuntimeConfig.ErrorConfigRecord.System.Configuration.Internal.IInternalConfigRecord.GetLkgSection(String configKey)
    at System.Web.Configuration.RuntimeConfigLKG.GetSectionObject(String sectionName)
    at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
    at System.Web.Configuration.RuntimeConfig.get_HostingEnvironment()
    at System.Web.Hosting.HostingEnvironment.StartMonitoringForIdleTimeout()
    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    ======

    Thanks a lot.

    Thursday, April 14, 2016 6:22 PM

Answers

  • User1278090636 posted

    Hi,

    Please try re register ASP with IIS. You can use the following command.

    1. Stop Web Services

    net stop w3svc

    2. Uninstall all instances of ASP.NET

    aspnet_regiis.exe -ua

    3. Re-install ASP.NET to IIS

    aspnet_regiis.exe -i

    4. Start the Server

    net start w3svc

    Best Regards,

    Jean

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Friday, April 15, 2016 5:19 AM

All replies

  • User1278090636 posted

    Hi,

    Please try re register ASP with IIS. You can use the following command.

    1. Stop Web Services

    net stop w3svc

    2. Uninstall all instances of ASP.NET

    aspnet_regiis.exe -ua

    3. Re-install ASP.NET to IIS

    aspnet_regiis.exe -i

    4. Start the Server

    net start w3svc

    Best Regards,

    Jean

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Friday, April 15, 2016 5:19 AM
  • User-1207316831 posted

    Hi, Jean. Thank you. We will try after work hours tonight. I'll post an update then.

    Friday, April 15, 2016 1:53 PM