Last post Feb 04, 2009 05:21 PM by James Osborne
Jan 20, 2009 11:08 PM|balexandre|LINK
I created my first WCF RESTful service with just one GetData so I can try, and it works perfectly in localhost, but when I add it to a hosting environment, I get:
Does this means that I need to place the dll in the GAC to this work? Shouldn't work in the BIN forlder of my Service?
Here is how my service folder looks like:
What can I do in order to make this working?
Jan 21, 2009 12:32 AM|balexandre|LINK
got the problem...
I am not configuring the DLL in the web.config file.
But how can i add this, what's the code? in <appSettings>?
Jan 21, 2009 08:28 PM|Amit Sharma|LINK
the web dll need not be gaced. Just having it in the bin should be fine.
Can you check if you have referenced the web dll correctly?
Jan 24, 2009 07:20 AM|balexandre|LINK
I did, and it works fine locally :(
Line 4: using System.ServiceModel;Line 5: using System.ServiceModel.Activation;Line 6: using Microsoft.ServiceModel.Web;Line 7: Line 8: namespace MyService
Jan 24, 2009 04:57 PM|Amit Sharma|LINK
what version of the .net framework is installed on your machine?
How are you hosting the service? IIS?
Can you give a quick shot to self hosted service and see if the problem is IIS or something else.
Feb 04, 2009 05:21 PM|James Osborne|LINK
I'm pretty sure there's nothing you need to write in the web.config folder as long as the dll is in Bin.