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"
Omar_AmoudiAsked:
Who is Participating?
 
Omar_AmoudiConnect With a Mentor Author Commented:
Hi
I solved It after I tried first by WCF Data Service which make me Found that the problem is a Permission, I used Windows, Form and annoumus IIS Permission Not Success
Then I used Windows Authentication with a Impersonate in Web.config
 <identity impersonate="true" userName="Domain\UserName" password="Password" />
And only a  Windows Authentication  I Disable others and It Worked
Thank You All
0
 
AshokCommented:
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
0
 
Omar_AmoudiAuthor Commented:
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
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
Omar_AmoudiAuthor Commented:
Thank You I tryed it Not Sucseed!
0
 
tovvenkiCommented:
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
0
 
Omar_AmoudiAuthor Commented:
Hi,
On Localhost is Ok
But I transfered it to a work server with Windows Server 2008 Standard and IIS 6
0
 
Omar_AmoudiAuthor Commented:
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!
0
 
Omar_AmoudiAuthor Commented:
Note : Personnel is a (Project and Solution Name)
0
 
CodeCruiserCommented:
>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?
0
 
Omar_AmoudiAuthor Commented:
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!
0
 
Omar_AmoudiAuthor Commented:
"Local Network Computer " is the Server I deply to It and also The Database (Sql Server)
0
 
CodeCruiserCommented:
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.
0
 
Omar_AmoudiAuthor Commented:
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
0
 
Omar_AmoudiAuthor Commented:
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
0
 
Omar_AmoudiAuthor Commented:
Hi again
I sucseeded in Local Host Now But Not In Server  - 2010!
0
 
Omar_AmoudiAuthor Commented:
This is the error message i got
Error-Domainservice.PNG
0
 
CodeCruiserCommented:
Looks like you are using Windows Authentication. Check here

http://forums.silverlight.net/forums/p/159456/398239.aspx
0
 
Omar_AmoudiAuthor Commented:
Sorry
I allready got to this post i diaple the windows Authentication
But not warked
0
 
Omar_AmoudiAuthor Commented:
No More Help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.