我使用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
}
如何解决?