[{"data":1,"prerenderedAt":591},["ShallowReactive",2],{"article-azure-appservice-http-error-50030-ancm-in-process-start-failure":3},{"article":4,"tags":93,"previous":108,"next":414},{"id":5,"title":6,"author":7,"body":8,"createdAt":82,"description":83,"extension":84,"img":77,"meta":85,"navigation":86,"path":87,"seo":88,"stem":89,"tags":90,"updatedAt":82,"__hash__":92},"articles\u002Farticles\u002Fazure-appservice-http-error-50030-ancm-in-process-start-failure.md","Azure AppService HTTP Error 500.30 ANCM InProcess Start Failure","[object Object]",{"type":9,"value":10,"toc":78},"minimark",[11,15,18,21,24,27,34,40,43,45,58,63,74],[12,13,14],"p",{},"Again, up against the 500.30 –> really means that something is wrong (usually configuration, appsettings incorrect etc.) which prevents the application from starting up.",[12,16,17],{},"Todays', resolution…",[12,19,20],{},"- Launch Kudu from the Azure Portal (under Advanced Tools)",[12,22,23],{},"- Use Debug console – CMD",[12,25,26],{},"- Use command prompt DOS commands to navigate to \\site\\wwwroot",[12,28,29,30],{},"- Try starting the application via dotnet web.dll ",[31,32,33],"em",{},"(the name of your web application dll)",[12,35,36,39],{},[31,37,38],{},"- ","With any luck, the output will show log errors and with some thought you can decipher what configuration piece is missing (in this case, my connection string was incorrect and I was missing App_Data directory)",[41,42],"br",{},[41,44],{},[46,47,48,52,55],"ul",{},[49,50,51],"li",{},"The application failed to start",[49,53,54],{},"The application started but then stopped",[49,56,57],{},"The application started but threw an exception during startup",[59,60,62],"h4",{"id":61},"troubleshooting-steps","Troubleshooting steps:",[46,64,65,68,71],{},[49,66,67],{},"Check the system event log for error messages",[49,69,70],{},"Enable logging the application process' stdout messages",[49,72,73],{},"Attach a debugger to the application process and inspect",[75,76],"a",{"href":77},"\u002Farticles\u002Fimages\u002Fimage_637348425926534448.png",{"title":79,"searchDepth":80,"depth":80,"links":81},"",2,[],"2020-09-04T18:56:32.880Z","While hosting an application within Azure AppService, I was up against the dreaded 500.30 ANCM exception.  Following is an approach to help get to resolution.","md",{},true,"\u002Farticles\u002Fazure-appservice-http-error-50030-ancm-in-process-start-failure",{"title":6,"description":83},"articles\u002Fazure-appservice-http-error-50030-ancm-in-process-start-failure",[91],"azure","k2bCHrW85oXKlPnYGZmUFSD9tgg9OapWFupo2DLTSBs",[94],{"id":95,"title":96,"body":97,"description":101,"extension":84,"img":102,"meta":103,"name":91,"navigation":86,"path":104,"seo":105,"stem":106,"__hash__":107},"tags\u002Ftags\u002Fazure.md","Azure",{"type":9,"value":98,"toc":99},[],{"title":79,"searchDepth":80,"depth":80,"links":100},[],"Azure cloud platform is more than 200 products and cloud services designed to help you bring new solutions to life","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Fazure",{"description":101},"tags\u002Fazure","m01ax_ShM5MuWl7UByoMyql_zrDRu_4udP4MyD4fL-k",{"id":109,"title":110,"author":7,"body":111,"createdAt":405,"description":406,"extension":84,"img":407,"meta":408,"navigation":86,"path":409,"seo":410,"stem":411,"tags":412,"updatedAt":405,"__hash__":413},"articles\u002Farticles\u002Frename-sql-server-schema.md","Rename SQL Server Schema",{"type":9,"value":112,"toc":403},[113,116,119,399],[12,114,115],{},"Copying SQL Databases, renaming is not as easy as it could be.  Luckily the following script can make the effort much easier.  Give it a try.",[12,117,118],{},"After copying a SQL Server database I needed to create a new schema and transfer all tables and views and stored procedures\nfrom the old schema to the newly created schema.  Using the following script made this task much easier.",[120,121,125],"pre",{"className":122,"code":123,"language":124,"meta":79,"style":79},"language-sql shiki shiki-themes github-light github-dark","DECLARE @OldSchema AS varchar(255)\nDECLARE @NewSchema AS varchar(255)\n\nSET @OldSchema = 'dbo'\nSET @NewSchema = 'StackOverflow'\n\nDECLARE @sql AS varchar(MAX)\n\nDECLARE @Schema AS varchar(MAX)\nDECLARE @Obj AS varchar(MAX)\n\n-- First transfer Tables and Views\n\nDECLARE CU_OBJS CURSOR FOR\nSELECT TABLE_SCHEMA, TABLE_NAME\nFROM INFORMATION_SCHEMA.TABLES\nWHERE TABLE_SCHEMA = @OldSchema\n\nOPEN CU_OBJS\n\nFETCH NEXT FROM CU_OBJS\nINTO @Schema, @Obj\n\nWHILE @@FETCH_STATUS = 0\nBEGIN\nSELECT @sql = 'ALTER SCHEMA [' + @NewSchema + '] TRANSFER [' + @OldSchema + '].[' + @Obj + ']'\nPRINT @sql\n--  EXEC (@sql)\n\n    FETCH NEXT FROM CU_OBJS\n    INTO @Schema, @Obj\nEND\n\nCLOSE CU_OBJS\nDEALLOCATE CU_OBJS\n\n\n-- Now transfer Stored Procedures\n\nDECLARE CU_OBJS CURSOR FOR\nSELECT sys.schemas.name, sys.procedures.name\nFROM sys.procedures,sys.schemas\nWHERE sys.procedures.schema_id=sys.schemas.schema_id and sys.schemas.name = @OldSchema\n\nOPEN CU_OBJS\n\nFETCH NEXT FROM CU_OBJS\nINTO @Schema, @Obj\n","sql",[126,127,128,136,141,147,153,159,164,170,175,181,187,192,198,203,209,215,221,227,232,238,243,249,255,260,266,272,278,284,290,295,301,307,313,318,324,330,335,340,346,351,356,362,368,374,379,384,389,394],"code",{"__ignoreMap":79},[129,130,133],"span",{"class":131,"line":132},"line",1,[129,134,135],{},"DECLARE @OldSchema AS varchar(255)\n",[129,137,138],{"class":131,"line":80},[129,139,140],{},"DECLARE @NewSchema AS varchar(255)\n",[129,142,144],{"class":131,"line":143},3,[129,145,146],{"emptyLinePlaceholder":86},"\n",[129,148,150],{"class":131,"line":149},4,[129,151,152],{},"SET @OldSchema = 'dbo'\n",[129,154,156],{"class":131,"line":155},5,[129,157,158],{},"SET @NewSchema = 'StackOverflow'\n",[129,160,162],{"class":131,"line":161},6,[129,163,146],{"emptyLinePlaceholder":86},[129,165,167],{"class":131,"line":166},7,[129,168,169],{},"DECLARE @sql AS varchar(MAX)\n",[129,171,173],{"class":131,"line":172},8,[129,174,146],{"emptyLinePlaceholder":86},[129,176,178],{"class":131,"line":177},9,[129,179,180],{},"DECLARE @Schema AS varchar(MAX)\n",[129,182,184],{"class":131,"line":183},10,[129,185,186],{},"DECLARE @Obj AS varchar(MAX)\n",[129,188,190],{"class":131,"line":189},11,[129,191,146],{"emptyLinePlaceholder":86},[129,193,195],{"class":131,"line":194},12,[129,196,197],{},"-- First transfer Tables and Views\n",[129,199,201],{"class":131,"line":200},13,[129,202,146],{"emptyLinePlaceholder":86},[129,204,206],{"class":131,"line":205},14,[129,207,208],{},"DECLARE CU_OBJS CURSOR FOR\n",[129,210,212],{"class":131,"line":211},15,[129,213,214],{},"SELECT TABLE_SCHEMA, TABLE_NAME\n",[129,216,218],{"class":131,"line":217},16,[129,219,220],{},"FROM INFORMATION_SCHEMA.TABLES\n",[129,222,224],{"class":131,"line":223},17,[129,225,226],{},"WHERE TABLE_SCHEMA = @OldSchema\n",[129,228,230],{"class":131,"line":229},18,[129,231,146],{"emptyLinePlaceholder":86},[129,233,235],{"class":131,"line":234},19,[129,236,237],{},"OPEN CU_OBJS\n",[129,239,241],{"class":131,"line":240},20,[129,242,146],{"emptyLinePlaceholder":86},[129,244,246],{"class":131,"line":245},21,[129,247,248],{},"FETCH NEXT FROM CU_OBJS\n",[129,250,252],{"class":131,"line":251},22,[129,253,254],{},"INTO @Schema, @Obj\n",[129,256,258],{"class":131,"line":257},23,[129,259,146],{"emptyLinePlaceholder":86},[129,261,263],{"class":131,"line":262},24,[129,264,265],{},"WHILE @@FETCH_STATUS = 0\n",[129,267,269],{"class":131,"line":268},25,[129,270,271],{},"BEGIN\n",[129,273,275],{"class":131,"line":274},26,[129,276,277],{},"SELECT @sql = 'ALTER SCHEMA [' + @NewSchema + '] TRANSFER [' + @OldSchema + '].[' + @Obj + ']'\n",[129,279,281],{"class":131,"line":280},27,[129,282,283],{},"PRINT @sql\n",[129,285,287],{"class":131,"line":286},28,[129,288,289],{},"--  EXEC (@sql)\n",[129,291,293],{"class":131,"line":292},29,[129,294,146],{"emptyLinePlaceholder":86},[129,296,298],{"class":131,"line":297},30,[129,299,300],{},"    FETCH NEXT FROM CU_OBJS\n",[129,302,304],{"class":131,"line":303},31,[129,305,306],{},"    INTO @Schema, @Obj\n",[129,308,310],{"class":131,"line":309},32,[129,311,312],{},"END\n",[129,314,316],{"class":131,"line":315},33,[129,317,146],{"emptyLinePlaceholder":86},[129,319,321],{"class":131,"line":320},34,[129,322,323],{},"CLOSE CU_OBJS\n",[129,325,327],{"class":131,"line":326},35,[129,328,329],{},"DEALLOCATE CU_OBJS\n",[129,331,333],{"class":131,"line":332},36,[129,334,146],{"emptyLinePlaceholder":86},[129,336,338],{"class":131,"line":337},37,[129,339,146],{"emptyLinePlaceholder":86},[129,341,343],{"class":131,"line":342},38,[129,344,345],{},"-- Now transfer Stored Procedures\n",[129,347,349],{"class":131,"line":348},39,[129,350,146],{"emptyLinePlaceholder":86},[129,352,354],{"class":131,"line":353},40,[129,355,208],{},[129,357,359],{"class":131,"line":358},41,[129,360,361],{},"SELECT sys.schemas.name, sys.procedures.name\n",[129,363,365],{"class":131,"line":364},42,[129,366,367],{},"FROM sys.procedures,sys.schemas\n",[129,369,371],{"class":131,"line":370},43,[129,372,373],{},"WHERE sys.procedures.schema_id=sys.schemas.schema_id and sys.schemas.name = @OldSchema\n",[129,375,377],{"class":131,"line":376},44,[129,378,146],{"emptyLinePlaceholder":86},[129,380,382],{"class":131,"line":381},45,[129,383,237],{},[129,385,387],{"class":131,"line":386},46,[129,388,146],{"emptyLinePlaceholder":86},[129,390,392],{"class":131,"line":391},47,[129,393,248],{},[129,395,397],{"class":131,"line":396},48,[129,398,254],{},[400,401,402],"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":79,"searchDepth":80,"depth":80,"links":404},[],"2020-10-13T13:50:59.878Z","Copying SQL Databases, renaming is not as easy as it could be.  Luckily the following script can make the effort much easier.  Give it a try. After copying a SQL Server database I needed to create a new schema and transfer all tables and views and stored procedures from the old schema to the newly created schema.  Using the following script made this task much easier.","\u002Farticles\u002Fimages\u002Fsingleton_thumb.png",{},"\u002Farticles\u002Frename-sql-server-schema",{"title":110,"description":406},"articles\u002Frename-sql-server-schema",[124],"mvDlpJpU00m0MVu_Frr5AdZnQYdcoEq59ox8SmjvJgs",{"id":415,"title":416,"author":7,"body":417,"createdAt":581,"description":582,"extension":84,"img":583,"meta":584,"navigation":86,"path":585,"seo":586,"stem":587,"tags":588,"updatedAt":581,"__hash__":590},"articles\u002Farticles\u002Fhot-module-reload-hmr-issues.md","Hot Module Reload (HMR) Issues",{"type":9,"value":418,"toc":579},[419,422,430,441,449,452,455,460,467,470,576],[12,420,421],{},"Using latest vue.js bit and vue-cli to create a project, I immediately came up against HMR not reloading after making changes to .vue files.",[12,423,424,425,429],{},"What is HMR\n\"",[426,427,428],"strong",{},"Hot Reload","\" is not simply reloading the page when you edit a file. With hot reload enabled, when you edit a *. vue file,\nall instances of that component will be swapped in without reloading the page. It even preserves the current state of your app and these swapped\ncomponents!",[12,431,432,433,436,440],{},"I started my project npm run serve, opened my browser ",[75,434],{"href":435},"http:\u002F\u002Flocalhost:8080",[75,437,435],{"href":435,"rel":438},[439],"nofollow"," and navigated around my new app.\nGreat. Within my IDE I modified any vue file, I could see that vue-cli-server (with it’s built in web server) identified that\na file had changed and I could see webpack rebuilding my ts\u002Fjs files. Great. I looked at the browser and my simple html change was not reflected.\nI could see errors in the chrome dev tools network tab like following.",[442,443,444,445,448],"blockquote",{},"\n[WDS] Disconnected net:: ERR_CONNECTION_TIMED_OUT ",[75,446,447],{"title":447,"href":447},"http:\u002F\u002F192.168.1.102:8080\u002Fsockjs-node\u002Finfo?t=1598645595925"," \n",[12,450,451],{},"###Solution\nThere are a number of articles regarding setting NODE_ENV=development,\nas well as articles discussing the vue.config.js file. The solution for me was modifying the package.json script that is\nused by npm to start the project from",[12,453,454],{},"\"serve\": \"vue-cli-service serve\",",[12,456,457],{},[426,458,459],{},"To",[12,461,462,463,466],{},"\"serve2\": \"vue-cli-service serve ",[426,464,465],{},"--host localhost","\",",[12,468,469],{},"I also tried a number of options within the vue.config.js but was able to remove once I identified the solution (above).",[120,471,475],{"className":472,"code":473,"language":474,"meta":79,"style":79},"language-js shiki shiki-themes github-light github-dark","\u002F\u002F vue.config.js \nmodule.exports = {\n    devServer: \n          {  \u002F\u002Fhost:'localhost'  \n              \u002F\u002F useLocalIp: false,  \n            \u002F\u002F proxy: 'http:\u002F\u002Flocalhost:8080',  \n            \u002F\u002F public: '172.23.3.180:8080',  \n            \u002F\u002F watchOptions: {  \n            \u002F\u002F poll: true  \n            \u002F\u002F }  \n            }, configureWebpack: {  \n                      plugins: [\n                      \u002F\u002Fnew MyAwesomeWebpackPlugin()  \n                      ] \n                  }\n            }\n","js",[126,476,477,483,503,508,516,521,526,531,536,541,546,551,556,561,566,571],{"__ignoreMap":79},[129,478,479],{"class":131,"line":132},[129,480,482],{"class":481},"sJ8bj","\u002F\u002F vue.config.js \n",[129,484,485,489,493,496,500],{"class":131,"line":80},[129,486,488],{"class":487},"sj4cs","module",[129,490,492],{"class":491},"sVt8B",".",[129,494,495],{"class":487},"exports",[129,497,499],{"class":498},"szBVR"," =",[129,501,502],{"class":491}," {\n",[129,504,505],{"class":131,"line":143},[129,506,507],{"class":491},"    devServer: \n",[129,509,510,513],{"class":131,"line":149},[129,511,512],{"class":491},"          {  ",[129,514,515],{"class":481},"\u002F\u002Fhost:'localhost'  \n",[129,517,518],{"class":131,"line":155},[129,519,520],{"class":481},"              \u002F\u002F useLocalIp: false,  \n",[129,522,523],{"class":131,"line":161},[129,524,525],{"class":481},"            \u002F\u002F proxy: 'http:\u002F\u002Flocalhost:8080',  \n",[129,527,528],{"class":131,"line":166},[129,529,530],{"class":481},"            \u002F\u002F public: '172.23.3.180:8080',  \n",[129,532,533],{"class":131,"line":172},[129,534,535],{"class":481},"            \u002F\u002F watchOptions: {  \n",[129,537,538],{"class":131,"line":177},[129,539,540],{"class":481},"            \u002F\u002F poll: true  \n",[129,542,543],{"class":131,"line":183},[129,544,545],{"class":481},"            \u002F\u002F }  \n",[129,547,548],{"class":131,"line":189},[129,549,550],{"class":491},"            }, configureWebpack: {  \n",[129,552,553],{"class":131,"line":194},[129,554,555],{"class":491},"                      plugins: [\n",[129,557,558],{"class":131,"line":200},[129,559,560],{"class":481},"                      \u002F\u002Fnew MyAwesomeWebpackPlugin()  \n",[129,562,563],{"class":131,"line":205},[129,564,565],{"class":491},"                      ] \n",[129,567,568],{"class":131,"line":211},[129,569,570],{"class":491},"                  }\n",[129,572,573],{"class":131,"line":217},[129,574,575],{"class":491},"            }\n",[400,577,578],{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}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":79,"searchDepth":80,"depth":80,"links":580},[],"2020-08-28T20:50:38.782Z","HMR issues after creating new Vue app via vue-cli.  Hot Module Replacement (HMR) exchanges, adds, or removes modules while an aplication is running, without a full reload.  Ultimately, this significantly improves development efforts.","\u002Farticles\u002Fimages\u002Fwebpack.png",{},"\u002Farticles\u002Fhot-module-reload-hmr-issues",{"title":416,"description":582},"articles\u002Fhot-module-reload-hmr-issues",[589],"vuejs","ji1AxRVh3i7FKPFuNIP_WlsYYW7t_5wc7KzZ105NyEU",1781574762984]