[{"data":1,"prerenderedAt":402},["ShallowReactive",2],{"article-ancm-in-process-start-failure-shenanigans":3},{"article":4,"tags":164,"previous":205,"next":258},{"id":5,"title":6,"author":7,"body":8,"createdAt":151,"description":152,"extension":153,"img":87,"meta":154,"navigation":155,"path":156,"seo":157,"stem":158,"tags":159,"updatedAt":151,"__hash__":163},"articles\u002Farticles\u002Fancm-in-process-start-failure-shenanigans.md","ANCM InProcess Start Failure Shenanigans",null,{"type":9,"value":10,"toc":149},"minimark",[11,20,45,53,63,66,71,73,90,93,129,132,135,145],[12,13,14,15,19],"p",{},"If you are using .NET Core and have not received the following error\u002Fexception message I will send you $1.00.  Let me know!  ",[16,17,18],"b",{},"HTTP Error 500.30 - ANCM In-Process Start Failure","\nCommon solutions to this issue:",[21,22,23,27,30,36,39,42],"ul",{},[24,25,26],"li",{},"The application failed to start",[24,28,29],{},"The application started but then stopped",[24,31,32,33],{},"The application started but threw an exception during startup   ",[16,34,35],{},"Troubleshooting steps:",[24,37,38],{},"Check the system event log for error messages",[24,40,41],{},"Enable logging the application process' stdout messages",[24,43,44],{},"Attach a debugger to the application process and inspect",[12,46,47,48,52],{},"I have ran into this plenty of times already.  There are many reasons but at it’s root dotnet is not able to start up for one of many reasons.  As I run into my issues I will update this post with them.  So far, with ASP.NET Core 3.1.1  1. The IIS Application Pool – Advanced Settings “Enable 32-Bit Applications” – ",[49,50,51],"strong",{},"setting to False fixed my issue ","(this site was deployed to an on-premise IIS Server)  2. Azure installation – It was more difficult to identify the source of the issue as I was not working directly with IIS (Internet Information Server).  I first tried logging via App Service Logs,  and view the streaming logs which led me to error message similar to..",[12,54,55,62],{},[56,57,58,59],"em",{},"”IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.\u003C\u002Fli>     \u003Cli>IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.”",[60,61],"br",{},"\nI then worked towards running the web application from command line to hope it gave me more information.\ni.e. Diagnostic Console – Debug Console then running the web assembly via “dotnet web.dll” (in this case my application was called Web). ",[12,64,65],{},"This gave me a much better startup.cs issue. I had good sense to recognize the issue\u002Fexception was within my startup class. \nI had my first real clue from the following message…",[12,67,68],{},[56,69,70],{},"”Unhandled exception. System.IO.DirectoryNotFoundException: D:\\home\\site\\wwwroot\\Scripts\\ at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters) at\nMicrosoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root) at Web.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider serviceProvider, LinkGenerator lin”",[56,72],{},[12,74,75],{},[56,76,77],{},[78,79,81],"a",{"href":80},"\u002Farticles\u002Fimages\u002Fimage_637160171567190817.png",[82,83],"img",{"title":84,"style":85,"border":86,"alt":84,"src":87,"width":88,"height":89},"image","border: 0px currentcolor; border-image: none; display: inline; background-image: none;",0,"\u002Farticles\u002Fimages\u002Fimage_thumb_637160171568626232.png",722,343,[12,91,92],{},"I had used in prior 2.1 Core solution a scripts static directly which did not exist with this 3.1 solution.",[94,95,100],"pre",{"className":96,"code":97,"language":98,"meta":99,"style":99},"language-cs shiki shiki-themes github-light github-dark","app.UseStaticFiles(new StaticFileOptions   {    \nFileProvider = new PhysicalFileProvider\n(Path.Combine(Directory.GetCurrentDirectory(), \"Scripts\")),\nRequestPath = \"\u002FScripts\" });\n","cs","",[101,102,103,111,117,123],"code",{"__ignoreMap":99},[104,105,108],"span",{"class":106,"line":107},"line",1,[104,109,110],{},"app.UseStaticFiles(new StaticFileOptions   {    \n",[104,112,114],{"class":106,"line":113},2,[104,115,116],{},"FileProvider = new PhysicalFileProvider\n",[104,118,120],{"class":106,"line":119},3,[104,121,122],{},"(Path.Combine(Directory.GetCurrentDirectory(), \"Scripts\")),\n",[104,124,126],{"class":106,"line":125},4,[104,127,128],{},"RequestPath = \"\u002FScripts\" });\n",[12,130,131],{},"Once I removed this reference to \u002FScripts things worked and I was up and running. ",[12,133,134],{},"So, just note that this ANCM error is pretty good indication that something is wrong with Startup.cs class and so you really will be looking for logs for some indication as to what.",[12,136,137],{},[78,138,140],{"href":139},"\u002Farticles\u002Fimages\u002Fimage_637160171569717383.png",[82,141],{"title":84,"style":85,"border":86,"alt":84,"src":142,"width":143,"height":144},"\u002Farticles\u002Fimages\u002Fimage_thumb_637160171570874206.png",534,256,[146,147,148],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":99,"searchDepth":113,"depth":113,"links":150},[],"2020-01-30T21:39:17.213Z","Common issue with .net core solutions when you deploy to a server and get ANCM In-Process failures","md",{},true,"\u002Farticles\u002Fancm-in-process-start-failure-shenanigans",{"title":6,"description":152},"articles\u002Fancm-in-process-start-failure-shenanigans",[160,161,162],"azure","aspnet","netcore","uO_1neDf1NscBqxD75q-Jvy9EuQmMV849La98mkWnks",[165,179,192],{"id":166,"title":167,"body":168,"description":172,"extension":153,"img":173,"meta":174,"name":161,"navigation":155,"path":175,"seo":176,"stem":177,"__hash__":178},"tags\u002Ftags\u002Faspnet.md","Aspnet",{"type":9,"value":169,"toc":170},[],{"title":99,"searchDepth":113,"depth":113,"links":171},[],"ASP.NET is an open source web framework, created by Microsoft, for building modern web apps and services with .NET.","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Faspnet",{"description":172},"tags\u002Faspnet","SlUGLdZWQy8mYOWC6OetgJkwVulWNURoVHeuESIDleI",{"id":180,"title":181,"body":182,"description":186,"extension":153,"img":173,"meta":187,"name":160,"navigation":155,"path":188,"seo":189,"stem":190,"__hash__":191},"tags\u002Ftags\u002Fazure.md","Azure",{"type":9,"value":183,"toc":184},[],{"title":99,"searchDepth":113,"depth":113,"links":185},[],"Azure cloud platform is more than 200 products and cloud services designed to help you bring new solutions to life",{},"\u002Ftags\u002Fazure",{"description":186},"tags\u002Fazure","m01ax_ShM5MuWl7UByoMyql_zrDRu_4udP4MyD4fL-k",{"id":193,"title":194,"body":195,"description":199,"extension":153,"img":173,"meta":200,"name":162,"navigation":155,"path":201,"seo":202,"stem":203,"__hash__":204},"tags\u002Ftags\u002Fnetcore.md","Netcore",{"type":9,"value":196,"toc":197},[],{"title":99,"searchDepth":113,"depth":113,"links":198},[],".NET Core is a new version of .NET Framework, which is a free, open-source, general-purpose development platform maintained by Microsoft. It is a cross-platform framework that runs on Windows, macOS, and Linux operating systems.",{},"\u002Ftags\u002Fnetcore",{"description":199},"tags\u002Fnetcore","D5BWCPpKVXJTUKU0TRuD3sWQ9rXtqETGkxzHAK__g5w",{"id":206,"title":207,"author":7,"body":208,"createdAt":248,"description":249,"extension":153,"img":221,"meta":250,"navigation":155,"path":251,"seo":252,"stem":253,"tags":254,"updatedAt":248,"__hash__":257},"articles\u002Farticles\u002Fyour-connection-is-not-private-google-chrome.md","Your connection is not private–Google Chrome",{"type":9,"value":209,"toc":246},[210,213,224,230,233,243],[12,211,212],{},"Seen1 this \"Your connection is not private” while working with https on your localhost (workstation).",[12,214,215],{},[78,216,218],{"href":217},"\u002Farticles\u002Fimages\u002Fimage_637206600346445330.png",[82,219],{"style":220,"title":84,"src":221,"alt":84,"width":222,"height":223,"border":86},"border: 0px currentcolor; display: inline; background-image: none;","\u002Farticles\u002Fimages\u002Fimage_thumb_637206600347776935.png",497,433,[12,225,226,227,229],{},"In Chrome, put in chrome:\u002F\u002Fflags\u002F#allow-insecure-localhost in the address bar.",[60,228],{},"\nEnable the option that says \"Allow invalid certificates for resources loaded from localhost\".",[12,231,232],{},"Restart Chrome, and it should allow the site.",[12,234,235],{},[78,236,238],{"href":237},"\u002Farticles\u002Fimages\u002Fimage_637206600348897864.png",[82,239],{"style":220,"title":84,"src":240,"alt":84,"width":241,"height":242,"border":86},"\u002Farticles\u002Fimages\u002Fimage_thumb_637206600350111622.png",499,79,[12,244,245],{},"Worked like a charm!",{"title":99,"searchDepth":113,"depth":113,"links":247},[],"2020-03-24T15:20:35.123Z","Working local, working with https? Got your desktop environment working well, however while using Chrome and browsing you get this \"not private\" error.  You can continue working\u002Fbrowsing if you click through advanced and proceed.  This is great but if you are reading this my bet you are looking for a better solution.  Read on!",{},"\u002Farticles\u002Fyour-connection-is-not-private-google-chrome",{"title":207,"description":249},"articles\u002Fyour-connection-is-not-private-google-chrome",[255,256,162],"angular","vuejs","gHd-_VYIEkDSYbxkw6rXref1-CvJ-95vU8g6QOgK9qc",{"id":259,"title":260,"author":7,"body":261,"createdAt":390,"description":391,"extension":153,"img":7,"meta":392,"navigation":155,"path":393,"seo":394,"stem":395,"tags":396,"updatedAt":390,"__hash__":401},"articles\u002Farticles\u002Fsource-control-options-git-and-team-foundation-server-tfs.md","Source Control Options GIT and Team Foundation Server (TFS)",{"type":9,"value":262,"toc":386},[263,268,282,285,308,311,318,328,343,347,354,357,366,375,378],[264,265,267],"h3",{"id":266},"git-is-a-distributed-version-control-system","Git is a Distributed Version Control System",[21,269,270,276],{},[24,271,272,275],{},[49,273,274],{},"Each developer"," has the entire repository, including the entire change history on his\u002Fher local machine",[24,277,278,281],{},[49,279,280],{},"The developer"," can see changeset history offline or commit (check-in) changes offline to his local repository",[12,283,284],{},"Since the entire repository is local, we do everything locally. This includes, but not limited to:",[21,286,287,290,293,296,299,302,305],{},[24,288,289],{},"Committing changes (Check-in)",[24,291,292],{},"Viewing commit history",[24,294,295],{},"Creating a new branch",[24,297,298],{},"Merging branches",[24,300,301],{},"Moving to a different branch",[24,303,304],{},"Deleting branches",[24,306,307],{},"Reverting older commits",[12,309,310],{},"Yes we do have to Check-in or 'Push' our changes to the remote repository.",[12,312,313,314,317],{},"'Check-in' within Git is divided into ",[49,315,316],{},"2 parts",":",[12,319,320,323,324,327],{},[49,321,322],{},"Commit"," and **Push\n",[49,325,326],{},"Developers can now commit locally","whatever they want – Ugly code, comments, and work in progress. The other developers won’t get those changes as the commit is performed entirely local on their respective PC. When the code is ready for the team, they can Push the code changes to the remote repository.  This workflow gives the developer addition management of changes and when\u002Fhow things are pushed into the central repository for team consumption.",[12,329,330,331,334,335,338,339,342],{},"The ",[49,332,333],{},"Staging","concept …. this is like ",[49,336,337],{},"Included","\u002F",[49,340,341],{},"Excluded","changes in TFS. Only staged files will be committed. Again, why? (well say locally modified configuration files can stay out of source control)",[264,344,346],{"id":345},"branches-and-merges","Branches and Merges",[12,348,349,350,353],{},"In TFS\u002FTFSVC, ",[49,351,352],{},"Branch","will create a new directory with a copy of all files and directories of the parent Branch. For a developer to work on that new branch, they will have to copy that directory to his hard disk, essentially having another folder with the source code.",[12,355,356],{},"With Git, each branch is not a copy of the files from the parent branch. Instead, it’s simply a pointer to the Commit in the parent Branch from where we created our new branch.  With Git when working on a different branch, we tell Git “Move to another branch” (Checkout command) and Git will change our working area to match the desired branch. Again, there is a performance benefit as this entire action is performed locally.  Git already contains all the branches on the local machine.",[12,358,359,362,363,365],{},[49,360,361],{},"Merging"," is a lightweight operation. We can merge any branch to any branch. We can merge the entire difference or a specific Commit. Git will find the “Base” Commit where the branches split and allow us to resolve conflicts (This is the same as in TFS)",[60,364],{},"\nA good practice with Git is to create a new branch to work on a big feature. Eventually, merging that branch to the master branch and discarding the new branch entirely.",[12,367,368],{},[78,369,374],{"href":370,"target":371,"rel":372},"https:\u002F\u002Fgit-scm.com\u002Fbook\u002Fen\u002Fv2\u002FGit-Branching-Branches-in-a-Nutshell","_blank",[373],"noopener","Reference\u002FTutorial on GIT branching",[12,376,377],{},"TFS\u002FTFVC is Centralized Version Control System",[21,379,380,383],{},[24,381,382],{},"the developer has a copy of the repository file system on his machine",[24,384,385],{},"offline actions like commits (check-ins)  and seeing history are impossible since the local repository can’t save “changes”",{"title":99,"searchDepth":113,"depth":113,"links":387},[388,389],{"id":266,"depth":119,"text":267},{"id":345,"depth":119,"text":346},"2020-01-21","Git has been gaining momentum lately and continues to be the path forward for all organizations (including Microsoft) as the source control of record.  What are the differences, benefits...read more...",{},"\u002Farticles\u002Fsource-control-options-git-and-team-foundation-server-tfs",{"title":260,"description":391},"articles\u002Fsource-control-options-git-and-team-foundation-server-tfs",[397,398,399,400],"sourcecontrol","teamfoundationserver","visualstudio","git","z27ZBLeINXv4DaOx5aV-Ihtuz5pCxHT3joVG2EXl5Z0",1781574761371]