![]() MigrationsAssembly=MangEx.Users System.TimeoutException: The Įntity Framework Core 2.1.4 initialized 'ConfigurationDbContext' using provider When I run Add-Migration command, I can see that VS prepares all migration information for me (I can see all the tables that I need), but when I run Update-Database command I get some weird error: Var migrationsAssembly = typeof(Startup).GetTypeInfo().Assembly.GetName().Name īuilder.UseNpgsql(connectionString, action=>Īction.MigrationsAssembly(migrationsAssembly) I am modifying ConfigureServices in Startup.cs with: string connectionString = "Server=192.168.1.108 Port=5432 Database=postgres User Id=postgres Password=mysecretpassword" I am trying to make migration for Identity Server tables on PostgreSQL. I am using next NuGet packages: IdentityServer4, IdentityServer4.EntityFramework and : Failed to execute CommandLineRunnerĪt .callRunner(SpringApplication.java:735) Īt .callRunners(SpringApplication.java:716) Īt .afterRefresh(SpringApplication.java:703) Īt .run(SpringApplication.java:304) Īt .run(SpringApplication.java:1118) Īt .run(SpringApplication.java:1107) Īt (JwtAuthServiceApp.java:24) Īt 0(Native Method) ~Īt (NativeMethodAccessorImpl.java:62) ~Īt (DelegatingMethodAccessorImpl.java:43) ~Īt .invoke(Method.java:498) ~Īt .n(MainMethodRunner.java:48) Īt .Launcher.launch(Launcher.java:87) Īt .Launcher.launch(Launcher.java:50) Īt .JarLauncher.main(JarLauncher.java:51) Ĭaused by: : could not extract ResultSet SQL nested exception is : could not extract ResultSetĪt .(HibernateJpaDialect.java:261) ~Īt .(HibernateJpaDialect.java:244) ~Īt .anslateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:488) ~Īt .anslateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59) ~Īt .anslateIfNecessary(DataAccessUtils.java:213) ~Īt .PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:147) ~Īt .ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~Īt .$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:133) ~Īt .ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) ~Īt .(SurroundingTransactionDetectorMethodInterceptor.java:57) ~Īt .ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.I am new to PostgreSQL and I would like to use it with Identity Server 4. ![]() 18:10:13.589 ERROR 912 - o.s.boot.SpringApplication : Application startup failed To display the auto-configuration report re-run your application with ‘debug’ enabled. 18:10:13.557 INFO 912 - utoConfigurationReportLoggingInitializer :Įrror starting ApplicationContext. 18:10:12.542 INFO 912 - o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory 18:10:12.467 INFO 912 - s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http) 18:10:12.317 INFO 912 - o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 18:10:11.706 INFO 912 - o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path onto handler of type m.m.a.ExceptionHandlerExceptionResolver : Detected methods in globalExceptionHandlerController 18:10:11.584 INFO 912 - o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path onto handler of type 18:10:11.446 INFO 912 - s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “” onto public .ModelAndView .(,) 18:10:10.451 INFO 912 - o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: 18:10:11.202 INFO 912 - s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for startup date root of context hierarchy 18:10:07.757 INFO 912 - j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit ‘default’
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |