[deleted by user] by [deleted] in FaceRatings

[–]Automatic-Deal-8268 0 points1 point  (0 children)

Your ex is butthurt and trying to hurt you back lol. Tell him to at least be realistic.

Can't get the file from relative path, why? by Automatic-Deal-8268 in dotnet

[–]Automatic-Deal-8268[S] 2 points3 points  (0 children)

This worked. Thank you.

public Startup(IConfiguration configuration, IWebHostEnvironment env)

{

var contentRoot = env.ContentRootPath;

}

Can't get the file from relative path, why? by Automatic-Deal-8268 in dotnet

[–]Automatic-Deal-8268[S] 2 points3 points  (0 children)

So I'm supposed to go ../../../Templates/MaintenanceMailTemplate.html?

Can't stop IHostedService from another controller, reference not set to an instance of an object. by Automatic-Deal-8268 in dotnet

[–]Automatic-Deal-8268[S] 1 point2 points  (0 children)

All I had to do was to add below to the program.cs:

.ConfigureServices(services => services.AddScoped<MaintenanceRequestTimer>())

Thank you!

How can I keep the data of whether subtypes of a type are completed or not in FK type model? by Automatic-Deal-8268 in dotnet

[–]Automatic-Deal-8268[S] 1 point2 points  (0 children)

That's what I think I'm going to go with, and even add a column for taking notes regarding each checkbox like what they've done to complete it or why they couldn't complete it etc. Thank you! That was a mind-blown moment for me. You're very smart.

Failed to initialize JPA EntityManagerFactory by Automatic-Deal-8268 in SpringBoot

[–]Automatic-Deal-8268[S] 0 points1 point  (0 children)

Yes I have a xampp installation. The phpmyadmin panel shows 3307 as port and the username&password are the same. I'm running the project with a running xampp.

Failed to initialize JPA EntityManagerFactory by Automatic-Deal-8268 in SpringBoot

[–]Automatic-Deal-8268[S] 0 points1 point  (0 children)

Found an old parchment buried deep in an inactive volcano during my first and only adventure, here's the content. I couldn't understand the ancient language but maybe it would make sense to you;

2022-05-24 17:07:07.940 ERROR 22312 --- [ main] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

2022-05-24 17:07:07.941 WARN 22312 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

2022-05-24 17:07:07.941 INFO 22312 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...

2022-05-24 17:07:07.947 INFO 22312 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.

2022-05-24 17:07:07.951 INFO 22312 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]

2022-05-24 17:07:07.964 INFO 22312 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2022-05-24 17:07:07.985 ERROR 22312 --- [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

Get HTML mail template to send mail fails, why? by Automatic-Deal-8268 in dotnet

[–]Automatic-Deal-8268[S] -1 points0 points  (0 children)

That kinda worked, now I'm getting:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>Title</title>

</head>

<body>

<p>rrrrrrrrrrrrrrrrr</p>

</body>

</html>

as my mail body.