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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AshokSr. Software EngineerCommented:
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
Omar_AmoudiAuthor Commented:
Thank You I tryed it Not Sucseed!
0
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

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
Omar_AmoudiAuthor 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.