Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have deployed my web api application solution on IIS full. I am now able to see my home page index when I go to the root page of the site. That is fine but when I try to make a get request 192.xxx.xxx.xxx/api/AH (AH being my controller name) it only returns Json error. I am using Entity Framework 6.

JavaScript
{
Message: "An error has occurred."
}


It should be getting data from my localDB. What I tried is to add permissions to my folder. Checked connection strings in IIS and in VS. I've checked my application pool
What can I do? I'm stuck.
Posted
Updated 21-Apr-15 0:06am
v3
Comments
CHill60 21-Apr-15 6:12am    
When you say "my localDB" are you expecting the web page to be reading a database on your local PC?
Joshua Masa 21-Apr-15 6:17am    
on the server's folder. It is a localDB in the app_Data in the MVC frame.

1 solution

I fixed it. I just used an SQL Server Express database and used it's connection string. Thank you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900