0
我有遗留项目被迁移到visual studio 2015.一切运作良好,只有asmx行动没有被发现。 我不明白这里有什么问题吗?我的项目在IIS Express中运行。 我试图在IIS内创建虚拟目录,如果我从IIS asmx打开网站工作正常。VS2015 asmx方法没有找到
我也试过的是删除,然后将.asmx文件添加到项目。没有改变。
只有在IIS表达它不起作用(当从Visual Studio直接运行项目)。错误消息:
未能加载资源:
代码:
服务器与404 (未找到)状态 http://localhost:53358/wf/wsSearchCAMERC.asmx/GetBAUSERSearch1
设置回应
namespace fCatEve
{
/// <summary>
/// Summary description for wsSearchCAMERC
/// </summary>
[WebService(Namespace = "fCatEve")]
[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 wsSearchCAMERC : System.Web.Services.WebService
{
[WebMethod]
public string[] GetBAUSERSearch1(string prefixText, int count, string contextKey)
{
// code omitted for clarity
}
}
}