Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. WCF Deployment Issue

WCF Deployment Issue

Scheduled Pinned Locked Moved WCF and WF
helpwcfsysadminxmlcsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tiger456
    wrote on last edited by
    #1

    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 running svcutil.exe https://something.com/Service.svc is showing below error Discovering 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

    M 1 Reply Last reply
    0
    • T Tiger456

      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 running svcutil.exe https://something.com/Service.svc is showing below error Discovering 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

      M Offline
      M Offline
      Michael J Eber
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups