ITPub博客

首页 > > > webservice高手进

webservice高手进

作者:ofan 时间:2019-10-16 13:54:01 0 删除 编辑

<form method="post" name="bj_name" action="http://localhost:3930/WebService2.asmx/Do" >

IIS把实际地址该为http://外网IP:3930/WebService2.asmx/Do

为什么本地的时候可以调用到。部署到IIS的时候不能访问了。。提示无法访问WebService2.asmx/Do

问题2

public partial class WebForm2 : System.Web.UI.Page

{

public static string str = System.Configuration.ConfigurationManager.AppSettings["fuck"];

protected void Page_Load(object sender, EventArgs e)

{

Response.Write(str);

}

}

webconfig:

浏览后显示1,马上修改配置文件为2 。保存刷新。为什么值变成2了??str 不是静态变量嘛??怎么会更新为2的??

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4571/viewspace-3152182/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-01

  • 博文量
    159
  • 访问量
    1163