RIA服务中的枚举 - “NotFound”

时间:2010-11-09 08:58:13

标签: silverlight silverlight-4.0 ria

我使用enum作为RIA服务方法的输入参数。

当枚举值是第一个枚举值时,一切正常,如果我选择另一个值,我收到:

The remote server returned an error: NotFound.

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)

Fiddler表示:

    HTTP/1.1 504 Fiddler - Receive Failure 
Content-Type: text/html 
Connection: close     
ReadResponse() failed: The server did not return a response for this request. 

我的枚举是:

[DataContract]
    public enum DataRangeType
    {
        [EnumMember]
        Records = 0,

        [EnumMember]
        Hours,

        [EnumMember]
        Days,

        [EnumMember]
        Months
    }

如何解决?

0 个答案:

没有答案