WebApi's {“message”:“an error has occurred”} on IIS7, not in IIS Express

后端 未结 9 1966
滥情空心
滥情空心 2020-12-12 10:36

I\'m working with ASP.NET MVC 4 WebApi and am having a lot of fun with it running it on my local computer on IIS Express. I\'ve configured IIS Express to serve remote machi

9条回答
  •  半阙折子戏
    2020-12-12 11:19

    The problem was a missing dependency that wasn't on the server but was on my local machine. In our case, it was a Devart.Data.Linq dll.

    To get to that answer, I turned on IIS tracing for 500 errors. That gave a little bit of information, but the really helpful thing was in the web.config setting the This pointed to a missing dynamically-loaded dependency. After adding this dependency and telling it to be copied locally, the server started working.

提交回复
热议问题