title: The path specified by "c:\Data\imoltp_mod1" is not in a valid directory
body: <p>I am using Sql Server InMemory OLTP for Asp.Net application to store session data in Sql Server using this <a href="https://docs.microsoft.com/en-us/archive/blogs/sqlserverstorageengine/asp-net-session-state-with-sql-server-in-memory-oltp" rel="nofollow noreferrer">link</a></p>
  <p>After that i found one error like need to create file group for the database which i used for InMemory OLTP. I was able to create the file group for my existing database. After that need to add file, For that i have tried below Query:</p>
  <pre class="lang-sql prettyprint-override"><code>ALTER DATABASE imoltp ADD FILE (
      name='imoltp_mod1', filename='c:\data\imoltp_mod1')
      TO FILEGROUP imoltp_mod;
  </code></pre>
  <p>But when i run above query i am getting below error:</p>
  <blockquote>
  <p>Msg 5121, Level 16, State 2, Line 1<br />
  The path specified by &quot;c:\Data\imoltp_mod1&quot; is not in a valid directory.<br />
  Msg 5009, Level 16, State 14, Line 1<br />
  One or more files listed in the statement could not be found or could not be initialized.</p>
  </blockquote>
  <p>in this path i created &quot;Data&quot; folder, Or even tried to change the drive from C to D but still getting the same error.
  I have also created new database as per this <a href="https://stackoverflow.com/questions/58791670/how-to-fix-error-msg-41337-level-16-state-100-in-create-memory-optimize-table">link</a> provided solution. But stil stuck in same query.</p>
  <p>I have here few question related to session store in DB.</p>
  <p>When i provided DB name in session membership provider related connnectionstring, Will it create table dynamically, If yes then what could be the name of table?</p>
  <p>Please suggest.</p>