Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Cryptic Error Time: Favorite Part of Your Day

Cryptic Error Time: Favorite Part of Your Day

Scheduled Pinned Locked Moved The Weird and The Wonderful
databaseasp-netsql-serversysadmincsharp
6 Posts 4 Posters 22 Views 1 Watching
  • 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.
  • raddevusR Online
    raddevusR Online
    raddevus
    wrote on last edited by
    #1

    I'm using SQLLocalDB (MS SQL Express) for a test database. Had to rebuild services and db on new VM Server. All good, but then I got this error when my ASP.NET MVC Application attempted to connect.

    returned to my web app...

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Error occurred during LocalDB instance startup: SQL Server process failed to start. )

    But, that is a lie. The instance is actually started as shown by command-line sqllocaldb info:

    c:/>sqllocaldb info mssqllocaldb
    Name: mssqllocaldb
    Version: 12.0.2000.8
    Shared name:
    Owner: ZSYSTEM\USER-name
    Auto-create: Yes
    State: Running
    Last start time: 4/2/2020 3:24:46 PM
    Instance pipe name: np:\\.\pipe\LOCALDB#34729310\tsql\query

    IIS App Pool I checked IIS (InetMgr) and looked at the Advanced Settings on the App Pool to verify that it is running as me. It was and then I remembered that esoteric setting that I needed to change... (Load User Profile: set to True -- defaults to False) But, check out the text that InetMgr provides to explain the setting. Really bad tech writing which is repetitive and not very helpful. It's like "what does Load User Profile do?" "Well, err...umm... it loads the user profile." I originally figured this out by trying every option, one at a time until I found the one that worked. Snapshot of APP Pool Advanced Settings[^] *And surely someone will say something about security and that I should be running as ApplicationPoolIdentity by default and all that. This is for development tests that is all.

    Greg UtasG Richard DeemingR 2 Replies Last reply
    0
    • raddevusR raddevus

      I'm using SQLLocalDB (MS SQL Express) for a test database. Had to rebuild services and db on new VM Server. All good, but then I got this error when my ASP.NET MVC Application attempted to connect.

      returned to my web app...

      A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Error occurred during LocalDB instance startup: SQL Server process failed to start. )

      But, that is a lie. The instance is actually started as shown by command-line sqllocaldb info:

      c:/>sqllocaldb info mssqllocaldb
      Name: mssqllocaldb
      Version: 12.0.2000.8
      Shared name:
      Owner: ZSYSTEM\USER-name
      Auto-create: Yes
      State: Running
      Last start time: 4/2/2020 3:24:46 PM
      Instance pipe name: np:\\.\pipe\LOCALDB#34729310\tsql\query

      IIS App Pool I checked IIS (InetMgr) and looked at the Advanced Settings on the App Pool to verify that it is running as me. It was and then I remembered that esoteric setting that I needed to change... (Load User Profile: set to True -- defaults to False) But, check out the text that InetMgr provides to explain the setting. Really bad tech writing which is repetitive and not very helpful. It's like "what does Load User Profile do?" "Well, err...umm... it loads the user profile." I originally figured this out by trying every option, one at a time until I found the one that worked. Snapshot of APP Pool Advanced Settings[^] *And surely someone will say something about security and that I should be running as ApplicationPoolIdentity by default and all that. This is for development tests that is all.

      Greg UtasG Offline
      Greg UtasG Offline
      Greg Utas
      wrote on last edited by
      #2

      :laugh: That has got to be the worst tech writing I've ever read. They really took the speech-writing advice to heart:

      Tell 'em what you're gonna tell 'em, tell 'em, and tell 'em what ya told 'em.

      Robust Services Core | Software Techniques for Lemmings | Articles

      <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
      <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

      raddevusR S 2 Replies Last reply
      0
      • Greg UtasG Greg Utas

        :laugh: That has got to be the worst tech writing I've ever read. They really took the speech-writing advice to heart:

        Tell 'em what you're gonna tell 'em, tell 'em, and tell 'em what ya told 'em.

        Robust Services Core | Software Techniques for Lemmings | Articles

        raddevusR Online
        raddevusR Online
        raddevus
        wrote on last edited by
        #3

        Greg Utas wrote:

        Tell 'em what you're gonna tell 'em, tell 'em, and tell 'em what ya told 'em.

        :laugh: Yeah, just keep on driving the point! :-D No need to explain things though. :rolleyes:

        1 Reply Last reply
        0
        • raddevusR raddevus

          I'm using SQLLocalDB (MS SQL Express) for a test database. Had to rebuild services and db on new VM Server. All good, but then I got this error when my ASP.NET MVC Application attempted to connect.

          returned to my web app...

          A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Error occurred during LocalDB instance startup: SQL Server process failed to start. )

          But, that is a lie. The instance is actually started as shown by command-line sqllocaldb info:

          c:/>sqllocaldb info mssqllocaldb
          Name: mssqllocaldb
          Version: 12.0.2000.8
          Shared name:
          Owner: ZSYSTEM\USER-name
          Auto-create: Yes
          State: Running
          Last start time: 4/2/2020 3:24:46 PM
          Instance pipe name: np:\\.\pipe\LOCALDB#34729310\tsql\query

          IIS App Pool I checked IIS (InetMgr) and looked at the Advanced Settings on the App Pool to verify that it is running as me. It was and then I remembered that esoteric setting that I needed to change... (Load User Profile: set to True -- defaults to False) But, check out the text that InetMgr provides to explain the setting. Really bad tech writing which is repetitive and not very helpful. It's like "what does Load User Profile do?" "Well, err...umm... it loads the user profile." I originally figured this out by trying every option, one at a time until I found the one that worked. Snapshot of APP Pool Advanced Settings[^] *And surely someone will say something about security and that I should be running as ApplicationPoolIdentity by default and all that. This is for development tests that is all.

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          LocalDB stores all instance data in a local AppData folder, which is why it needs the profile to be loaded. You might also need to enable setProfileEnvironment in some cases, as described in this archived blog post: Using LocalDB with Full IIS, Part 1: User Profile | Microsoft Docs[^] which links to this no-longer-available KB article: Windows 7 SP1 causes IntelliTrace Collection to fail on IIS[^] (Is anyone else fed up with Microsoft breaking all existing links to their content, and not bothering to redirect to the "archived" version?)


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          raddevusR 1 Reply Last reply
          0
          • Richard DeemingR Richard Deeming

            LocalDB stores all instance data in a local AppData folder, which is why it needs the profile to be loaded. You might also need to enable setProfileEnvironment in some cases, as described in this archived blog post: Using LocalDB with Full IIS, Part 1: User Profile | Microsoft Docs[^] which links to this no-longer-available KB article: Windows 7 SP1 causes IntelliTrace Collection to fail on IIS[^] (Is anyone else fed up with Microsoft breaking all existing links to their content, and not bothering to redirect to the "archived" version?)


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            raddevusR Online
            raddevusR Online
            raddevus
            wrote on last edited by
            #5

            Thanks for the additional info. I had also found this somewhat cryptic text which kind of explains this item:

            from Application Pool Identities | Microsoft Docs[^]

            User Profile IIS doesn't load the Windows user profile, but certain applications might take advantage of it anyway to store temporary data. SQL Express is an example of an application that does this. However, a user profile has to be created to store temporary data in either the profile directory or in the registry hive. The user profile for the Network Service account was created by the system and was always available. However, with the switch to unique Application Pool identities, no user profile is created by the system. Only the standard application pools (DefaultAppPool and Classic .NET AppPool) have user profiles on disk. No user profile is created if the Administrator creates a new application pool. However, if you want, you can configure IIS application pools to load the user profile by setting the LoadUserProfile attribute to "true".

            1 Reply Last reply
            0
            • Greg UtasG Greg Utas

              :laugh: That has got to be the worst tech writing I've ever read. They really took the speech-writing advice to heart:

              Tell 'em what you're gonna tell 'em, tell 'em, and tell 'em what ya told 'em.

              Robust Services Core | Software Techniques for Lemmings | Articles

              S Offline
              S Offline
              Slow Eddie
              wrote on last edited by
              #6

              When was Microsoft tech writing EVER known for anything but Horrible tech writing? :mad:

              Old codger

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups