1

我的问题是我尝试将 localhost 更改为ip address/computer name仍然无法访问。我的网络服务链接是这样的http://localhost:1228/TryService.asmx?op=HelloWorld

我怎样才能通过局域网访问它?

谢谢回复

当前代码:

我没有接触过webconfig

/// <summary>
/// Summary description for EDCService
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.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 EDCService : System.Web.Services.WebService
{

    [WebMethod]
    [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
    public string HelloWorld()
    {
        return "Hello World";
    }
}

应用程序移动到 IIS 更新:

错误

 HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
4

0 回答 0