Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: MVC5 ASP.NET API ON IIS ERROR

Snoopy:

I am currently doing a web api for my project using MVC5 ASP.NET C#

On my localhost using Visual Studio 2017. The API is working fine but when i deploy/publish to the localhost(IIS) the API is not working anymore.

Here's my API code:


public IEnumerable GetUserPatients(int id)
{
return _context.PatientAllocations.Include(
c => c.doctorID)
.Include(p => p.Patient)
.ToList()
.Select(Mapper.Map);
}

  • Here's the result on the localhost using visual studio 2017 Result of the working API

  • Here's the Error when i deploy to my localhost(IIS) Error when i deploy to the IIS



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: MVC5 ASP.NET API ON IIS ERROR

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×