Have a Web API service I am writing that will surface data to jQuery. Currently production site is SSL with wildcard cert. Service is developed using VS2013 Utlimate and used the MVC Web Api as the template. Controller works fine in debug mode, but when deployed to the IIS 8.5 Win 2012 site, The Get function causes a 500 error. Testing has been with the domain, both on the IIS server and dev box. The Get(Id) works in production fine.
What I am I missing here? Any help would be appreciated.
publicclassActiveProjectController : ApiController
{
// GET api/activeproject
publicIEnumerable<ActiveProject> Get()
{
ICollection<ActiveProject> _activeProjects = newList<ActiveProject>();
try
{
DataManager _dm = newDataManager(ConfigurationManager.ConnectionStrings["SAGESQLConnection"].ToString());
_activeProjects = _dm.ActiveProjects();
_dm.CloseManager();
}
catch (Exception ex)
{
thrownewHttpRequestException(ex.Message);
}
return _activeProjects;
}
// GET api/activeproject/5
publicstring Get(int id)
{
return"value";
}
}