locked
Silverlight + WCF Service RRS feed

  • Pergunta

  • 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
    quarta-feira, 8 de abril de 2009 17:50

Respostas