Link to home
Start Free TrialLog in
Avatar of Omar_Amoudi
Omar_AmoudiFlag for Saudi Arabia

asked on

Error In Silverlight RIA Service

Hi
I made an Application with Silverlight and Use LinqtoSql Database and Domainservice Class And Its Done very well But when I deployed It to The Server It did not return any data in Gridview I got only the columns without Data I got Tis Error message
"Load operation failed for query 'GetCustomer'. The remote server returned an error: NotFound Silverlight"
Avatar of Ashok
Ashok
Flag of United States of America image

At the bottom of Web.Config, add maxItemsInObjectGraph="2147483647"  line.
===================================================
 
  <system.serviceModel>

    <services>

      <service behaviorConfiguration="WCFSvc.DummyWebServiceBehavior"

        name="Dummy.Dummy2">

        <endpoint address="" binding="basicHttpBinding" contract="WCFSvc.IDummy2">

          <identity>

            <dns value="i.dont.know.com" />

          </identity>

        </endpoint>

        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

      </service>

    </services>

    <behaviors>

      <serviceBehaviors>

        <behavior name="WCFSvc.WebServiceBehavior">

          <serviceMetadata httpGetEnabled="true" />

          <serviceDebug includeExceptionDetailInFaults="false" />

          <!-- Add following line to fix Large Data Buffer problem. -->

          <dataContractSerializer maxItemsInObjectGraph="2147483647"/>

        </behavior>

      </serviceBehaviors>

    </behaviors>

  </system.serviceModel>

</configuration>

HTH
Ashok
Avatar of Omar_Amoudi

ASKER

Thank You
This error you mentioned I have before even in client.
I used a table of only 29 records I got No data after deploying in server
any way I'll try yours a some time after i got to work
Thank You I tryed it Not Sucseed!
Avatar of tovvenki
tovvenki

Hi,
you follow the steps described here let us know the detailed exception details
http://mokosh.co.uk/post/2009/03/31/silverlight-and-wcf-essentials-fiddler/

Thanks and regards,
Venki
Hi,
On Localhost is Ok
But I transfered it to a work server with Windows Server 2008 Standard and IIS 6
Hi again
In Server/ClientBin I have only a XAP file But withe fidler Error message 404
Host Server
URL Is
http://Server/ClientBin/Personnel-DomainService1.svc/binary
which is not there!
Note : Personnel is a (Project and Solution Name)
>But I transfered it to a work server with Windows Server 2008 Standard and IIS 6

Where is the database server? Is it on your computer? Does it allow remote connections? Is the http://server your computer or the server?
Hi and Thank you
The Database in a Local Network Computer and I Have full authority on It also The Database on that Server I The remote connection Is Allowed.
Also as Addition This Error happend even when i Open the page on the server it self!
"Local Network Computer " is the Server I deply to It and also The Database (Sql Server)
Add exception handling to GetCustomers method and do some sort of exception logging (such as writing to a text file) if you encounter any errors.
Hi
Now I got this error evan in Localhost After Installing Vs 2010 and Silverlight 4 and its Tools
I Got tis message
"The remote server returned an error: NotFound"
with Big Message Box
Hi
I tryed It today with other database in same Server It Sucseed
I think the Error is in my database I'll check It
Thank You
Hi again
I sucseeded in Local Host Now But Not In Server  - 2010!
This is the error message i got
Error-Domainservice.PNG
Looks like you are using Windows Authentication. Check here

http://forums.silverlight.net/forums/p/159456/398239.aspx
Sorry
I allready got to this post i diaple the windows Authentication
But not warked
No More Help!
ASKER CERTIFIED SOLUTION
Avatar of Omar_Amoudi
Omar_Amoudi
Flag of Saudi Arabia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial