在ASP.NET应用程序中创建Web服务方法 [英] Creating webservice methods in asp.net application
问题描述
我在Web应用程序中创建了一个.asmx.cs,其中getProducts()是从数据库中获取产品信息的Web方法名称.当我运行此应用程序时,它显示错误为
HTTP错误401.2-未经授权
由于身份验证标题无效,因此您无权查看此页面.
详细的错误信息:
IIS Web核心模块
通知AuthenticateRequest
处理程序PageHandlerFactory-Integrated-4.0
错误代码0x80070005
请求的URL http://localhost:1643/UI/Default.aspx
物理路径D:\ Admin Site \ ReCon \ UI \ Default.aspx
登录方法尚未确定
登录用户尚未确定
请求跟踪目录C:\ Users \ kalpana \ Documents \ IISExpress \ TraceLogFiles \ RECON
这篇关于在ASP.NET应用程序中创建Web服务方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
请纠正我.
在此先谢谢您. b477-4d02-ba0c-a06a77b41143> http://social.msdn.microsoft.com/Forums/en-IN/Geneva/thread/a6ce0a76-b477-4d02-ba0c-a06a77b41143 [ http://support.microsoft.com/kb/942043 [HTTP Error 401.2 - Unauthorized
You are not authorized to view this page due to invalid authentication headers.
Detailed Error Information:
Module IIS Web Core
Notification AuthenticateRequest
Handler PageHandlerFactory-Integrated-4.0
Error Code 0x80070005
Requested URL http://localhost:1643/UI/Default.aspx
Physical Path D:\Admin Site\ReCon\UI\Default.aspx
Logon Method Not yet determined
Logon User Not yet determined
Request Tracing Directory C:\Users\kalpana\Documents\IISExpress\TraceLogFiles\RECON
Please correct me.
Thanks in advance.http://social.msdn.microsoft.com/Forums/en-IN/Geneva/thread/a6ce0a76-b477-4d02-ba0c-a06a77b41143[^]
Refer steps from this link
http://support.microsoft.com/kb/942043[^]