netcore 发布 到 windows server IIS 可能会报错
当发布netcore 到windows server iis可能会报这种错:An error occurred while starting the application

不要慌,这个时候可能是你用到了netcore 的nlog,没有把相应的文件(nlog.config)发布到服务器
vs解决方案里面会有这个文件 
需要我们做一个属性设置

在服务器端你会看到这样的

这样就不会报错了
参考文档:https://www.cnblogs.com/itslives-com/p/InternalServerError.html
浙公网安备 33010602011771号