Getting an error while testing my first WCF service, in WSCF/WCF

BizTalk Utilities CV ,   Jobs ,   Code library
 
Go to the front page to continue learning about XML or select below:

Contents

Recent WSCF/WCF posts

\r\n problem with SOAP and XmlDocument
WCF Service Validating Soap Header Username/Password
Username and Password validation in wcf adapter
ASPX page can"t see Session created by WCF with XBAP client
Limiting a WCF Service to "On" Domain Apps
WCF - How much security is needed?
How to provide custom WSDL from a WCF server
WCF security question
WCF Byte Array Limitation in XBAP
WCF Transactions

 
 

WSCF/WCF

View :   

Latest Topics

Table Of Contents


Post Reply

Getting an error while testing my first WCF service

All posts: microsoft.public.dotnet.framework.webservices
Source: microsoft.public.dotnet.framework.webservices
Sent date: 05/16/2008
From: "Rod" <(email address - cut out)>
Message:

This is my first WCF service and it is running on my development machine (XP
Pro SP2) under IIS, I am using wsHttpBinding. (I will eventually put it onto
a Windows 2003 Server running under IIS on the server as an Intranet
application). The strange is I've stepped through the code in the WCF
service, it makes the call to the SQL Server database, it retrieves the data
and puts it into the DataTable object, and then I close the connection and
dispose of it (with using) and return the DataTable. It seems to do all of
that just fine, no errors or problems at all. However, in looking at the
returned error message (received in the client) I get the following:

"The underlying connection was closed: The connection was closed
unexpectedly."

(Which, frankly I do not understand. The connection closing is not
"unexpected". I closed it, very intentionally. I was done with it, so why
does it say this???)

According to the stack dump the InnerException has this error message:

"The message could not be processed. This is most likely because the action
'http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT/Cancel' is incorrect or
because the message contains an invalid or expired security context token or
because there is a mismatch between bindings. The security context token
would be invalid if the service aborted the channel due to inactivity. To
prevent the service from aborting idle sessions prematurely increase the
Receive timeout on the service endpoint's binding."

I generated the proxy class and config file using the SvcUtil.exe function,
and they also use wsHttpBinding. And I've put in some FaultException calls
to return to the client any errors occuring in the service, but none of
those are being reached. So it really looks to me as though the problem
isn't with the service so much as it is with the client, or something in
between. So I don't know what's going on here or why.


--

Rod



Post Reply

Related Messages

Table Of Contents



Other groups

WCF LOB

WSCF/WCF

BizTalk Rule Engine

BizTalk BPM, process

BizTalk BAM, activity

Biztalk Adapters

BizTalk Orchestration

BizTalk Server

WS WSDL

 

    Email TopXML