title: How to fix this issue, when local account has been changed from your sql server and thrown file path be changed?
body: <p><img src="https://i.stack.imgur.com/daPRj.png" alt="enter image description here"></p>
  
  <p>I have this error, on my project folder i have created _AppStart.mdf while the account on SQL Server from the Administration Service changed to local account on sql server. Now i am getting this exception each time i am trying to create new users to my database. What can i do to resolve this issue?</p>
  
  <pre><code>public async Task&lt;ActionResult&gt; Register(RegisterViewModel model)
      {
          if (ModelState.IsValid)
          {
              var user = new ApplicationUser() { UserName = model.UserName };
              user.Email = model.Email;
              user.ConfirmedEmail = false;
              var result = await UserManager.CreateAsync(user, model.Password); ?/** This throws an error line 88, each time new user is created. **/
              if (result.Succeeded)
              {
                  System.Net.Mail.MailMessage m = new System.Net.Mail.MailMessage(
                      new System.Net.Mail.MailAddress("ggcobani@gmail.com", "Web Registration"),
                      new System.Net.Mail.MailAddress(user.Email));
                  m.Subject = "Email confirmation";
                  m.Body = string.Format("Dear {0}&lt;BR/&gt;Thank you for your registration, please click on the below link to complete your registration: &lt;a href=\"{1}\" title=\"User Email Confirm\"&gt;{1}&lt;/a&gt;", user.UserName, Url.Action("ConfirmEmail", "Account", new { Token = user.Id, Email = user.Email }, Request.Url.Scheme));
                  m.IsBodyHtml = true;
                  System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.mydomain.com");
                  smtp.Credentials = new System.Net.NetworkCredential("ggcobani@gmail.com", "password");
                  smtp.EnableSsl = true;
                  smtp.Send(m);
                  return RedirectToAction("Confirm", "Account", new { Email = user.Email });
              }
              else
              {
                  AddErrors(result);
              }
          }
  
          // If we got this far, something failed, redisplay form
          return View(model);
      }
  </code></pre>