0

I have the following issue. I host WCF service on a local IIS and want to get data from it in my Silverlight 5 app. I hosted Silverlight project with ASP.NET and i am getting communication exception all the time.

Just to mention, i did not create wcf silverlight enabled service. is that maybe?

My Silverlight .clientconfig:

<configuration>
<system.serviceModel>
    <bindings>
        <basicHttpBinding>
            <binding name="BasicHttpBinding_IService" maxBufferSize="2147483647"
                maxReceivedMessageSize="2147483647">
                <security mode="None" />
            </binding>
        </basicHttpBinding>
    </bindings>
    <client>
        <endpoint address="http://localhost:21016/Service.svc" binding="basicHttpBinding"
            bindingConfiguration="BasicHttpBinding_IService" contract="ServiceReference.IService"
            name="BasicHttpBinding_IService" />
    </client>
</system.serviceModel>

I have read some topics about that exception but i didnt find anything useful.

Tnx :)

Bip
  • 893
  • 5
  • 14
  • 29
  • Can you try enabling the loglisteners with the WCF Service Configuration Editor under menu Tools->WCF Service Configuration Editor? Maybe that gives some useful information. – Silvermind Mar 13 '12 at 20:18
  • i did not find something like that. Just to point out, i first create wcf service, and after that i created silverlight and host asp.net at the same location as WCF. I set silverlight client as the start page. – Bip Mar 13 '12 at 20:24
  • The `.Web` should be the startpage for the Silverlight client, except when your running OOB. The svc configurator could be located here `C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\SvcConfigEditor.exe` – Silvermind Mar 13 '12 at 20:30
  • What do you see when you type in _http://localhost:21016/Service.svc in your browser? – Bryant Mar 13 '12 at 21:25
  • You have created a service. To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax: svcutil.exe http://localhost:21016/Service.svc?wsdl You can also access the service description as a single file: http://localhost:21016/Service.svc?singleWsdl – Bip Mar 13 '12 at 21:33
  • Have you located the WCF Configuration Editor? If you open your web.config file with it and enable logging than a file with the svclog extension will be saved in the .WEB side folder of your app. Open this file and check for detailed exceptions. – Silvermind Mar 13 '12 at 21:55
  • Sorry for the repeating questions but is there an inner exception? Also I have seen some weird things going on with WCF Silverlight and CTP Async installed. – Silvermind Mar 13 '12 at 22:52
  • no there is not. However my project manager has abandon this approach, but i am still curious. Do i have to implement silverlight enabled service instead of just casual? – Bip Mar 13 '12 at 23:52

0 Answers0