Showing posts with label sending. Show all posts
Showing posts with label sending. Show all posts

Wednesday, March 21, 2012

RS2000: Failure sending mail: Cannot access a closed file...

SQL Server 2000, RS2000...
I have 2 timed subscriptions to the same report. One of the
subscriptions delivers the report via Report Server Email, the other
via File share.
If I choose PDF orWeb Archive as the deliverable then then both
reports work. If I choose Excel, I get the following error message
posted on the Report Server next to Status when I look at both
subscriptions to the report.
Any idea what is happening?
Thanks,
KeithOn Feb 1, 5:29 pm, 1300...@.gmail.com wrote:
> SQL Server 2000, RS2000...
> I have 2 timed subscriptions to the same report. One of the
> subscriptions delivers the report via Report Server Email, the other
> via File share.
> If I choose PDF orWeb Archive as the deliverable then then both
> reports work. If I choose Excel, I get the following error message
> posted on the Report Server next to Status when I look at both
> subscriptions to the report.
Guess including the error might help!
Failure sending mail: Cannot access a closed file
> Any idea what is happening?
> Thanks,
> Keith

Monday, March 12, 2012

RS Subscription Failures

RS Subscriptions are generating the following errors for some (not all)
subscriptions:
Failure sending mail: The Report Server has encountered a configuration
error; more details in the log files
The only difference I can see between our working subscriptions and the non
working subscriptions are the owners of the subscriptions.
A log file I was able to find with a failed email reference is as follows.
ReportingServicesService!dbpolling!25f4!4/18/2005-02:00:13::
NotificationPolling processing 1 more items. 2 Total items in internal
queue.
ReportingServicesService!library!27e4!04/18/2005-02:00:14:: i INFO: Call to
RenderFirst( '/Production Systems' )
ReportingServicesService!library!27e4!04/18/2005-02:00:15:: e ERROR:
Throwing
Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
The Report Server has encountered a configuration error; more details in the
log files, AuthzInitializeContextFromSid: Win32 error: 5; possible reason -
service account doesn't have rights to check domain user SIDs.;
Info:
Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
The Report Server has encountered a configuration error; more details in the
log files
ReportingServicesService!library!27e4!04/18/2005-02:00:15:: i INFO:
Initializing EnableExecutionLogging to 'True' as specified in Server system
properties.
ReportingServicesService!emailextension!27e4!04/18/2005-02:00:15:: Error
sending email.
Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The Report
Server has encountered a configuration error; more details in the log
files -->
Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
The Report Server has encountered a configuration error; more details in the
log files
at
Microsoft.ReportingServices.Authorization.Native.GetAuthzContextForUser(IntPtr
userSid)
at Microsoft.ReportingServices.Authorization.Native.IsAdmin(String
userName)
at
Microsoft.ReportingServices.Authorization.WindowsAuthorization.IsAdmin(String
userName, IntPtr userToken)
at
Microsoft.ReportingServices.Authorization.WindowsAuthorization.CheckAccess(String
userName, IntPtr userToken, Byte[] secDesc, ReportOperation
requiredOperation)
at Microsoft.ReportingServices.Library.Security.CheckAccess(ItemType
catItemType, Byte[] secDesc, ReportOperation rptOper)
at
Microsoft.ReportingServices.Library.RSService._GetReportParameterDefinitionFromCatalog(CatalogItemContext
reportContext, String historyID, Boolean forRendering, Guid& reportID,
Int32& executionOption, String& savedParametersXml, ReportSnapshot&
compiledDefinition, ReportSnapshot& snapshotData, Guid& linkID, DateTime&
historyDate)
at
Microsoft.ReportingServices.Library.RSService._GetReportParameters(String
report, String historyID, Boolean forRendering, NameValueCollection values,
DatasourceCredentialsCollection credentials)
at
Microsoft.ReportingServices.Library.RSService.RenderAsLiveOrSnapshot(CatalogItemContext
reportContext, ClientRequest session, Warning[]& warnings,
ParameterInfoCollection& effectiveParameters)
at
Microsoft.ReportingServices.Library.RSService.RenderFirst(CatalogItemContext
reportContext, ClientRequest session, Warning[]& warnings,
ParameterInfoCollection& effectiveParameters, String[]&
secondaryStreamNames)
at
Microsoft.ReportingServices.Library.RenderFirstCancelableStep.Execute()
at
Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
-- End of inner exception stack trace --
at
Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
at
Microsoft.ReportingServices.Library.RenderFirstCancelableStep.RenderFirst(RSService
rs, CatalogItemContext reportContext, ClientRequest session, JobTypeEnum
type, Warning[]& warnings, ParameterInfoCollection& effectiveParameters,
String[]& secondaryStreamNames)
at Microsoft.ReportingServices.Library.ReportImpl.Render(String
renderFormat, String deviceInfo)
at
Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.ConstructMessageBody(IMessage
message, Notification notification, SubscriptionData data)
at
Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.CreateMessage(Notification
notification)
at
Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification
notification)
ReportingServicesService!notification!27e4!04/18/2005-02:00:15::
Notification 75812118-974c-4618-98b1-5327eb230d09 completed. Success:
False, Status: Failure sending mail: The Report Server has encountered a
configuration error; more details in the log files, DeliveryExtension:
Report Server Email, Report: Production Systems, Attempt 0
ReportingServicesService!dbpolling!27e4!04/18/2005-02:00:15::
NotificationPolling finished processing item
75812118-974c-4618-98b1-5327eb230d09
ReportingServicesService!library!1ef8!04/18/2005-02:00:23:: i INFO:
Initializing SessionTimeout to '600' second(s) as specified in Server system
properties.
ReportingServicesService!library!1ef8!04/18/2005-02:00:23:: i INFO:
Initializing EnableExecutionLogging to 'True' as specified in Server system
properties.
ReportingServicesService!emailextension!1ef8!04/18/2005-02:00:26:: Email
successfully sent to "someone@.x.com" <someone@.x.com>
ReportingServicesService!notification!1ef8!04/18/2005-02:00:26::
Notification 7f32758e-2511-4a4d-8ac2-f91c31691db7 completed. Success: True,
Status: Mail sent to someone@.x.com, DeliveryExtension: Report Server Email,
Report: Production Systems, Attempt 0
ReportingServicesService!dbpolling!1ef8!04/18/2005-02:00:26::
NotificationPolling finished processing item
7f32758e-2511-4a4d-8ac2-f91c31691db7
Any help would be greatly appreciated. Thanks!
BrentHi Brent,
Welcome to use MSDN Managed Newsgroup!
From your descriptions, I understood your Reporting Services' subscription
is not able to send email as you expected. If I have misunderstood your
concern, please feel free to point it out.
According to the error message, I think there might be something wrong with
your configuration file. Please compare rsreportserver.config file in your
working subscriptions machine and non working subscriptions machine. You
may also post the file here and let's check the parameter
You could refer the MSDN Online or RS BooksOnline for detailed information
Configuring a Report Server for E-Mail Delivery
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsadmin/htm
/arp_configserver_v1_4bzl.asp
Thank you for your patience and cooperation. If you have any questions or
concerns, don't hesitate to let me know. We are always here to be of
assistance!
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.|||This is one RS Server. Subscriptions that I subscribe to work perfectly, and
have been working perfectly. Subscriptions that other users subscribe to are
failing on the same server. I've reviewed the BOL, but this appears to be
configured properly. Below is the .config file:
<Configuration>
<Dsn>removed encrypted for this post</Dsn>
<ConnectionType>Default</ConnectionType>
<LogonUser>removed encrypted for this post</LogonUser>
<LogonDomain>removed encrypted for this post</LogonDomain>
<LogonCred>removed encrypted for this post</LogonCred>
<InstanceId>MSSQL.1</InstanceId>
<InstallationID>{6435f6bb-db14-43d3-b565-ccd72a245bd3}</InstallationID>
<Add Key="SecureConnectionLevel" Value="0"/>
<Add Key="InstanceName" Value="MSSQLSERVER"/>
<Add Key="ProcessRecycleOptions" Value="0"/>
<Add Key="CleanupCycleMinutes" Value="10"/>
<Add Key="SQLCommandTimeoutSeconds" Value="60"/>
<Add Key="MaxActiveReqForOneUser" Value="20"/>
<Add Key="DatabaseQueryTimeout" Value="120"/>
<Add Key="RunningRequestsScavengerCycle" Value="60"/>
<Add Key="RunningRequestsDbCycle" Value="60"/>
<Add Key="RunningRequestsAge" Value="30"/>
<Add Key="MaxScheduleWait" Value="5"/>
<Add Key="DisplayErrorLink" Value="true"/>
<Service>
<IsSchedulingService>True</IsSchedulingService>
<IsNotificationService>True</IsNotificationService>
<IsEventService>True</IsEventService>
<PollingInterval>10</PollingInterval>
<MemoryLimit>60</MemoryLimit>
<RecycleTime>720</RecycleTime>
<MaximumMemoryLimit>80</MaximumMemoryLimit>
<MaxAppDomainUnloadTime>30</MaxAppDomainUnloadTime>
<MaxQueueThreads>0</MaxQueueThreads>
<UrlRoot>http://SDBMSP-CTC01/ReportServer</UrlRoot>
<UnattendedExecutionAccount>
<UserName></UserName>
<Password></Password>
<Domain></Domain>
</UnattendedExecutionAccount>
<PolicyLevel>rssrvpolicy.config</PolicyLevel>
</Service>
<Extensions>
<Delivery>
<Extension Name="Report Server FileShare"
Type="Microsoft.ReportingServices.FileShareDeliveryProvider.FileShareProvider,ReportingServicesFileShareDeliveryProvider">
<MaxRetries>3</MaxRetries>
<SecondsBeforeRetry>900</SecondsBeforeRetry>
<Configuration>
<FileShareConfiguration>
<ExcludedRenderFormats>
<RenderingExtension>HTMLOWC</RenderingExtension>
<RenderingExtension>NULL</RenderingExtension>
</ExcludedRenderFormats>
</FileShareConfiguration>
</Configuration>
</Extension>
<Extension Name="Report Server Email"
Type="Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider,ReportingServicesEmailDeliveryProvider">
<MaxRetries>3</MaxRetries>
<SecondsBeforeRetry>900</SecondsBeforeRetry>
<Configuration>
<RSEmailDPConfiguration>
<SMTPServer>smarthost.fnfinc.com</SMTPServer>
<SMTPServerPort></SMTPServerPort>
<SMTPAccountName></SMTPAccountName>
<SMTPConnectionTimeout></SMTPConnectionTimeout>
<SMTPServerPickupDirectory></SMTPServerPickupDirectory>
<SMTPUseSSL></SMTPUseSSL>
<SendUsing></SendUsing>
<SMTPAuthenticate></SMTPAuthenticate>
<From>brent@.nospam.nospam</From>
<EmbeddedRenderFormats>
<RenderingExtension>MHTML</RenderingExtension>
</EmbeddedRenderFormats>
<PrivilegedUserRenderFormats></PrivilegedUserRenderFormats>
<ExcludedRenderFormats>
<RenderingExtension>HTMLOWC</RenderingExtension>
<RenderingExtension>NULL</RenderingExtension>
</ExcludedRenderFormats>
<SendEmailToUserAlias>True</SendEmailToUserAlias>
<DefaultHostName></DefaultHostName>
<PermittedHosts></PermittedHosts>
</RSEmailDPConfiguration>
</Configuration>
</Extension>
<Extension Name="NULL"
Type="Microsoft.ReportingServices.NullDeliveryProvider.NullProvider,ReportingServicesNullDeliveryProvider"/>
</Delivery>
<Render>
<Extension Name="XML"
Type="Microsoft.ReportingServices.Rendering.XmlDataRenderer.XmlDataReport,Microsoft.ReportingServices.XmlRendering"/>
<Extension Name="NULL"
Type="Microsoft.ReportingServices.Rendering.NullRenderer.NullReport,Microsoft.ReportingServices.NullRendering" Visible="false"/>
<Extension Name="CSV"
Type="Microsoft.ReportingServices.Rendering.CsvRenderer.CsvReport,Microsoft.ReportingServices.CsvRendering"/>
<Extension Name="IMAGE"
Type="Microsoft.ReportingServices.Rendering.ImageRenderer.ImageReport,Microsoft.ReportingServices.ImageRendering"/>
<Extension Name="PDF"
Type="Microsoft.ReportingServices.Rendering.ImageRenderer.PdfReport,Microsoft.ReportingServices.ImageRendering"/>
<Extension Name="HTML4.0"
Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.Html40RenderingExtension,Microsoft.ReportingServices.HtmlRendering" Visible="false"/>
<Extension Name="HTML3.2"
Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.Html32RenderingExtension,Microsoft.ReportingServices.HtmlRendering" Visible="false"/>
<Extension Name="MHTML"
Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.MHtmlRenderingExtension,Microsoft.ReportingServices.HtmlRendering"/>
<Extension Name="EXCEL"
Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.ExcelRendering"/>
<Extension Name="HTMLOWC"
Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.HtmlOWCRenderingExtension,Microsoft.ReportingServices.HtmlRendering">
<Configuration>
<OWCConfiguration>
<OWCDownloadLocation
language="de">http://office.microsoft.com/germany/downloads/2002/owc10.aspx</OWCDownloadLocation>
<OWCDownloadLocation
language="en">http://office.microsoft.com/downloads/2002/owc10.aspx</OWCDownloadLocation>
<OWCDownloadLocation
language="ja">http://office.microsoft.com/japan/downloads/2002/owc10.aspx</OWCDownloadLocation>
<OWCDownloadLocation
language="zh-chs">http://office.microsoft.com/china/downloads/2002/owc10.aspx</OWCDownloadLocation>
<OWCDownloadLocation
language="zh-cht">http://office.microsoft.com/china/downloads/2002/owc10.aspx</OWCDownloadLocation>
<OWCDownloadLocation
language="es">http://office.microsoft.com/spain/downloads/2002/owc10.aspx</OWCDownloadLocation>
<OWCDownloadLocation
language="ko">http://office.microsoft.com/korea/downloads/2002/owc10.aspx</OWCDownloadLocation>
<OWCDownloadLocation
language="fr">http://office.microsoft.com/france/downloads/2002/owc10.aspx</OWCDownloadLocation>
<OWCDownloadLocation
language="it">http://office.microsoft.com/italy/downloads/2002/owc10.aspx</OWCDownloadLocation>
</OWCConfiguration>
</Configuration>
</Extension>
</Render>
<Data>
<Extension Name="SQL"
Type="Microsoft.ReportingServices.DataExtensions.SqlConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
<Extension Name="OLEDB"
Type="Microsoft.ReportingServices.DataExtensions.OleDbConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
<Extension Name="ORACLE"
Type="Microsoft.ReportingServices.DataExtensions.OracleClientConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
<Extension Name="ODBC"
Type="Microsoft.ReportingServices.DataExtensions.OdbcConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
</Data>
<Security>
<Extension Name="Windows"
Type="Microsoft.ReportingServices.Authorization.WindowsAuthorization,
Microsoft.ReportingServices.Authorization"/>
</Security>
<Authentication>
<Extension Name="Windows"
Type="Microsoft.ReportingServices.Authentication.WindowsAuthentication,
Microsoft.ReportingServices.Authorization"/>
</Authentication>
<EventProcessing>
<Extension Name="SnapShot Extension"
Type="Microsoft.ReportingServices.Library.HistorySnapShotCreatedHandler,ReportingServicesLibrary">
<Event>
<Type>ReportHistorySnapshotCreated</Type>
</Event>
</Extension>
<Extension Name="Timed Subscription Extension"
Type="Microsoft.ReportingServices.Library.TimedSubscriptionHandler,ReportingServicesLibrary">
<Event>
<Type>TimedSubscription</Type>
</Event>
</Extension>
<Extension Name="Cache Update Extension"
Type="Microsoft.ReportingServices.Library.ReportExecutionSnapshotUpdateEventHandler,ReportingServicesLibrary">
<Event>
<Type>SnapshotUpdated</Type>
</Event>
</Extension>
</EventProcessing>
</Extensions>
</Configuration>
"Michael Cheng [MSFT]" wrote:
> Hi Brent,
> Welcome to use MSDN Managed Newsgroup!
> From your descriptions, I understood your Reporting Services' subscription
> is not able to send email as you expected. If I have misunderstood your
> concern, please feel free to point it out.
> According to the error message, I think there might be something wrong with
> your configuration file. Please compare rsreportserver.config file in your
> working subscriptions machine and non working subscriptions machine. You
> may also post the file here and let's check the parameter
> You could refer the MSDN Online or RS BooksOnline for detailed information
> Configuring a Report Server for E-Mail Delivery
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsadmin/htm
> /arp_configserver_v1_4bzl.asp
> Thank you for your patience and cooperation. If you have any questions or
> concerns, don't hesitate to let me know. We are always here to be of
> assistance!
>
> Sincerely yours,
> Michael Cheng
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================> This posting is provided "AS IS" with no warranties, and confers no rights.
>|||Hi Brent,
Thanks for your prompt update and sorry for my lateness!
I looked into your Reporting Services log and found the following entry
--
Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorEx
ception:
The Report Server has encountered a configuration error; more details in
the
log files, AuthzInitializeContextFromSid: Win32 error: 5; possible reason -
service account doesn't have rights to check domain user SIDs.;
--
Based on my knowledge, when your Reporting Services is running under
Windows Server 2003 and your Reporting Services and SQL Server are both
running under domain user account, you should apply the hotfix in the
following KB
"The specified domain either does not exist or could not be contacted"
error message in Windows Server 2003
http://support.microsoft.com/kb/834859
You may also apply Windows Server 2003 Service Pack 1, within which, I
believe this hotfix had been included
http://www.microsoft.com/downloads/details.aspx?FamilyID=22cfc239-337c-4d81-
8354-72593b1c1f43&DisplayLang=en
NOTE that it will be a FREE/REFUND case if you only asking for hotfix.
Thank you for your patience and cooperation. If you have any questions or
concerns, don't hesitate to let me know. We are always here to be of
assistance!
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Saturday, February 25, 2012

