c# - Running ASP.NET MVC 6 Web API from IIS -


i create mvc 6 web api project running expected visual studio, when i'm deploying production i'm getting a

an error occured while starting application

error.

enter image description here

i did following on production machine

  • installed asp.net 5 https://get.asp.net
  • made sure production environment running same dnx version application published with
  • installed httpplatformhandler 1.2
  • set application pool .net clr version no managed code
  • pointed root location wwwroot folder

is there else i'm missing?

when run 500 errors, remember asp.net 5 application can self hosted,

  • open command prompt
  • browse application directory
  • type in web.cmd

i had reference problems within application listed in command prompt subsequently fixed , worked expected.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -