Using kentico without startup.cs

Ömer Karagülmez asked on March 7, 2023 12:33

Hello,

I need to support about merging startup and program cs files. (because of new root folder design in dotnet 6). I modified these files properly (img-1) and there isn't any problem on rebuilding phase. but in the application starting process we occur an error. (img-2)

(img-1) program.cs source code

Image Text

(img-2)

Image Text

{ IDE = VS 2022 TargetFramework = net6.0 KenticoVersion = 13.0.0 }

Correct Answer

Brian McKeiver answered on March 11, 2023 17:44

I don't see a call to app.Run(); in your code screen shots. Is it in there at the bottom of the file?

1 votesVote for this answer Unmark Correct answer

Recent Answers


Juraj Ondrus answered on March 7, 2023 12:36 (last edited on March 7, 2023 12:36)

Could you please try applying the latest hotfix/refresh? The support for .NET 6 was added in one of the hotfixes/refreshes. In other words, Kentico 13.0.0 did not supported .NET 6.
If this will not help, please provide steps and proof of concept how to reproduce the issue using the sample Dancing Goat Core project.

1 votesVote for this answer Mark as a Correct answer

Ömer Karagülmez answered on March 7, 2023 15:56

Hello Juraj, Kentico hotfix version has been upgraded but there is another error currently.

like; Image Text

after invoke InitKentico() function;

Image Text

there isn't any error but application couldn't run.

0 votesVote for this answer Mark as a Correct answer

Ömer Karagülmez answered on March 14, 2023 09:23

Thanks Brian, I don't see too :)

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.