WCF, Service attribute value in the ServiceHost directive could not be found

后端 未结 22 1680
自闭症患者
自闭症患者 2020-12-04 17:19

I\'m trying to host my service with IIS 6 but I keep get this exception.

    Server Error in \'/WebServices\' Application.
----------------------------------         


        
22条回答
  •  忘掉有多难
    2020-12-04 17:56

    If you have renamed anything verify the (Properties/) AssemblyInfo.cs is correct, as well as the header in the service file.

    ServiceName.svc

    <%@ ServiceHost Language="C#" Debug="true" Service="Company.Namespace.WcfApp" CodeBehind="WcfApp.svc.cs" %>
    

    Aligning with your namespace in your Service.svc.cs

提交回复
热议问题