这个三层程序哪里错了?高手现身帮帮忙!

cityeremite 2003-01-16 10:54:53
我作了一个小型人事管理的程序,数据库用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});

请问是哪里错了,高人帮忙解决,多谢!!
...全文
54 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
dragontt 2003-03-20
  • 打赏
  • 举报
回复
你的userLogin是怎么写的
应该是没有权限登陆
yqdeng 2003-03-20
  • 打赏
  • 举报
回复
gx
cityeremite 2003-03-19
  • 打赏
  • 举报
回复
没有解决,我重装了系统,总算没有问题了,谢谢各位的帮助!
saucer 2003-01-22
  • 打赏
  • 举报
回复
What type of authentication are you using for your webservice?
If you are using Integrated Windows Authentication, you need to provide appropriate credentials from the client before making webservice call
cityeremite 2003-01-22
  • 打赏
  • 举报
回复
没有哪位高手能解决吗?拜托帮帮忙!
RockyZheng 2003-01-22
  • 打赏
  • 举报
回复
是你在WEB SERVICE配置了访问权限了吗?
online 2003-01-22
  • 打赏
  • 举报
回复
up
yzqb 2003-01-17
  • 打赏
  • 举报
回复
我也碰到类似的错误!
推.................................

12,165

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