WCF Ria Services - Silverlight Business Application - Errors

Discussion in 'Silverlight' started by abioli, Jan 27, 2010.

  1. Hi to everybody.
    I'm trying some simple tests with WCF Ria Services, but things are going wrong when I deploy the application to DASP.
    So I started with a fresh solution (silverlight business application), and tried to deploy that one, just that simple, to DASP, but things are not going well, also.
    I know I have to deploy some DLL to the bin, since they are beta, so I changed to 'Copy Local - True' System.ComponentModel.DataAnnotations, System.Web.DomainServices, System.Web.Ria. There are no other Ria dlls, it seems.
    I then created on the server a 'manual' DomainService:

    [EnableClientAccess()]
    public class DomainService1 : DomainService
    {
    public int GetInt()
    {
    return 123;
    }
    }
    In the home page of the client app i inserted a button:

    private void Button_Click(object sender, RoutedEventArgs e)
    {
    DomainService1 ds = new DomainService1();
    ds.GetInt(op_Completed, null);
    }

    void op_Completed(InvokeOperation<int> op)
    {
    MessageBox.Show(op.Value.ToString());
    }

    Nothing terrible, but just with these two little modifications, the first problem is that there is no way to find the function 'GetUser'.
    It seems it has something to do with the RoleManager, but I, for now, would like to disable this mechanism, just to try the service.
    So, since I have a database in DASP, I insert a default role manager, even if I can't understand what kind of users it can find in my database, if I don't know how to create tables, records, and so on...

    I read everything I could google, and I tried all sort of things, usually getting things even worse... :-(
    So now I'm completely stuck, and next week I'd have to make a demonstration of Ria Services technologies... :-(((
    Is there anyone that can make a list of steps to have just the bare bones of a simple but complete Ria Service application up and running? I'm using VS 2008...

    Thanks in advance
    Andrea
     
  2. Moreover...

    ...I forgot to say that even if I can, in some way, to go past the 'GetUser' error, it looks like the client cannot find the service on the server... there's no way to execute the function on the server...
    Andrea
     
  3. Another test

    The small app is functioning ok on the development server, of course, and I just tried to publish it on my local IIS: no problems even on that... So what are the standard differences between local default installation of IIS and the IIS assigned on DASP???
    Andrea
     
  4. Already solved, but thanks very much!!!

    Since then I did solve it, but anyway, thanks very much for pointing me in the right direction: the full documents are interesting and useful!
    Andrea
     
  5. ..That's a great Blog post, thanks. ;-)
     
  6. Ya awesome
     
  7. Hi,

    My name is Quan. I'm a new member to this forum. I'm having the same problem that you had with the RIA Services and I'm at a point of desperation. Could you quickly point me to where and how you went about trouble-shooting this issue?

    Thank you very much in advance.
     
  8. Hi Quan,
    it looks like that using the official release it all goes right... What I saw is that I had to clean everything from the betas setup, and starting again installing everything for VS2010: maybe there remains something dirty...
    Good luck!
    Andrea
     
  9. Have the same problem error 500 w/ RIA

    My RIA service is not working, Cant execute the service. I have the
    knowledge base, uploaded all the dlls needed but still cant execute. fiddler shows error 500 but displays garbage. Please help

    Hector
     

Share This Page