SSRS 表单身份验证:无法从 Visual Studio 2010 添加 ReportExecution2005.asmx 的 Web 服务引用
SSRS 的表单身份验证已在我的开发盒上成功配置,我可以使用我的安全框架的凭据成功登录到报表管理器和报表生成器。
现在我想制作一个控制台应用程序来使用 SSRS Web 服务。但是我无法在控制台应用程序项目中添加 ReportExecution2005.asmx 的引用。
我在 Visual Studio 上收到以下错误
文档位于 url http://servername/ReportServer/ReportExecution2005.asmx 未被识别为已知文档类型。
来自每个已知类型的错误消息可能会帮助您解决问题:
- 来自“XML Schema”的报告是“W3C XML Schema 的根元素应该是及其命名空间
在尝试添加引用时,在 fiddler 中我可以看到以下错误:回复:
“/ReportServer”应用程序中的服务器错误。
<h2> <i>Access is denied.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
<b> Error message 401.2.: </b>Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.<br><br>
<b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.5
Forms Authentication for SSRS has been successfully configured on my development box and i can succesfully log on to Report Manager and Report Builder using my security framework's credentials.
Now I want to make a console app which will consume the SSRS web services. however i am unable to to add reference of ReportExecution2005.asmx in console app project .
I get the following error on visual studio
The document at the url http://servername/ReportServer/ReportExecution2005.asmx was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be and its namespace
While trying to add reference , In fiddler i can see the following error as response:
Server Error in '/ReportServer' Application.
<h2> <i>Access is denied.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
<b> Error message 401.2.: </b>Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.<br><br>
<b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.5
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法在连接到运行 SSRS 2005 的开发服务器的 Visual Studio 2010 中重现该问题。但是,在添加引用时,请尝试单击“高级”按钮。在下一个屏幕中,单击对话框底部的“添加 Web 引用...”按钮。也许这个方法对你来说会更有效。
I wasn't able to duplicate the problem in Visual Studio 2010 connecting to my dev server running SSRS 2005. However, when adding the reference, try clicking the Advance button. In the next screen, click the "Add Web Reference..." button at the bottom of the dialog box. Perhaps that method will work better for you.