Hi ,
I have a webservice with 2 methods - one method that takes one paramter and returns an ObervableCollection<>, and another that takes the same ObervableCollection<> with modified values to be submitted to the database, and returns bool.
The 1st call to retrieve the data works fine, the data is bound to a DataGrid, values are changed no problem etc... When I call the 2nd method and pass the ObervableCollection<> back, the web service throws a CommunicationException. Any ideas why this would happen?
Stack Trace:
System.ServiceModel.Commun
icationExc
eption was unhandled by user code
Message="The remote server returned an error: NotFound"
StackTrace:
at System.ServiceModel.AsyncR
esult.End[
TAsyncResu
lt](IAsync
Result result)
at System.ServiceModel.Channe
ls.Service
Channel.Se
ndAsyncRes
ult.End(Se
ndAsyncRes
ult result)
at System.ServiceModel.Channe
ls.Service
Channel.En
dCall(Stri
ng action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Client
Base`1.Cha
nnelBase`1
.EndInvoke
(String methodName, Object[] args, IAsyncResult result)
at MarketBuilder.WebService.W
ebServiceC
lient.WebS
erviceClie
ntChannel.
EndCommitC
hanges(IAs
yncResult result)
at MarketBuilder.WebService.W
ebServiceC
lient.Mark
etBuilder.
WebService
.WebServic
e.EndCommi
tChanges(I
AsyncResul
t result)
at MarketBuilder.WebService.W
ebServiceC
lient.OnEn
dCommitCha
nges(IAsyn
cResult result)
at System.ServiceModel.Client
Base`1.OnA
syncCallCo
mpleted(IA
syncResult
result)
InnerException: System.Net.WebException
Message="The remote server returned an error: NotFound"
StackTrace:
at System.Net.AsyncHelper.Beg
inOnUI(Sen
dOrPostCal
lback beginMethod, Object state)
at System.Net.BrowserHttpWebR
equest.End
GetRespons
e(IAsyncRe
sult asyncResult)
at System.ServiceModel.Channe
ls.HttpCha
nnelFactor
y.HttpRequ
estChannel
.HttpChann
elAsyncReq
uest.Compl
eteGetResp
onse(IAsyn
cResult result)
InnerException: System.Net.WebException
Message="The remote server returned an error: NotFound"
StackTrace:
at System.Net.BrowserHttpWebR
equest.Int
ernalEndGe
tResponse(
IAsyncResu
lt asyncResult)
at System.Net.BrowserHttpWebR
equest.<>c
__DisplayC
lass5.<End
GetRespons
e>b__4(Obj
ect sendState)
at System.Net.AsyncHelper.<>c
__DisplayC
lass2.<Beg
inOnUI>b__
0(Object sendState)
InnerException: