[{"data":1,"prerenderedAt":172},["ShallowReactive",2],{"tag-jetbrains":3},{"tag":4,"articles":23},{"id":5,"title":6,"body":7,"description":14,"extension":15,"img":16,"meta":17,"name":14,"navigation":18,"path":19,"seo":20,"stem":21,"__hash__":22},"tags\u002Ftags\u002Fjetbrains.md","Jetbrains",{"type":8,"value":9,"toc":10},"minimark",[],{"title":11,"searchDepth":12,"depth":12,"links":13},"",2,[],"jetbrains","md","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},true,"\u002Ftags\u002Fjetbrains",{"description":14},"tags\u002Fjetbrains","VQo0-2191Z0vfDLqdLcpQeoie072asyvQ5I92OHyd5c",[24],{"id":25,"title":26,"author":27,"body":28,"createdAt":164,"description":165,"extension":15,"img":27,"meta":166,"navigation":18,"path":167,"seo":168,"stem":169,"tags":170,"updatedAt":164,"__hash__":171},"articles\u002Farticles\u002Fsynchronous-operations-are-disallowed-call-readasync-or-set-allowsynchronousio-to-true-instead.md","Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.",null,{"type":8,"value":29,"toc":162},[30,34,39,46,56,64,67,158],[31,32,33],"p",{},"Using JetBrains Rider using IIS Express to run asp.net core 3.1 web application, my httpcontext was null and had issues getting request bodies etc.  The exception message was",[31,35,36],{},[37,38,26],"em",{},[31,40,41,42,45],{},"I could run the application with Visual Studio 2019 without any issue (on IIS Express), definitely confusing.",[43,44],"br",{},"\nThe issue was related to the following..",[31,47,48,52],{},[49,50],"a",{"href":51},"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Faspnetcore\u002Fissues\u002F8302",[49,53,51],{"href":51,"rel":54},[55],"nofollow",[31,57,58,61],{},[49,59],{"href":60},"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Faspnetcore\u002Fissues\u002F7644",[49,62,60],{"href":60,"rel":63},[55],[31,65,66],{},"The solution",[68,69,73],"pre",{"className":70,"code":71,"language":72,"meta":11,"style":11},"language-cs shiki shiki-themes github-light github-dark","public void ConfigureServices(IServiceCollection services)  \n{  \n    \u002F\u002F If using Kestrel:  \n    services.Configure\u003CKestrelServerOptions>(options =>  \n    {  \n        options.AllowSynchronousIO = true;  \n    });  \n  \n    \u002F\u002F If using IIS:  \n    services.Configure\u003CIISServerOptions>(options =>  \n    {  \n        options.AllowSynchronousIO = true;  \n    });  \n}\n","cs",[74,75,76,84,89,95,101,107,113,119,125,131,137,142,147,152],"code",{"__ignoreMap":11},[77,78,81],"span",{"class":79,"line":80},"line",1,[77,82,83],{},"public void ConfigureServices(IServiceCollection services)  \n",[77,85,86],{"class":79,"line":12},[77,87,88],{},"{  \n",[77,90,92],{"class":79,"line":91},3,[77,93,94],{},"    \u002F\u002F If using Kestrel:  \n",[77,96,98],{"class":79,"line":97},4,[77,99,100],{},"    services.Configure\u003CKestrelServerOptions>(options =>  \n",[77,102,104],{"class":79,"line":103},5,[77,105,106],{},"    {  \n",[77,108,110],{"class":79,"line":109},6,[77,111,112],{},"        options.AllowSynchronousIO = true;  \n",[77,114,116],{"class":79,"line":115},7,[77,117,118],{},"    });  \n",[77,120,122],{"class":79,"line":121},8,[77,123,124],{},"  \n",[77,126,128],{"class":79,"line":127},9,[77,129,130],{},"    \u002F\u002F If using IIS:  \n",[77,132,134],{"class":79,"line":133},10,[77,135,136],{},"    services.Configure\u003CIISServerOptions>(options =>  \n",[77,138,140],{"class":79,"line":139},11,[77,141,106],{},[77,143,145],{"class":79,"line":144},12,[77,146,112],{},[77,148,150],{"class":79,"line":149},13,[77,151,118],{},[77,153,155],{"class":79,"line":154},14,[77,156,157],{},"}\n",[159,160,161],"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":11,"searchDepth":12,"depth":12,"links":163},[],"2020-04-22T18:48:09.024Z","Recently, I have been using Rider much more often and thought I would document recent issue (only noticed in Rider) not Visual Studio with IIS Express.",{},"\u002Farticles\u002Fsynchronous-operations-are-disallowed-call-readasync-or-set-allowsynchronousio-to-true-instead",{"title":26,"description":165},"articles\u002Fsynchronous-operations-are-disallowed-call-readasync-or-set-allowsynchronousio-to-true-instead",[14],"W9-zObQ1vw40leeRRBiFH70kjEGIop5PQSL-8S2-UYM",1781574759614]