Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

publish mvc core 2 to windows vps 500 error

$
0
0

Hello,

 I have a simple site I have created in asp.net core 2 mvc , after publish i'm getting error 500 , I added logs/stdput folder to my httpdocs folder ,& changed web config to : stdoutLogEnabled="true"  but the logs  remain empty ,

my program.cs  is as default is there any preparation   I should do before publish ? thanks .

public static void Main(string[] args)
        {
            BuildWebHost(args).Run();
        }

        public static IWebHost BuildWebHost(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .Build();


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>