开发者

(WCF) .svc call returning the wrong mime type (works locally, not in production)

So I've been developing an app on my dev box for a while and it's time to put it in production. My Service has a method which returns Xml.

This all works locally but when I copy the files over to the web server and try to conne开发者_JS百科ct to my WCS using a browser I get this message:

The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8).

Why does it work locally? Has my hosting provider setup something wrong? Have I messed up some config or other? Thanks in advance.


Has the production environment been properly set up?

If not, run ServiceModelReg.exe to register WCF http modules / mappings etc. http://msdn.microsoft.com/en-us/library/ms732012.aspx

--larsw

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