Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Hedgehog Web service does not work under Windows Server 2016

    Scheduled Pinned Locked Moved Support
    8 Posts 2 Posters 47 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hi,
      I installed Hedgehog to Windows Server 2016, successfully created DB and started 'Hedgehog Service' but 'Hedgehog Web Server' have not started, after attempt of starting service through 'Services' UI it crashes after starting. Windows Event Viewer show the next (3 message):

      Message 1:
      An unhandled exception occurred and the process was terminated.

      Application ID: Hedgehog.Service.exe

      Process ID: 108

      Exception: System.IO.FileNotFoundException

      Message: Could not load file or assembly 'InedoLib, Version=1000.0.0.0, Culture=neutral, PublicKeyToken=112cfb71329714a6' or one of its dependencies. The system cannot find the file specified.

      StackTrace: at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
      at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
      at System.Type.GetType(String typeName, Boolean throwOnError)
      at System.Web.Hosting.HostingEnvironment.CreateInstance(String assemblyQualifiedName)
      at System.Web.Hosting.HostingEnvironment.CreateInstance(String assemblyQualifiedName)
      at System.Web.Hosting.ApplicationHost.CreateApplicationHost(Type hostType, String virtualDir, String physicalDir)
      at Inedo.Web.Server.IntegratedServer.ProcessRequests()
      at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

      Message 2:
      Application: Hedgehog.Service.exe
      Framework Version: v4.0.30319
      Description: The process was terminated due to an unhandled exception.
      Exception Info: System.IO.FileNotFoundException
      at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
      at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
      at System.Type.GetType(String typeName, Boolean throwOnError)
      at System.Web.Hosting.HostingEnvironment.CreateInstance(String assemblyQualifiedName)
      at System.Web.Hosting.HostingEnvironment.CreateInstance(System.String)
      at System.Web.Hosting.ApplicationHost.CreateApplicationHost(System.Type, System.String, System.String)
      at Inedo.Web.Server.IntegratedServer.ProcessRequests()
      at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
      at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
      at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
      at System.Threading.ThreadHelper.ThreadStart()

      Message 3:
      Faulting application name: Hedgehog.Service.exe, version: 1.0.3.10, time stamp: 0x5af4618c
      Faulting module name: KERNELBASE.dll, version: 10.0.14393.2189, time stamp: 0x5abdad60
      Exception code: 0xe0434352
      Fault offset: 0x0000000000033c58
      Faulting process id: 0x6c
      Faulting application start time: 0x01d3f415ebcd3964
      Faulting application path: C:\Program Files\Hedgehog\Service\Hedgehog.Service.exe
      Faulting module path: C:\Windows\System32\KERNELBASE.dll
      Report Id: d0a92324-4265-45d6-b4c7-6294668417e9
      Faulting package full name:
      Faulting package-relative application ID:

      NOTE: file InedoLib.dll exists in service folder, installation was completed successfully without any errors.

      Product: Hedgehog
      Version: 1.0.3

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        I've seen this come up sometime if the ASP.NET role service is not installed on the machine... can you enable that, and see if it works?

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Hi,
          ASP.NET is enabled for IIS, source for one of error messages is ASP.NET itself, and the same "InedoLib.dll not found"

          System

          • Provider
            [ Name] ASP.NET 4.0.30319.0
          • EventID 1325
            [ Qualifiers] 49152
            Level 2
            Task 0
            Keywords 0x80000000000000
          • TimeCreated
            [ SystemTime] 2018-06-01T11:53:46.024473600Z
            EventRecordID 11326
            Channel Application
            Computer WIN-58Q0T99GG55
            Security

          An unhandled exception occurred and the process was terminated.

          Application ID: Hedgehog.Service.exe

          Process ID: 6944

          Exception: System.IO.FileNotFoundException

          Message: Could not load file or assembly 'InedoLib, Version=1000.0.0.0, Culture=neutral, PublicKeyToken=112cfb71329714a6' or one of its dependencies. The system cannot find the file specified.

          StackTrace: at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
          at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
          at System.Type.GetType(String typeName, Boolean throwOnError)
          at System.Web.Hosting.HostingEnvironment.CreateInstance(String assemblyQualifiedName)
          at System.Web.Hosting.HostingEnvironment.CreateInstance(String assemblyQualifiedName)
          at System.Web.Hosting.ApplicationHost.CreateApplicationHost(Type hostType, String virtualDir, String physicalDir)
          at Inedo.Web.Server.IntegratedServer.ProcessRequests()
          at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
          at System.Threading.ThreadHelper.ThreadStart()

          1 Reply Last reply Reply Quote 0
          • T Offline
            thoven
            last edited by

            Can you try executing Hedgehog.Service.exe from the command line? Also, can you verify that %PROGRAMDATA%\Inedo\SharedConfig\Hedgehog.config exists and has a valid connection string in it?

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              (1) Results of service execution from command line: (now it's MS Windows Server 2012 with the same issue)

              C:\Program Files\Hedgehog\Service>Hedgehog.Service.exe run
              Starting the messenger...
              Configuring proxy settings...
              Checking for server and database time difference...
              Starting the Server Checker task runner...
              Server Checker task runner started.
              Starting the Infrastructure Sync task runner...
              Infrastructure Sync task runner started.
              Starting the Execution Dispatcher task runner...
              Execution Dispatcher task runner started.
              Initializing Server Checker...
              Server Checker initialized.
              Running Server Checker...
              Beginning agent scan...
              Server Checker completed.
              Beginning status check for agent on localhost...
              Initializing Infrastructure Sync...
              Infrastructure Sync initialized.
              Running Infrastructure Sync...
              Infrastructure Sync completed.
              Initializing Execution Dispatcher...
              Checking for currently executing plans...
              Execution Dispatcher initialized.
              Running Execution Dispatcher...
              Getting executions to execute...
              No executions found.
              Execution Dispatcher completed.
              Running Execution Dispatcher...
              Getting executions to execute...
              No executions found.
              Execution Dispatcher completed.
              Running Execution Dispatcher...
              Getting executions to execute...
              No executions found.
              Execution Dispatcher completed.
              Running Execution Dispatcher...
              Getting executions to execute...
              No executions found.
              Execution Dispatcher completed.
              Running Execution Dispatcher...
              Getting executions to execute...
              No executions found.
              Execution Dispatcher completed.
              Stopping the Server Checker task runner...
              Server Checker task runner stopped.
              Stopping the Infrastructure Sync task runner...
              Infrastructure Sync task runner stopped.
              Stopping the Execution Dispatcher task runner...
              Execution Dispatcher task runner stopped.

              C:\Program Files\Hedgehog\Service>

              ( 2 ) Folder C:\ProgramData\Inedo does not exist, instead i have C:\ProgramData\HedgeHog and some directories within but no config files.

              ( 3 ) Database connection string I found out in App_appSettings.config file near the service .exe. It contains correct db connection string and database also was created during installation.

              So on 2016 and 2012 windows server I have the same issue: Web server can not be started with File Not Found error for InedoLib.dll :(

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                Ah... Web server is available on localhost:8628
                probably it's a Windows User issue, will check user for both services.

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  Ok,

                  ==> here is the reason: During installation was selected NETWORK SERVICE as a user for both services. I checked and added corresponding SQL user to SQL engine but it was not enough I guess. Probably it requires something else.

                  ==> Solution: Change users for both services to LocalSystem, All is working now, looks like.

                  Thank you for your attention. To Dev: check how system works under NETWORK SERVICE.

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    Hi Oleg,

                    Hedgehog is now installed using our new install center using a totally different process, and I believe this particular issue is already fixed, and I can confirm that in our environment network service installs seem to work correctly on Server 2016.

                    If you're still seeing this issue as of the Hedgehog v1.0.4 installer, let us know :)

                    1 Reply Last reply Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • 1 / 1
                    • First post
                      Last post
                    Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation