[{"data":1,"prerenderedAt":286},["ShallowReactive",2],{"article-diagnosing-404-errors-on-iis-7-and-asp-net-mvc":3},{"article":4,"tags":93,"previous":108,"next":186},{"id":5,"title":6,"author":7,"body":8,"createdAt":82,"description":83,"extension":84,"img":83,"meta":85,"navigation":86,"path":87,"seo":88,"stem":89,"tags":90,"updatedAt":82,"__hash__":92},"articles\u002Farticles\u002Fdiagnosing-404-errors-on-iis-7-and-asp-net-mvc.md","Diagnosing 404 errors on IIS 7 and ASP.NET MVC","[object Object]",{"type":9,"value":10,"toc":78},"minimark",[11,43,49,54,59,66,74],[12,13,14,15,19,20,23,24,27,28,30,31,35,36,39,40,42],"p",{},"Are you running in IIS7 ",[16,17,18],"strong",{},"integrated mode","?",[21,22],"br",{},"\nClassic mode of IIS7 does ",[16,25,26],{},"not"," automatically map extensionless URLs to ASP.NET (much like IIS6).",[21,29],{},"\nAlso make sure your ",[32,33,34],"code",{},"Web.config"," ",[32,37,38],{},"\u003Csystem.webServer>"," tag is configured correctly.",[21,41],{},"\ni.e.",[44,45,46],"pre",{},[32,47,48],{},"\u003Csystem.webServer>\n    \u003Cvalidation validateIntegratedModeConfiguration=\"false\"\u002F>\n    \u003Cmodules runAllManagedModulesForAllRequests=\"true\"\u002F>\n\u003C\u002Fsystem.webServer>",[44,50,51,53],{},[32,52],{}," ",[44,55,56],{},[32,57,58],{},"On my workstation windows 7, 64 bit I had set my app pool to classic and \nadded a \"Wildcard Script Map\" \nto C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_isapi.dll (32bit dll). \nThe end result was my \nweb.confi webServer section looked like",[44,60,61,63],{},[32,62],{},[32,64,65],{},"  \u003Csystem.webServer>\n    \u003Cvalidation validateIntegratedModeConfiguration=\"false\" \u002F>\n    \u003Cmodules runAllManagedModulesForAllRequests=\"true\" \u002F>\n        \u003Chandlers>\n            \u003Cadd name=\"_wildcard 32\" path=\"*\" verb=\"*\" modules=\"IsapiModule\" \n scriptProcessor=\"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_isapi.dll\" \n resourceType=\"Unspecified\" requireAccess=\"None\" \n preCondition=\"classicMode,runtimeVersionv4.0,bitness32\" \u002F>\n        \u003C\u002Fhandlers>\n  \u003C\u002Fsystem.webServer>\n\n\n",[44,67,69],{"style":68},"font-family: Consolas; background: white; color: black; font-size: 13px;",[70,71,73],"span",{"style":72},"color: blue;","  \n",[44,75,76,53],{},[32,77],{},{"title":79,"searchDepth":80,"depth":80,"links":81},"",2,[],"2015-04-20T08:07:13.5000000-04:00",null,"md",{},true,"\u002Farticles\u002Fdiagnosing-404-errors-on-iis-7-and-asp-net-mvc",{"title":6,"description":83},"articles\u002Fdiagnosing-404-errors-on-iis-7-and-asp-net-mvc",[91],"aspnet","0t4kM0oaMXwUEwZbS3PO_145nI_leMJKlGcHa5tKNIQ",[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\u002Faspnet.md","Aspnet",{"type":9,"value":98,"toc":99},[],{"title":79,"searchDepth":80,"depth":80,"links":100},[],"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":101},"tags\u002Faspnet","SlUGLdZWQy8mYOWC6OetgJkwVulWNURoVHeuESIDleI",{"id":109,"title":110,"author":7,"body":111,"createdAt":177,"description":178,"extension":84,"img":170,"meta":179,"navigation":86,"path":180,"seo":181,"stem":182,"tags":183,"updatedAt":177,"__hash__":185},"articles\u002Farticles\u002Fjson-know-more.md","Json–know more",{"type":9,"value":112,"toc":172},[113,130,135,139,144,147,151,154,167],[12,114,115,116,118,121,122,124,125,127,129],{},"{“People”:{",[21,117],{},[70,119,120],{},"\n{“name”:”frank”, “age”:”21”},\n{“name”:”joe”,”age”:44”}\n",",",[21,123],{},"\n“Markeing”:",[70,126,120],{},[21,128],{},"\n} }",[131,132,134],"h4",{"id":133},"squiggles-squares-colons-and-commas","Squiggles, Squares, Colons and Commas",[136,137,138],"ol",{},"  \n* Squiggly brackets act as 'containers'   \n* Square brackets holds arrays   \n* Names and values are separated by a colon.   \n* Array elements are separated by commas  \n",[140,141,143],"h3",{"id":142},"json-is-like-xml-because","\nJSON is like XML because:",[136,145,146],{},"  \n* They are both 'self-describing' meaning that values are named, and thus 'human readable'   \n* Both are hierarchical. (i.e. You can have values within values.)   \n* Both can be parsed and used by lots of programming languages   \n* Both can be passed around using AJAX (i.e. httpWebRequest)  \n",[140,148,150],{"id":149},"json-is-unlike-xml-because","JSON is UNlike XML because:",[136,152,153],{},"  \n* XML uses angle brackets, with a tag name at the start and end of an element: JSON uses squiggly brackets with the name only at the beginning of the element.   \n* JSON is less verbose so it's definitely quicker for humans to write, and probably quicker for us to read.   \n* JSON can be parsed trivially using the eval() procedure in JavaScript   \n* JSON includes arrays {where each element doesn't have a name of its own}   \n* In XML you can use any name you want for an element, in JSON you can't use reserved words from javascript  \n",[12,155,156,157,160,161,166],{},"On the server-side you can easily serialize\u002Fdeserialize your objects to\u002Ffrom JSON. For ",[32,158,159],{},".net"," programmers you can use libraries like ",[162,163,165],"a",{"href":164},"http:\u002F\u002Fwww.newtonsoft.com\u002Fproducts\u002Fjson\u002F","Json.net"," to do this automatically for you (using reflection i assume), or you can generate your own custom code to perform it even faster on a case by case basis.",[168,169],"img",{"src":170,"alt":79,"style":171},"\u002Farticles\u002Fimages\u002FJSON.gif","display:none;",{"title":79,"searchDepth":80,"depth":80,"links":173},[174,176],{"id":142,"depth":175,"text":143},3,{"id":149,"depth":175,"text":150},"2015-04-20T08:07:13.6000000-04:00","{“People”:{\n{“name”:”frank”, “age”:”21”},\n{“name”:”joe”,”age”:44”}\n,\n“Markeing”:\n{“name”:”frank”, “age”:”21”},\n{“name”:”joe”,”age”:44”}\n\n} }",{},"\u002Farticles\u002Fjson-know-more",{"title":110,"description":178},"articles\u002Fjson-know-more",[91,184],"javascript","OoXmULq_Ve1WX5OVc1z-FhmnTNctKTJ7RjuIMoBl31Q",{"id":187,"title":188,"author":7,"body":189,"createdAt":279,"description":83,"extension":84,"img":83,"meta":280,"navigation":86,"path":281,"seo":282,"stem":283,"tags":284,"updatedAt":279,"__hash__":285},"articles\u002Farticles\u002Fjavascript-shorthand-for-getelementbyid.md","Javascript Shorthand for getElementById",{"type":9,"value":190,"toc":277},[191,194,270,273],[12,192,193],{},"In the following sample I define a variable byId and set it to the function. You can use any valid variable name in place of byId",[44,195,199],{"className":196,"code":197,"language":198,"meta":79,"style":79},"language-js shiki shiki-themes github-light github-dark","var byId = function( id ) {   \nreturn document.getElementById( id );   \n};  \n  \nbyId( 'someID' )  \n  \n","js",[32,200,201,230,244,249,255],{"__ignoreMap":79},[70,202,205,209,213,216,219,223,227],{"class":203,"line":204},"line",1,[70,206,208],{"class":207},"szBVR","var",[70,210,212],{"class":211},"sScJk"," byId",[70,214,215],{"class":207}," =",[70,217,218],{"class":207}," function",[70,220,222],{"class":221},"sVt8B","( ",[70,224,226],{"class":225},"s4XuR","id",[70,228,229],{"class":221}," ) {   \n",[70,231,232,235,238,241],{"class":203,"line":80},[70,233,234],{"class":207},"return",[70,236,237],{"class":221}," document.",[70,239,240],{"class":211},"getElementById",[70,242,243],{"class":221},"( id );   \n",[70,245,246],{"class":203,"line":175},[70,247,248],{"class":221},"};  \n",[70,250,252],{"class":203,"line":251},4,[70,253,254],{"class":221},"  \n",[70,256,258,261,263,267],{"class":203,"line":257},5,[70,259,260],{"class":211},"byId",[70,262,222],{"class":221},[70,264,266],{"class":265},"sZZnC","'someID'",[70,268,269],{"class":221}," )\n",[12,271,272],{},"With jQuery simply $('#{id}) works as well.",[274,275,276],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}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":278},[],"2015-04-20T08:07:13.4100000-04:00",{},"\u002Farticles\u002Fjavascript-shorthand-for-getelementbyid",{"title":188,"description":83},"articles\u002Fjavascript-shorthand-for-getelementbyid",[184],"qWKx_-0TTGaDOjOMubmF016hUxs-yFdRnxbL78wcEYQ",1781574762530]