RS E-Mails Not Sending

I have some subscriptions setup that automatically e-mail reports to the
end-user. However, the reports only work maybe 3 days out of the week the
other times the e-mails to not get sent. Has anyone ran into this problem
before? I am using SMTP.
Thank You.Do the log files contain any errors? Does the subscription status show
anything?
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Andy Jones" <ajones@.rheemac.com> wrote in message
news:eW5xs1qwFHA.1148@.TK2MSFTNGP11.phx.gbl...
>I have some subscriptions setup that automatically e-mail reports to the
>end-user. However, the reports only work maybe 3 days out of the week the
>other times the e-mails to not get sent. Has anyone ran into this problem
>before? I am using SMTP.
> Thank You.
>|||I don't see anything that I am aware of in the subscription. I am not sure
what log files to look in?
thank you.
"Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
news:ONgpsqtwFHA.3756@.tk2msftngp13.phx.gbl...
> Do the log files contain any errors? Does the subscription status show
> anything?
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> "Andy Jones" <ajones@.rheemac.com> wrote in message
> news:eW5xs1qwFHA.1148@.TK2MSFTNGP11.phx.gbl...
>>I have some subscriptions setup that automatically e-mail reports to the
>>end-user. However, the reports only work maybe 3 days out of the week the
>>other times the e-mails to not get sent. Has anyone ran into this problem
>>before? I am using SMTP.
>> Thank You.
>

