fullstackproltd / AspNetCoreSpa

Asp.Net 7.0 & Angular 15 SPA Fullstack application with plenty of examples. Live demo:
https://aspnetcorespa.fullstackpro.co.uk
MIT License
1.47k stars 464 forks source link

Identity server migration #249

Closed sajidali2444 closed 5 years ago

sajidali2444 commented 5 years ago

Hi @asadsahi can you please help i am trying to migrate the database to MySql on MAC Machine following error occurred during migration

An error occurred while accessing the IWebHost on class 'Program'. Continuing without the application service provider. Error: MAC verification failed during PKCS12 import (wrong password?) Unable to create an object of type 'PersistedGrantDbContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728 i follow readme file but no success and also try ApplicationDbContext as alternative same error

fr4nk-dev commented 5 years ago

You include this nuget package?

MySql.Data.EntityFrameworkCore.Design

sajidali2444 commented 5 years ago

@fr4nk-dev still same error after adding MySql.Data.EntityFrameworkCore.Design i also replace UseSqlite with MySql and added packages Pomelo.EntityFrameworkCore.MySql,Pomelo.EntityFrameworkCore.MySql.Design but it still throwing error at migration time

asadsahi commented 5 years ago

@sajidali2444 just pushed a branch with mysql implemented in web project. Identity server can follow the same. Let me know if that helps. Check this comparison

https://github.com/asadsahi/AspNetCoreSpa/compare/mysql?expand=1

sajidali2444 commented 5 years ago

@asadsahi Thanks I already managed it and its working and also push my code to Azure. one thing still not working on my MAC machine "Error: MAC verification failed during PKCS12 import (wrong password?)" this due to the certificate which you provided in app settings. for temporary i AddDeveloperSigningCredential certificate option. could get some time to check why this is not working of Mac book pro.

asadsahi commented 5 years ago

@sajidali2444 AddDeveloperSigningCredentials will get you going, but not recommended for the production scenarios. Didn't come across such error before so no idea. Sorry. Closing this issue for now as you have managed to get it working.

sajidali2444 commented 5 years ago

Thank you Asad bahi certificate error on MAC still there but it is working on AWS Linux Server with Nginx web server. i tried to generate my own self signed certificate but no success i think something wrong in .net core framework because lots of discussions are there on github. just awaiting for .NET Core 3 version support.