简体   繁体   English

SSRS Email 订阅配置

[英]SSRS Email Subscription Configuration

I was trying to configure Sql Server Reporting Services 2008 to send out email when subscriptions were created.我试图配置 Sql Server Reporting Services 2008 在创建订阅时发送 email。 I was running SSRS in Native Mode.我在本机模式下运行 SSRS。 Whenever I tried to create a new email subscription this error message would appear in the log files:每当我尝试创建新的 email 订阅时,日志文件中都会出现此错误消息:

library!ReportServer_0-3!14e4!01/30/2009-12:58:52:: Call to GetSystemPermissionsAction().
library!ReportServer_0-3!1684!01/30/2009-12:58:52:: Call to GetPermissionsAction(/Report Folder/Report Name).
library!ReportServer_0-3!14e4!01/30/2009-12:58:52:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedNativeModeException: This operation is not supported on a report server that runs in native mode., ;
 Info: Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedNativeModeException: This operation is not supported on a report server that runs in native mode.
extensionfactory!ReportServer_0-3!14e4!01/30/2009-12:58:52:: e ERROR: Exception caught instantiating Report Server DocumentLibrary report server extension: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Microsoft.ReportingServices.SharePoint.SharePointDeliveryExtension.DocumentLibraryProvider' threw an exception. ---> Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedNativeModeException: This operation is not supported on a report server that runs in native mode.

Most of the solutions on the Internet suggested that the problem was caused by 网上的大部分解决方案都提示问题是由

  1. Improper configuration of the receiving SMTP server接收SMTP服务器配置不当
  2. Improper configuration of the Email Settings in the Reporting Services Configuration Manager Reporting Services 配置管理器中的 Email 设置配置不正确
  3. Using a non-domain user as the Execution Account使用非域用户作为执行帐户

None of these solutions worked for me, however.然而,这些解决方案都不适合我。

I finally got the idea from an MSDN page to look at the rsreportingservice.config file.我终于从MSDN 页面得到了查看 rsreportingservice.config 文件的想法。 I noticed that the config file included a SharePoint Delivery Extension even though the SSRS process was running in Native Mode, not SharePoint mode.我注意到配置文件包含 SharePoint 交付扩展,即使 SSRS 进程在本机模式下运行,而不是 SharePoint 模式。

        <!--<Extension Name="Report Server DocumentLibrary" Type="Microsoft.ReportingServices.SharePoint.SharePointDeliveryExtension.DocumentLibraryProvider,ReportingServicesSharePointDeliveryExtension">
            <MaxRetries>3</MaxRetries>
            <SecondsBeforeRetry>900</SecondsBeforeRetry>
            <Configuration>
                <DocumentLibraryConfiguration>
                    <ExcludedRenderFormats>
                        <RenderingExtension>HTMLOWC</RenderingExtension>
                        <RenderingExtension>NULL</RenderingExtension>
                        <RenderingExtension>RGDI</RenderingExtension>
                    </ExcludedRenderFormats>
                </DocumentLibraryConfiguration>
            </Configuration>
        </Extension>-->

Once I removed this code from the config file and restarted SSRS the email subscriptions worked.一旦我从配置文件中删除了这段代码并重新启动了 SSRS,email 订阅就起作用了。

If you a using a Data-Driven subscription, double-check that the 'To' setting is actually set to the column that contains your email addresses.如果您使用数据驱动订阅,请仔细检查“收件人”设置是否实际设置为包含您的 email 地址的列。 We had it mysteriously change to a different column.我们将它神秘地更改为不同的列。

You can also see this error if you are pointing at the SOAP endpoint for Sharepoint Integrated mode, which is typically "ReportService2006.asmx".如果您指向 Sharepoint 集成模式(通常为“ReportService2006.asmx”)的 SOAP 端点,您也会看到此错误。 If you aren't using SSRS integrated with Sharepoint, make sure you are pointing at "ReportService2005.asmx" (yes, even if you are using SQL 2008).如果您没有使用与 Sharepoint 集成的 SSRS,请确保您指向“ReportService2005.asmx”(是的,即使您使用的是 SQL 2008)。

Ref: http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/8a40f90f-60e5-4130-984f-dc42032376d4/参考: http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/8a40f90f-60e5-4130-984f-dc42032376d4/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM