Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I Found the problem.</p> <p>After creating the proxy with <code>SlSvcUtil</code> and adding the .cs in my project in Visual Studio I got this error:</p> <blockquote> <p>The type or namespace name 'XmlSerializerFormatAttributeAttribute' does not exist in the namespace 'System.ServiceModel' (are you missing an assembly reference?)</p> </blockquote> <p>First of all I tried change the <code>System.Service.Model</code> from the Silverlight version to the .Net version, but I got other errors.</p> <p>So I found somewhere that was necessary, use <code>/serializer:DataContractSerializer</code> in the <code>SlSvcUtil</code>; after that this error was solved. However I got a WSDL warning when the proxy is generated.</p> <h3>SOLUTION</h3> <ol> <li><p>I created the proxy using the following command:</p> <pre><code>SlSvcUtil.exe http://192.128.09.26:8080/Server /out:C:\Projets\Client\dService.cs /config:C:\Projets\Client\ServiceReferences.ClientConfig </code></pre> <p>Then the I got this error in Visual Studio:</p> <blockquote> <p>The type or namespace name 'XmlSerializerFormatAttributeAttribute' does not exist in the namespace 'System.ServiceModel' (are you missing an assembly reference?)</p> </blockquote></li> <li><p>I added the following dll:</p> <ul> <li>System.Xml.Serialization.dll - (Runtime Version v2.0.50727)</li> </ul></li> </ol> <h3>Conclusion</h3> <p>Visual Studio wasn't able to find the reference inside the ServiceModel.dll and the ServiceModel was there so I never thought to add another .dll because the correct dll was already added.</p> <p>Just yesterday I tried add the System.Xml.Serialization.dll and now everthing works fine.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload