{"id":375,"date":"2018-08-19T21:49:40","date_gmt":"2018-08-20T02:49:40","guid":{"rendered":"http:\/\/zewwy.ca\/?p=375"},"modified":"2018-09-21T18:29:47","modified_gmt":"2018-09-21T23:29:47","slug":"app-pool-crash-on-first-load","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2018\/08\/19\/app-pool-crash-on-first-load\/","title":{"rendered":"App Pool Crash on First Load"},"content":{"rendered":"<p>I&#8217;ll keep this on brief; for real this time.<\/p>\n<p>So you created  a MSA\/gMSA for your Dev to use on ASP.NET.<\/p>\n<p>You granted it Logon as a service rights, as well as batch logon right via group nesting in IIS_USRS group. You granted it all proper permissions on the physical path that IIS is using for the Site\/App Pool, as well as any Database permissions if applicable. Yet every time you attempt to navigate the site you get a &#8220;503; Service unavailable&#8221; and when you go to check the app pool you find it is down. Right click it, select start and it comes right back up without issue, wash, rinse, repeat.<\/p>\n<p>Turns out this happens cause you didn&#8217;t fully qualify the MSA\/gMSA under the App Pool&#8217;s Identity settings. Even though you enter &#8220;gMSAAcct$&#8221; under the identity field and leave password fields blank, and IIS accepts this&#8230; without fault, what I believe is happening here is even though the check IIS has in place, does validate this to a be a real domain account, or service account, it doesn&#8217;t prepend or append (depending on which user construct you want to refer to) where ever it stores this user account. This is only a guess.<\/p>\n<p>So you have to fully qualify it; &#8220;Domain\\gMSAAcct$&#8221; You&#8217;ll notice it (IIS) will accept it just like it did before. Then watch in amazement as the page loads and doesn&#8217;t crash when you attempt to load it in a browser&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ll keep this on brief; for real this time. So you created a MSA\/gMSA for your Dev to use on ASP.NET. You granted it Logon as a service rights, as well as batch logon right via group nesting in IIS_USRS group. You granted it all proper permissions on the physical path that IIS is using &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2018\/08\/19\/app-pool-crash-on-first-load\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;App Pool Crash on First Load&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[8],"tags":[77,78,75],"class_list":["post-375","post","type-post","status-publish","format-standard","hentry","category-server-administration","tag-77","tag-app-pool-crash","tag-asp-net"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=375"}],"version-history":[{"count":1,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/375\/revisions"}],"predecessor-version":[{"id":376,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/375\/revisions\/376"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}