Silverlight Client and WCF Service - System.ServiceModel.ProtocolException-UnexpectedHttpResponseCode
I am new to WCF as well as SilverLight, getting the this .Exception ..
An exception of type 'System.ServiceModel.ProtocolException' occurred in System.ServiceModel.dll but was not handled in user code Additional information: [UnexpectedHttpResponseCode]Arguments:Not Found
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.30226.2&File=System.ServiceModel.dll&Key=UnexpectedHttpResponseCode
1. WCF Service - a hosted service in IIS5.1-Windows XP Professional and details as follows..
http://host/RoleService
Binding : basicHttpBinding
Contract: IRoleService
Operations:
-GetRole
-GetRoles
-Greet
2. SilverLight client with ServiceReference for endpoint http://host/RoleService/Service1.svc.
In the client program it says IClientChannel is open , but System.ServiceModel.CommunicationException is the result of call on RoleService.GreetAsync("Name").
crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" secure="false"/>
</cross-domain-policy>
clientaccesspolicy.xml
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from>
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
Already spent lot of time , I could not spend any of this much time on Java based services donno for what ever reasons, still no luck with Silverlight. Thankful if you Silverlight gurus help me out..
Thanks and Regards,
BS