RS Bug? Multi-Page problem after many attempts...

Ok,
In using the rs.render function (soap) and sending a report to the printer
programatically as an emf file, for months, if the report goes beyond one
page in length, none of the controls (textboxes, images, data missing from
printed textboxes) I set as "repeat on every page" gets printed. First of
all, I've tried settings for the data areas that do get printed (details rows
and footer only) and that selection just doesn't work. I would be happy to
send or upload the report for examination (any help is much appreciated).
Does Microsoft have a fix for this, or is the workaround just not obvious?
Thanks,
Trint
--
Trinity Smith
c#/vb.Net Developer
EcoQuest, Intl.Trint,
We are experiencing the exact same problems. We've thought about rendering
as a Tiff, but image quality decreases. Have you received any feedback on
this issue from Microsoft?
Please pass on any info you have found as it would be greatly appreciated.
Thanks,
-Rick
"TrintCSD" wrote:
> Ok,
> In using the rs.render function (soap) and sending a report to the printer
> programatically as an emf file, for months, if the report goes beyond one
> page in length, none of the controls (textboxes, images, data missing from
> printed textboxes) I set as "repeat on every page" gets printed. First of
> all, I've tried settings for the data areas that do get printed (details rows
> and footer only) and that selection just doesn't work. I would be happy to
> send or upload the report for examination (any help is much appreciated).
> Does Microsoft have a fix for this, or is the workaround just not obvious?
> Thanks,
> Trint
> --
> Trinity Smith
> c#/vb.Net Developer
> EcoQuest, Intl.