SSRS 表单身份验证:无法从 Visual Studio 2010 添加 ReportExecution2005.asmx 的 Web 服务引用

发布于 2024-11-06 11:39:44 字数 1456 浏览 1 评论 0原文

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. &nbsp;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. &nbsp;Contact the Web server's administrator for additional assistance.<br><br>

        <b>Version Information:</b>&nbsp;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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

零時差 2024-11-13 11:39:45

我无法在连接到运行 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文