ServiceRoute + WebServiceHostFactory kills WSDL generation? How to create extensionless WCF service with ?wsdl

前端 未结 2 1027
我在风中等你
我在风中等你 2020-11-29 07:22

I\'m trying to use extension-less / .svc-less WCF services. Can anyone else confirm or deny the issue I\'m experiencing?

I use routing in code, and do this in Appli

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 08:03

    I have a the same issue. Your solution works on my code. I just changed the Global.asax like this:

    <%@ Application Language="C#" %>
    <%@ Import Namespace="System.Web.Routing" %>
    <%@ Import Namespace="System.ServiceModel.Activation" %>
    <%@ Import Namespace="System.ServiceModel.Web " %>
    
    
    

    To

    <%@ Application Language="C#" %>
    <%@ Import Namespace="System.Web.Routing" %>
    <%@ Import Namespace="System.ServiceModel.Activation" %>
    <%@ Import Namespace="System.ServiceModel.Web " %>
    
    
    

提交回复
热议问题