title: I have a formlayout error when running a Blazor website
body: <p>I updated visual studio 19 and before that my site ran exactly how i intended it. Now i am getting an error when i load the home page but then breaks before it can finish loading it. I have provided the error code below. I also would let you know that i have seen this post ( <a href="https://stackoverflow.com/questions/57514541/how-to-turn-on-circuitoptions-detailederrors">How to turn on CircuitOptions.DetailedErrors?</a> ) and tried it all but it hasn't worked.</p>
  
  <pre><code>Information: Normalizing '_blazor' to 
  'http://fakesite.com/_blazor'.
  
  Error: There was an unhandled exception on the current circuit, so this 
  circuit will be terminated. For more details turn on detailed exceptions in 
  'CircuitOptions.DetailedErrors'
  
  Information: Connection disconnected.
  </code></pre>
  
  <p>new error after implementing Hanks solution</p>
  
  <pre><code>Error: Microsoft.JSInterop.JSException: Could not find 'FormLayout' in 'window.DxBlazor'.
  Error: Could not find 'FormLayout' in 'window.DxBlazor'.
      at http://fakesite.com/_framework/blazor.server.js:8:27768
      at Array.forEach (&lt;anonymous&gt;)
      at d (http://fakesite.com/_framework/blazor.server.js:8:27729)
      at http://fakesite.com/_framework/blazor.server.js:8:28342
      at new Promise (&lt;anonymous&gt;)
      at e.beginInvokeJSFromDotNet (http://fakesite.com/_framework/blazor.server.js:8:28316)
      at http://fakesite.com/_framework/blazor.server.js:1:19148
      at Array.forEach (&lt;anonymous&gt;)
      at e.invokeClientMethod (http://fakesite.com/_framework/blazor.server.js:1:19119)
      at e.processIncomingData (http://fakesite.com/_framework/blazor.server.js:1:17165)
     at Microsoft.JSInterop.JSRuntimeBase.InvokeWithDefaultCancellation[T](String identifier, IEnumerable`1 args)
     at Microsoft.AspNetCore.Components.Rendering.Renderer.GetErrorHandledTask(Task taskToHandle)
  </code></pre>
  
  <p>this is the CreateWebHostBuilder method</p>
  
  <pre><code>public static IWebHostBuilder CreateWebHostBuilder(string[] args) =&gt;
       WebHost.CreateDefaultBuilder(args)
       .UseSetting(WebHostDefaults.DetailedErrorsKey, "true")
       .CaptureStartupErrors(true)
       .UseStartup&lt;Startup&gt;();
  </code></pre>