100分求教Web引用问题
我按照 "Help\Visual Studio .NET\示例和演练\Visual Studio 演练\演练:创建分布式应用程序" 中步骤按部就班(每一步都按照.Net帮助中说明进行)演练时,在添加Web引用对话框中输入正确地址后,在该对话框中出现下属信息:
左侧框中信息:++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
“/AuthorsWebService”应用程序中的服务器错误。
--------------------------------------------------------------------------------
拒绝访问。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ApplicationException: 拒绝访问。
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[ApplicationException: 拒绝访问。
]
System.Security.Principal.WindowsIdentity._ResolveIdentity(IntPtr userToken) +0
System.Security.Principal.WindowsIdentity.get_Name() +71
System.Web.Configuration.AuthorizationConfigRule.IsUserAllowed(IPrincipal user, String verb) +100
System.Web.Configuration.AuthorizationConfig.IsUserAllowed(IPrincipal user, String verb) +81
System.Web.Security.UrlAuthorizationModule.OnEnter(Object source, EventArgs eventArgs) +156
System.Web.SyncEventExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
右侧框中信息:++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Web 服务
(无)
此页中没有 Web 引用。
有关查找 Web 引用的帮助,请单击此处。
错误
下载“http://localhost/AuthorsWebService/AuthorsWebService.vsdisco”时出错。
请求失败,错误信息为:
--
<html>
<head>
<title>拒绝访问。
</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top:
请各位高手帮忙指出问题所在,不胜感激。