Last post Jul 24, 2017 06:41 AM by Edward Z
Jul 21, 2017 09:56 AM|bharatmishra1981|LINK
I followed all the articles in a series to develop a web api + owin-katana + identity application as described in:
Source code for this article at: https://github.com/TypecastException/MinimalOwinWebApiSelfHost/tree/auth-identity
I am using VS 2012.
In file: ~/MinimalOwinWebApiSelfHost/MinimalOwinWebApiSelfHost/Models/ApplicationDbContext.cs
at line no. 67: var
result1 = await manager.CreateAsync(john,
I keep having this error while seeding the database and I can’t find out why.
“The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.”
Any ideas on why?
Thanks in advance.
Jul 21, 2017 03:41 PM|DA924|LINK
Maybe, you'll post to the below forum.
Jul 24, 2017 06:41 AM|Edward Z|LINK
Could you share us detail steps to reproduce your issue with auth-identity project? I have downloaded it, and then run it, there is no any error.
How did you make ApplicationDbContext to run Seed method. I tried below code to fore Seed data, and there is still no exception.
private void ConfigureAuth(IAppBuilder app)
// Create per OWIN Context:
var context = ApplicationDbContext.Create();