Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

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 machines too, and so other's in my company is using my computer as our web server.

After deciding this was a less-than-optimal solution, we decided to put the WebApi on a remote server after installing .NET 4.5. When I use fiddler and sent a POST to a controller on my local machine it returns the correct response, yet when I change the domain to the web server running IIS7 the same POST returns a cryptic

{"message":"an error has occurred"}

message. Does anyone have any idea what could be going on?

1 Answer

0 votes
by (50.2k points)

The problem wasn’t on the server but it caused due to missing dependency in your local system.

And web.config may be pointed to a dynamically loaded dependency.

In order to resolve this error check your web.config setting whether

<system.web><customErrors mode="Off"/></system.web>

After adding this dependency and telling it to save locally.Then the server starts working.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 30, 2019 in BI by Ashok (47.2k points)
0 votes
1 answer

Browse Categories

...