1
我正在嘗試配置SQL Server Reporting Services以發送電子郵件。環境是:SSRS郵件錯誤:「文件名,目錄名稱或卷標語法不正確」
- Windows Server 2008企業
- SQL Server 2008企業
- SSRS本機模式運行通過IIS7
- SMTP服務器,配置爲限制繼電器
後用戶配置訂閱郵件,當它被觸發時狀態更改爲以下錯誤:
Failure sending mail: The filename, directory name, or volume label syntax is incorrect. Mail will not be resent.
這裏的rsreportserver.config的相關章節:
<Extension Name="Report Server Email" Type="Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider,ReportingServicesEmailDeliveryProvider">
<MaxRetries>3</MaxRetries>
<SecondsBeforeRetry>900</SecondsBeforeRetry>
<Configuration>
<RSEmailDPConfiguration>
<SMTPServer>
</SMTPServer>
<SMTPServerPort>
</SMTPServerPort>
<SMTPAccountName>
</SMTPAccountName>
<SMTPConnectionTimeout>
</SMTPConnectionTimeout>
<SMTPServerPickupDirectory>
C:\inetpub\mailroot\Pickup
</SMTPServerPickupDirectory>
<SMTPUseSSL>
</SMTPUseSSL>
<SendUsing>
1
</SendUsing>
<SMTPAuthenticate>
</SMTPAuthenticate>
<From>
[email protected]
</From>
<EmbeddedRenderFormats>
<RenderingExtension>MHTML</RenderingExtension>
</EmbeddedRenderFormats>
<PrivilegedUserRenderFormats>
</PrivilegedUserRenderFormats>
<ExcludedRenderFormats>
<RenderingExtension>HTMLOWC</RenderingExtension>
<RenderingExtension>NULL</RenderingExtension>
<RenderingExtension>RGDI</RenderingExtension>
</ExcludedRenderFormats>
<SendEmailToUserAlias>True</SendEmailToUserAlias>
<DefaultHostName>
</DefaultHostName>
<PermittedHosts>
</PermittedHosts>
</RSEmailDPConfiguration>
</Configuration>
</Extension>
我驗證過的是SSRS在其下運行的帳戶具有完全控制燙髮的SMTP拾取目錄(C:\的Inetpub \ mailroot \皮卡)及其同行。
ReportServerService日誌沒有任何顯示。
好吧,但我如何將文件從其他目錄實時移動到拾取drectory? – 2009-11-07 19:33:52
在我的方案中,郵件吞吐量不是一個考慮因素,所以我們只運行一個robocopy作業。它爲流程增加了幾秒鐘的延遲,這對我們來說很好,但可能無法爲您工作。 – 2009-11-08 21:21:38