Howdy, I'm getting an "Access is Denied" error when calling a wcf service. You can check out the error here: http://www.socketdesigns.com/fireweed/ The service it's calling is located here: http://www.socketdesigns.com/fireweed/services/FirePacServices.svc I have a working test method that returns a json string located here: http://www.socketdesigns.com/fireweed/services/FirePacServices.svc/GetTest So far so good, except this method which accesses a Winhost db via Entity Framework throws a 500 "Access is Denied": http://www.socketdesigns.com/fireweed/services/FirePacServices.svc/GetEm My first thought was; Oh I just fat fingered the credentials in the connection string, but that would have been too easy. I always get back the "Access is Denied" even if I mess up the credentials. I've been using the Winhost db from my local dev evironment with no problems, but for some reason it's not working when deployed to Winhost. I searched the KB and forums but didn't find anything that helped. Am I forgetting or missing something? Thanks
Can you post a copy of your web.config file? You may want to asterisk the db user name and password. Also include the <system.webserver><security> elements of your web application. As a quick test, go to your application and set the trust mode to Medium save it and reset to Full.
Hey Ray, good call on the trust level. I switched it to full and it kicked on. For future reference, it wasn't WCF it was the Entity Framework. To fix all you have to do is add a <trust level="Full"> under <system.web> in web.config. Here's a kb article: http://support.Winhost.com/KB/a657/changing-the-default-aspnet-trust-level.aspx Socket