.NET Framework Bookmark and Share   
 index > Windows Communication Foundation > Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a ne
 

Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a ne

Dear all, this is the problem i am facing since last 2 days. Please give me a solution asap..Thanks in advance

Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service.

I am getting the error while doing the ado.net application through wcf. My application is posted in iis 5.1.. I am getting this error while creating a client for the hosted wcf service.. What steps I need to follow to solve this issue....

OS windows xp sp2
vs 2008
sqlserver 2005


Stacktrace information :


Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at IStudentDBService.submitStudent(WCFStudent student)
at StudentDBServiceClient.submitStudent(WCFStudent student)

ravisankarponguru
Are you able to access the service wsdl from browser?

-Phani
Phani_tpk
Yes I am able to access the service from browser
Ponguru
ravisankarponguru
Yes I am able to access the service from browser
Ponguru
ravisankarponguru
Update the reference to create a latest proxy. Did it work at least once?
Try creating a proxy with svcutil.exe. Although it's not different, but at least we can eliminate if its VS proxy generation configuration which is causing it. If the service is up then there is no real reason for VS not being able to create a proxy. And if you are developing in VS, can you try using the ASP.net development web server to run it.

Also, check if you can create and run the default WCF service in the web section of File -> New -> Project menu.


-Phani
Phani_tpk
I tried in ASP.net Webserver. It is working fine in wcftestclient when i used the URL generated by ASP.net Webserver . The values are saving inside the database.
Ponguru
ravisankarponguru
I am trying to create the proxy using SVCUTIL.. Once it done I will update you.. Thanks for your valuable suggestion.
Ponguru
ravisankarponguru

You can use google to search for other answers

Custom Search

More Threads

• ActivityId, Asynchronous Callbacks and Bindings
• CryptographicException: Keyset does not exist with IClientChannel.Close()
• MTOM with WCF
• XML Request format
• Wrong App.Config!!!!
• maxStringContentLength Error - Need Help
• Getting ASP.NET Profile to work on a windows service as a client
• service architecture
• WCF service
• Sharing one object between two Services