这个三层程序哪里错了?高手现身帮帮忙!
我作了一个小型人事管理的程序,数据库用Sql Server,中间用Web Service,调试的时候这两层没有问题,可以返回正确的XML数据,但是前台浏览器程序打开界面没有问题,在调用Web Service时报错:
“/miniHRSWebApp”应用程序中的服务器错误。
--------------------------------------------------------------------------------
请求因 HTTP 状态 401 失败:Access Denied。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Net.WebException: 请求因 HTTP 状态 401 失败:Access Denied。
源错误: (出错位置是行37)
行 35: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/userLogin", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
行 36: public System.Data.DataSet userLogin(string strEmployeeName, string strEmployeePasswd) {
行 37: object[] results = this.Invoke("userLogin", new object[] {
行 38: strEmployeeName,
行 39: strEmployeePasswd});
请问是哪里错了,高人帮忙解决,多谢!!