Hi, good day,
In first Time Im sorry for my horrible english,
I need help pls, I have an assambly on C# using Visual Studio to implement a WebService, I try to use my functions in the web client but I obtain :
"Could not find default endpoint element that references contract 'MyService.IServiceTest' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."
I solved this problem in the Windows Client copy my system.serviceModel into the Microsoft.Dynamics.Nav.Server.exe.config, but now I try use my functions in the web client and not works, Any idea how can I solved this?
This is for example my Microsoft.Dynamics.Nav.Server.exe.config , and repeat, in the Windows Client works Correctly
<?xml version="1.0"?> <configuration> <configSections> <section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> </configSections> <appSettings file="CustomSettings.config"/> <system.diagnostics> <assert assertuienabled="false"/> </system.diagnostics> <uri> <schemeSettings> <add name="http" genericUriParserOptions="DontUnescapePathDotsAndSlashes"/> <add name="https" genericUriParserOptions="DontUnescapePathDotsAndSlashes"/> </schemeSettings> <idn enabled="All"/> <iriParsing enabled="false"/> </uri> <system.net> <settings> <httpListener unescapeRequestUrl="false"/> </settings> </system.net> <runtime> <NetFx40_LegacySecurityPolicy enabled="true"/> <gcServer enabled="true"/> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="DocumentFormat.OpenXml" publicKeyToken="31bf3856ad364e35"/> <bindingRedirect oldVersion="0.0.0.0-2.5.0.0" newVersion="2.5.5631.0"/> </dependentAssembly> </assemblyBinding> </runtime> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> </startup> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="soapHttpEndpoint" /> </basicHttpBinding> </bindings> <client> <endpoint address="timbrado.facturarenlinea.com/WSTFD.svc" binding="basicHttpBinding" bindingConfiguration="soapHttpEndpoint" contract="WSFEL.IWSTFD" name="soapHttpEndpoint" /> </client> </system.serviceModel> </configuration>
*This post is locked for comments