The error of 500 was reported in IIS, but there was no problem in VS.
Find your project in the application pool of IIS and change the .net Framework version to the version of your project.
My previous error was because my project used 4.0 and 2.0 on IIS.