WCF Deployment Issue
-
Hi, We have created a wcf service that runs on https. It works pretty cool on devlopment and test server. When we configured the service on production (https enabled) there was issue in generating wsdl because its using the machine name rather than the domain . we fixed the issue using the soloution found here http://gavinmckay.wordpress.com/2009/03/24/howto-fix-wcf-host-name-on-iis/[^] But now the url name is fixed. On clicking the
"https://something.com/Service.svc?wsdl"
is showing the same content on"https://something.com/Service.svc"
page not the wsdl. on runningsvcutil.exe https://something.com/Service.svc
is showing below errorDiscovering https://something.com/Service.svc System.InvalidOperationException: The document at the url https://something.com/Service.svc was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'DISCO Document' is 'Discovery document at the URL https://something.com/Service.svc?disco could not be found.'. - The document format is not recognized. - Report from 'https://something.com/Service.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. at System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny(String url) Report from 'https://something.com/Service.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. at System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny(String url) at WcfStorm.DynamicProxy.ServiceClientProxyFactory.(Option`1 ) at WcfStorm.DynamicProxy.ServiceClientProxyFactory.DiscoverEndpoint(Option`1 cfgOption) at WcfStorm.Model.WcfServiceModel.(ServiceClientProxyFactory ) at WcfStorm.Lib.Common.BgWorker`2.O
-
Hi, We have created a wcf service that runs on https. It works pretty cool on devlopment and test server. When we configured the service on production (https enabled) there was issue in generating wsdl because its using the machine name rather than the domain . we fixed the issue using the soloution found here http://gavinmckay.wordpress.com/2009/03/24/howto-fix-wcf-host-name-on-iis/[^] But now the url name is fixed. On clicking the
"https://something.com/Service.svc?wsdl"
is showing the same content on"https://something.com/Service.svc"
page not the wsdl. on runningsvcutil.exe https://something.com/Service.svc
is showing below errorDiscovering https://something.com/Service.svc System.InvalidOperationException: The document at the url https://something.com/Service.svc was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'DISCO Document' is 'Discovery document at the URL https://something.com/Service.svc?disco could not be found.'. - The document format is not recognized. - Report from 'https://something.com/Service.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. at System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny(String url) Report from 'https://something.com/Service.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. at System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny(String url) at WcfStorm.DynamicProxy.ServiceClientProxyFactory.(Option`1 ) at WcfStorm.DynamicProxy.ServiceClientProxyFactory.DiscoverEndpoint(Option`1 cfgOption) at WcfStorm.Model.WcfServiceModel.(ServiceClientProxyFactory ) at WcfStorm.Lib.Common.BgWorker`2.O
This is just a wild shot in the dark....but it appears the documents may have been saved to the production server in UTF16 format. How did you deploy your wcf service? Did you use Visual Studio Publish or did someone just copy files? If copy is your answer then try the Publish method and see if that helps.