C# 访问托管Web服务时,操作超时错误

C# 访问托管Web服务时,操作超时错误,c#,web-services,C#,Web Services,嗨,我创建了一个非常简单的服务,它将返回true。代码片段如下所示 /// <summary> /// Summary description for Service1 /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] // To a

嗨,我创建了一个非常简单的服务,它将返回true。代码片段如下所示

/// <summary>
/// Summary description for Service1
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
// [System.Web.Script.Services.ScriptService]
public class Service1 : System.Web.Services.WebService
{

    [WebMethod]
    public bool CompileProject()
    {

        return true;

    }
}
//
///服务1的摘要说明
/// 
[WebService(命名空间=”http://tempuri.org/")]
[WebServiceBinding(ConformsTo=WsiProfiles.BasicProfile1_1)]
[ToolboxItem(假)]
//要允许使用ASP.NET AJAX从脚本调用此Web服务,请取消注释以下行。
//[System.Web.Script.Services.ScriptService]
公共类服务1:System.Web.Services.WebService
{
[网络方法]
公共bool CompileProject()
{
返回true;
}
}
当我在IIS中托管服务后尝试访问上述方法时,我只收到操作超时异常

我已将timeout属性设置为500000毫秒。即使我得到这个例外

有什么建议或者我遗漏了什么


-Lokesh。

使用web浏览器浏览web服务时是否显示wsdl?使用web浏览器浏览web服务时是否显示wsdl?