I've created a WCF for my VS2010,C# silverlight app, I consume it without any problem on my local host, but when I upload it in my remote server, it doesn't work! what is my problem? I have upload two XML files (cross domain) beside my SVC file, but there is still no luck, what I'm missing?
2 Answers
If you look at your service more carefully (from the link your provided above), you see that the error speaks volumes. It even shows you what you need to do to solve it!
In your web.config
, add another endpoint to publish metadata. The mex
endpoint is so your clients can get to know the inner workings of your service.
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
and under your service behaviors element set:
<serviceMetadata httpGetEnabled="True" />
EDIT: Though having said that your service still shouldn't work when you host it locally if you don't publish any metadata. Can you be a bit more descriptive about your scenario? Are you hosting your service in IIS? Which binding are you using? Is your service duplex?