Quantcast
Channel: Silverlight + WCF Service
Viewing all articles
Browse latest Browse all 2

Silverlight + WCF Service

$
0
0
Amigos, estou começando a estudar o silverlight junto com WCF, então fiz uma aplicação CRUD.

Estou usando o VS 2008, sql server 2005 express.
Para acesso aos dados estou usando linq to sql, e criei o serviço wcf para usar na plicação silverlight.

Enquanto tinha apenas uma tabela mapeada nao tive problemas, mas quando adicionei uma outra tabela que estava relacionada com a primeira, começou a dar erro, nao consegui pegar uma descrição mais detalhada do erro, a única coisa que aparece é:


**********************************************************
System.ServiceModel.CommunicationException: The remote server returned an error: NotFound ---> System.Net.WebException: The remote server returned an error: NotFound ---> System.Net.WebException: The remote server returned an error: NotFound

at System.Net.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)

at System.Net.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)

at System.Net.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)

--- End of inner exception stack trace ---

at System.Net.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)

at System.Net.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)

--- End of inner exception stack trace ---

at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)

at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)

at silverlightCRUD.ServiceReferenceCRUD.servicoCRUDClient.servicoCRUDClientChannel.EndpesquisarAreaPorDescricao(IAsyncResult result)

at silverlightCRUD.ServiceReferenceCRUD.servicoCRUDClient.silverlightCRUD.ServiceReferenceCRUD.servicoCRUD.EndpesquisarAreaPorDescricao(IAsyncResult result)

at silverlightCRUD.ServiceReferenceCRUD.servicoCRUDClient.OnEndpesquisarAreaPorDescricao(IAsyncResult result)

at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)}

[System.ServiceModel.CommunicationException]: {System.ServiceModel.CommunicationException: The remote server returned an error: NotFound ---> System.Net.WebException: The remote server returned an error: NotFound ---> System.Net.WebException: The remote server returned an error: NotFound

at System.Net.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)

at System.Net.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)

at System.Net.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)

--- End of inner exception stack trace ---

at System.Net.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)

at System.Net.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)

--- End of inner exception stack trace ---

at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)

at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)

at silverlightCRUD.ServiceReferenceCRUD.servicoCRUDClient.servicoCRUDClientChannel.EndpesquisarAreaPorDescricao(IAsyncResult result)

at silverlightCRUD.ServiceReferenceCRUD.servicoCRUDClient.silverlightCRUD.ServiceReferenceCRUD.servicoCRUD.EndpesquisarAreaPorDescricao(IAsyncResult result)

at silverlightCRUD.ServiceReferenceCRUD.servicoCRUDClient.OnEndpesquisarAreaPorDescricao(IAsyncResult result)

at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)}

Data: {System.Collections.ListDictionaryInternal}

InnerException: {System.Net.WebException: The remote server returned an error: NotFound ---> System.Net.WebException: The remote server returned an error: NotFound

at System.Net.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)

at System.Net.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)

at System.Net.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)

--- End of inner exception stack trace ---

at System.Net.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)

at System.Net.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)}

Message: "The remote server returned an error: NotFound"

StackTrace: " at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)\r\n at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)\r\n at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)\r\n at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)\r\n at silverlightCRUD.ServiceReferenceCRUD.servicoCRUDClient.servicoCRUDClientChannel.EndpesquisarAreaPorDescricao(IAsyncResult result)\r\n at silverlightCRUD.ServiceReferenceCRUD.servicoCRUDClient.silverlightCRUD.ServiceReferenceCRUD.servicoCRUD.EndpesquisarAreaPorDescricao(IAsyncResult result)\r\n at silverlightCRUD.ServiceReferenceCRUD.servicoCRUDClient.OnEndpesquisarAreaPorDescricao(IAsyncResult result)\r\n at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)

**********************************************************


Desde já agradeço se alguém puder me ajudar.

Humberto Lins


Humberto Lins

Viewing all articles
Browse latest Browse all 2

Latest Images

Pangarap Quotes

Pangarap Quotes

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Trending Articles


Libros para colorear


Winx Club para colorear


Girasoles para colorear


Rana para colorear


Renos para colorear


Gwapo Quotes : Babaero Quotes


Dear Ex Quotes, Sakit Quotes


Patama and Selos Quotes Tagalog


RE: Mutton Pies (mely)


Ang Nobela sa “From Darna to ZsaZsa Zaturnnah: Desire and Fantasy, Essays on...





Latest Images

Pangarap Quotes

Pangarap Quotes

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC