Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

system.serviceModel Web Client NAV 2016

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • keoma Profile Picture
    keoma 32,675 on at
    RE: system.serviceModel Web Client NAV 2016

    please start a new thread for this new question.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: system.serviceModel Web Client NAV 2016

    I solved the problem, only  need restart the Instance jejeje sorry, now  any idea how in the web client the decimals are separate for "," and not for ".", in the Windows client I have for example 199.99 but in the web client I have 199,99, how can I change this?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: system.serviceModel Web Client NAV 2016

    Any Idea the section I need copy the lines?, thanks for answer :D

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: system.serviceModel Web Client NAV 2016

    goto the folder where the web client resides (e.g. c:\inetpub\...) and edit the web.config, add there the same config section.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans