web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

system.serviceModel Web Client NAV 2016

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

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

  • Community Member Profile Picture
    on at

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

  • Verified answer
    Community Member Profile Picture
    on at

    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?

  • keoma Profile Picture
    32,729 on at

    please start a new thread for this new question.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans