DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008
    Location
    *****, Nigeria
    Posts
    61

    Silverlight Error: CommunicationException Error....

    Hi Guys,

    This is my first post on this forum. I got this error when i clicked on the save button of my silverlight client application. It calls a CreateRecord Function in a service that executes asynchronously. I made use of LINQ2SQL Entities which reside in a separate project-n tier setup.

    A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.dll
    A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in system.dll

    I've deleted the service reference and recreated it severally to no avail. I'll be very grateful for the solution. Thanks.
    Mobile: +234 706 042 6036
    Email: charles@hedonmark.com
    Website: www.hedonmark.com

    “To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment.”
    —Ralph Waldo Emerson

  2. #2
    Join Date
    Dec 2008
    Location
    *****, Nigeria
    Posts
    61
    Hi Guys
    I finally found a solution!!! I found out that all i needed was a cross-domain policy xml file. Guess what? It works for ALL silverlight projects! Its not project specific! These are the contents right here:
    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <access-policy>
      <cross-domain-access>
        <policy >
          <allow-from http-request-headers="SOAPAction">
            <domain uri="*"/>
          </allow-from>
          <grant-to>
            <resource path="/" include-subpaths="true"/>
          </grant-to>
        </policy>
      </cross-domain-access>
    </access-policy>
    There it is! THING OF BEAUTY i tell ya! Thaks All for viewing the thread and at least making an effort to give me a solution(I believe anyone who views a thread does so for one of two reasons-either to read it and learn from it if theres a reply OR to make a contribution to it if there isnt a reply!) You Guys are the best! HAve a GR8 day Folks!
    Last edited by proffy; 06-28-2010 at 06:17 AM.
    Mobile: +234 706 042 6036
    Email: charles@hedonmark.com
    Website: www.hedonmark.com

    “To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment.”
    —Ralph Waldo Emerson

Similar Threads

  1. Replies: 2
    Last Post: 05-14-2009, 09:22 AM
  2. Replies: 5
    Last Post: 01-17-2007, 01:37 PM
  3. 'On Error Goto' versus 'Try, Catch, Fail'
    By clarence_rollins in forum .NET
    Replies: 21
    Last Post: 09-11-2002, 11:32 AM
  4. Returning errors from SQL Server Stored Procs
    By Khalizan in forum VB Classic
    Replies: 1
    Last Post: 11-28-2001, 01:32 AM
  5. Replies: 0
    Last Post: 04-07-2000, 09:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links