首页 > > > webservice高手进
<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/ ,如需转载,请注明出处,否则将追究法律责任。