locked
XBAP App not updating data using EF RRS feed

  • Question

  • I created an ADO.Net Data Model and then linked it to a ADO.Net Data Service. I can see the data using the service URL in the browser. In the same project, I also tried retrieving and updating data, it works.

    I then created a new XBAP project and tried to retrieve data from the data service. (I had to give the XBAP application full trust to access the web service on another domain). However when I try to retrieve data or insert records, it does not work. Strangely I do not get any errors/exceptions.

    Following is the code.

        Dim URL As String = "http://localhost:2125/WebSite5/I3LDS.svc/"
        Dim I3LContext As New DataServiceContext(New Uri(URL))

        Dim Usr As New i3lSalesModel.User
        Usr.Name = "James Bond"
        Usr.RoleID = 2
        Usr.EMail = "james@bond.com"
        I3LContext.AddObject("User", Usr)
        I3LContext.SaveChanges()

    Please help,
    Thanks


    PS: I used the DataSvcUtil.exe to generate classes from the service and added the generated file to the XBAP project
    Tuesday, May 27, 2008 4:20 PM

All replies

  • Hello,

     

    I regret to see your question has stayed unanswered for a week. After reading it, I think it makes sense to move it to the ADO.NET Data Services forum, where I think you will have more chances of getting an answer.

     

    Hope this helps,

    Diego

     

    Wednesday, June 4, 2008 12:14 AM
  • Can you try to take a network trace of the interaction between client and service (perhaps use Fiddler) and post it here? 

     

    Wednesday, June 18, 2008 5:27 AM