|
Hi, I’m brand new to DevForce and am merely checking
it out at this point. Here’s the problem
I’m experiencing:
When I try to fetch data via:
IEntityQuery<CriterionItem<int, string>> entityQuery = GetCriteriaQuery(); entityQuery.ExecuteAsync((op) => { op.Results.OfType<CriterionItem<int, string>>().ToArray(); });
I get this error:
IdeaBlade.EntityModel.EntityServerException was unhandled Message=The remote server returned an error: NotFound. Cancelled=false StackTrace: at IdeaBlade.EntityModel.EntityQueriedEventArgs`1.get_Results() at IdeaBlade.EntityModel.EntityQueryOperation`1.get_Results() InnerException: System.ServiceModel.CommunicationException Message=The remote server returned an error: NotFound. StackTrace: at IdeaBlade.EntityModel.EntityServerProxy.Fetch(SessionBundle bundle, IEntityQuerySurrogate query) at IdeaBlade.EntityModel.EntityManager.AsyncFetchWorker(AsyncEventArgs state) InnerException: System.Net.WebException Message=The remote server returned an error: NotFound. StackTrace: at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result) InnerException: System.Net.WebException Message=The remote server returned an error: NotFound. StackTrace: at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState) at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState) InnerException:
The CriterionItem
class is defined as follows and is shared with the server.
public interface ICriterionItem
{
object Key { get; set; }
object Value { get; set; }
}
public interface ICriterionItem<TKey, TValue> : ICriterionItem
{
new TKey Key { get; set; }
new TValue Value { get; set; }
}
public partial class CriterionItem<TKey, TValue> : ICriterionItem<TKey, TValue>
{
public TKey Key { get; set; }
public TValue Value { get; set; }
object ICriterionItem.Key { get { return (object)Key; } set { value = (object)Key; } }
object ICriterionItem.Value { get { return (object)Value; } set { value = (object)Value; } }
}
DebugLog.xml
doesn’t indicate any problems. I see a
couple of 504 response codes with Fiddler:
System.Xml.XmlException: The input source is not correctly formatted. at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3) at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1) at System.Xml.XmlBufferReader.ReadDictionaryKey() at System.Xml.XmlBinaryReader.ReadDictionaryName(StringHandle s) at System.Xml.XmlBinaryReader.ReadNode() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at BinaryMessageFiddlerExtension.BinaryInspector.LoadMessageIntoDocument(Byte[] encodedMessage) at BinaryMessageFiddlerExtension.BinaryInspector.UpdateView(Byte[] bytes)
Any ideas what’s going on here? Thanks!
|