I have a WCF service that is using the SharePoint object model to query a list. (I need my recurrence events.)
I have a Silverlight application referencing that service to display it using a datagrid.
Without referencing the sharepoint object model, everything works fine (test data). Once I start using the SPsite, SPweb, I receive:
--------------------------------------------------------
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Mon, 21 Sep 2009 01:29:39 UTC
Message: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at CalendarSVCApplication.TestDataRef.GetTestDataCompletedEventArgs.get_Result()
at CalendarSVCApplication.MainPage.AnonymousMethod1(Object s, GetTestDataCompletedEventArgs args)
at CalendarSVCApplication.MainPage._Lambda$__1(Object s, GetTestDataCompletedEventArgs args)
at CalendarSVCApplication.TestDataRef.TestData1Client.OnGetTestDataCompleted(Object state)
Line: 1
Char: 1
Code: 0
URI:
http://localhost/TestWeb/TestPage.aspx--------------------------------------------------------
Now, everything displays and seems to work; I'm curious what this error means. I checked the InnerException error and I was getting "servicemodel communicationexception remote server error not found" error message. I've tried to use the Web Developer Helper and all the loggin seems normal, everything is 200.
I've used Content Editor Web Part to point to my xap and display it that way and I don't seem to be getting errors there.
Is this something with permissions? I'm really at a lost and any suggestions would be grateful. Thanks in advance.