title: Blazor CRUD Sample: HTTP Error 500 for the request on IIS Server
body: <p>I just published my Blazor CRUD example to the local server. Website is working well, but I get HTTP Error 500 when I go to the fetch data page. Everything works well when I run on the Visual Studio, but IIS server. I have the connection string in context file. I also edited the connection string on the Application Pool settings page, but still not working.</p>
  
  <p>This is the code piece I am using on the context file:</p>
  
  <pre><code>        optionsBuilder.UseSqlServer(@"Data Source=(LocalDb)\MSSQLLocalDB;Initial Catalog=master;Trusted_Connection=True;");
  </code></pre>
  
  <p>I also use this connection string for the IIS:
  <a href="https://i.stack.imgur.com/mTB0Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mTB0Y.png" alt="enter image description here"></a></p>