I have Written a sample WCF service which shows Metadata info but when I
call it I am getting the following error ..
Server Error in '/WCF Client' Application.
--------------------------------------------------------------------------------
The operation has timed out
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Net.WebE xception: The operation has timed out
Source Error:
Line 57: [return:
System.Xml.Seri alization.XmlEl ementAttribute( IsNullable=true )]
Line 58: public string
MyOperation1([System.Xml.Seri alization.XmlEl ementAttribute( IsNullable=true )]
string myValue1) {
Line 59: object[] results = this.Invoke("My Operation1", new
object[] {
Line 60: myValue1});
Line 61: return ((string)(resul ts[0]));
Source File: d:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET
Files\wcf client\693414c7 \c0997ff1\App_W ebReferences.ms dgaoxc.1.cs Line:
59
Stack Trace:
[WebException: The operation has timed out]
System.Web.Serv ices.Protocols. WebClientProtoc ol.GetWebRespon se(WebRequest
request) +54
System.Web.Serv ices.Protocols. HttpWebClientPr otocol.GetWebRe sponse(WebReque st
request) +4
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters) +172
CWCF.Service.My Service.MyOpera tion1(String myValue1) in
d:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET Files\wcf
client\693414c7 \c0997ff1\App_W ebReferences.ms dgaoxc.1.cs:59
_Default.Page_L oad(Object sender, EventArgs e) in D:\Inetpub\DotN et\WCF
Client\Default. aspx.vb:28
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +99
System.Web.UI.C ontrol.LoadRecu rsive() +47
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +1061
call it I am getting the following error ..
Server Error in '/WCF Client' Application.
--------------------------------------------------------------------------------
The operation has timed out
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Net.WebE xception: The operation has timed out
Source Error:
Line 57: [return:
System.Xml.Seri alization.XmlEl ementAttribute( IsNullable=true )]
Line 58: public string
MyOperation1([System.Xml.Seri alization.XmlEl ementAttribute( IsNullable=true )]
string myValue1) {
Line 59: object[] results = this.Invoke("My Operation1", new
object[] {
Line 60: myValue1});
Line 61: return ((string)(resul ts[0]));
Source File: d:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET
Files\wcf client\693414c7 \c0997ff1\App_W ebReferences.ms dgaoxc.1.cs Line:
59
Stack Trace:
[WebException: The operation has timed out]
System.Web.Serv ices.Protocols. WebClientProtoc ol.GetWebRespon se(WebRequest
request) +54
System.Web.Serv ices.Protocols. HttpWebClientPr otocol.GetWebRe sponse(WebReque st
request) +4
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters) +172
CWCF.Service.My Service.MyOpera tion1(String myValue1) in
d:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET Files\wcf
client\693414c7 \c0997ff1\App_W ebReferences.ms dgaoxc.1.cs:59
_Default.Page_L oad(Object sender, EventArgs e) in D:\Inetpub\DotN et\WCF
Client\Default. aspx.vb:28
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +99
System.Web.UI.C ontrol.LoadRecu rsive() +47
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +1061