I had this issue, turns out that when I renamed the .svc file a reference to it hadn't been renamed from Service1.svc. Run a project wide search and replace .Service1
with your new name.
<%@ ServiceHost Language="C#" Debug="true" Service="MyNamespace.Service1" CodeBehind="MyRenamedService.svc.cs" %>
Service="MyNamespace.Service1"
should read Service="MyNamespace.MyRenamedService"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…