How to migrate MVC project with full .Net framework to Microsoft.Net.Sdk project?

I’m trying to migrate my MVC project with full .Net framework 4.7.2 to Microsoft.Net.Sdk style project.

It’s ok and it compiles.

To launch it, I had a lauchSettings.json file :

{
  "profiles": {
    "MyProject.WebMvc5": {
      "commandName": "Executable",
      "executablePath": "C:\Program Files (x86)\IIS Express\iisexpress.exe",
      "commandLineArgs": "/path:"$(SolutionDir)$(ProjectName)" /port:12345"
    }
  }
}

My issue is that the application is recylcled at every HTTP request.

I can see it with my breakpoint in Application_Start.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

I solved the problem.
This issue was I was logging in my project folder.

If the files change, the App cycle restart…

To resolve, I removed the files of logs…


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x