Problema ao adicionar a classe WCF em um projeto MVC existente.
Olá bom dia,tenho um projeto MVC, preciso adicionar uma classe WCF e aproveitar as referencias já existente do entity, crei uma pasta e adicionei o serviço, Service.svc e IService.cs, o WCF alterou webconfig do projeto e parou de rodar, voltei o webconfig para o original, antes do de incluir a classe WCF, voltou a funcionar, porém o serviço WCF não funciona. Tenho algo para alterar no webconfig, para os dois rodarem juntos? Segue abaixo o código do webconfig alterado após incluir a classe WCF:<!-- //EXCLUÍDO AO ADICIONAR CLASSE WCF --><system.webServer><validation validateIntegratedModeConfiguration=false/><modules><remove name=ApplicationInsightsWebTracking/><add name=ApplicationInsightsWebTracking type=Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web preCondition=managedHandler/></modules></system.webServer><!-- //EXCLUÍDO AO ADICIONAR CLASSE WCF --><!-- //INSERIDO AO ADICIONAR CLASSE WCF<system.serviceModel><behaviors><serviceBehaviors><behavior name=><serviceMetadata httpGetEnabled=true httpsGetEnabled=true /><serviceDebug includeExceptionDetailInFaults=false /></behavior></serviceBehaviors></behaviors><serviceHostingEnvironment aspNetCompatibilityEnabled=truemultipleSiteBindingsEnabled=true /></system.serviceModel>-->Muito obrigado!
Discussão (0)
Carregando comentários...