Showing posts with label aspx. Show all posts
Showing posts with label aspx. Show all posts

Friday, March 30, 2012

rsExecutionNotFound error

Hello,

I am developing a report viewer application in ASP.NEt 2.0 and in that I have a page called ReportViewer.aspx page which has a report viewer control. The processing mode is remote and it is a SQL Server 2005. There are a couple of dropdownlists one which defines the names of the different reports and the other the reporting periods. Depending on the selection made by the user, the call is made to the reporting server and reporst are displayed. Initially when the page loads, the reports show up without any problems. But if a user is inactive for a while, and the user tries to the view the report, I get the following error

"Execution 'tmf3wgqtzuasux3trzliwx25' cannot be found (rsExecutionNotFound) "

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.Reporting.WebForms.ReportServerException: Execution 'tmf3wgqtzuasux3trzliwx25' cannot be found (rsExecutionNotFound).

I did some research and came across this post which is the exact error which i am getting.

http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=124525

The above link is not working for some reason but if you click on the link below, it says that the issue has been fixed. But there is no information as to how to fix this. Does anybody have any idea as to what the solution is?This is the exact same error which I am getting and any help to resolve this error would be great.

http://64.233.183.104/search?q=cache:H2UEJj42ypcJ:connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx%3FFeedbackID%3D124525+rsExecutionNotFound+%2B+2005&hl=en&ct=clnk&cd=1&gl=us

There are some posts which advise to add the a guid at the end of the url but if you are using a viewer you cannot add anything else to the .ServerReport.ReportURL property other than the path to the report or else it returns an error.

As per my knowledge, the report veiwer control should be keeping the session alive using keep alive messages. There is also the possibility of IE caching and one can disable it by going to Tools -> Options and disabling the caching. But this is not something which I can tell my customers to do.

Any help would be greatly appreciated.

Regards,

arpan

Arpan,

My team came across this error a while ago, and found that Reporting Services has it's own session that is timing out. In the ReportServer database, there is a table called ConfigurationInfo. In this table there are values for a SessionTimeout and SessionAccessTimeout. I think the default is set to '600'. This value corresponds to the number of seconds that the report session will be open.

Our solution was to bump this number way up, say to a couple of hours or more. The problem with this is then you get a lot of data in the ReportServerTempDB, which may cause headaches. It's not a perfect solution, and this property should be more easily editable.

The other way to set this property is to use some Reporting Service Scripting, .rss files, and run them using the rs.exe utility that was installed with Reporting Services. There is a Good blog about this by John Gallardo (?) I think.

Good Luck,

Mac

blog url: http://blogs.msdn.com/jgalla/archive/2006/10/11/session-timeout-during-execution.aspx

|||

Mac.

Thanks for the quick reply. I shall try it out tomorrow and see if that helps.

Regards.

arpan

Wednesday, March 28, 2012

RSClientPrint problem

I'm trying to get client side printing to work in asp.net with reporting services 2005. I've got an aspx page to do printing as described here but when I try to render a report I get the following:

1. Print dialog box appears as expected

2. Press print

3. Dialog box appears saying "Print in progress"

4. After a few seconds another dialog box appears saying there was an error printing the report. Error code is 80004005.

I get the same error if I try to preview instad of print.

The (relevent) code is:

<object id="RSClientPrint" classid="CLSID:FA91DF8D-53AB-455D-AB20-F2F023E498D3" codebase="Bin/RSClientPrint.cab#Version=2005,90,1399,0"></object>

<script language="javascript" type="text/javascript">
function printIt() {
RSClientPrint.Print('http://localhost/ReportServer$SQL2005',
'/LMI Reports/GoodsIn&OrderID=1000'),
'Goodsin');
}
</script>

<body onload="printIt()">

Does anybody know what this error is and how I can get the control to work? Its not clear to me what the version on the object statement should be. This example uses the version string from the control but I've also tried 1.0 with the same result. Its also not clear if I should be using RSClientPrint.Authenticate or not. I've tried both true and false with the same result.

Many thanks

Ian

Hi Ian,

I am also getting same problem . do you have any solutions for it ?

suresh babu

|||Ian did you solve this issue?.. if you did it.. please let me know to ayoplac@.hotmail.com
|||No, sadly it was never resolved other than using a different reporting system that actually works.

RSClientPrint problem

I'm trying to get client side printing to work in asp.net with reporting services 2005. I've got an aspx page to do printing as described here but when I try to render a report I get the following:

1. Print dialog box appears as expected

2. Press print

3. Dialog box appears saying "Print in progress"

4. After a few seconds another dialog box appears saying there was an error printing the report. Error code is 80004005.

I get the same error if I try to preview instad of print.

The (relevent) code is:

<object id="RSClientPrint" classid="CLSID:FA91DF8D-53AB-455D-AB20-F2F023E498D3" codebase="Bin/RSClientPrint.cab#Version=2005,90,1399,0"></object>

<script language="javascript" type="text/javascript">
function printIt() {
RSClientPrint.Print('http://localhost/ReportServer$SQL2005',
'/LMI Reports/GoodsIn&OrderID=1000'),
'Goodsin');
}
</script>

<body onload="printIt()">

Does anybody know what this error is and how I can get the control to work? Its not clear to me what the version on the object statement should be. This example uses the version string from the control but I've also tried 1.0 with the same result. Its also not clear if I should be using RSClientPrint.Authenticate or not. I've tried both true and false with the same result.

Many thanks

Ian

Hi Ian,

I am also getting same problem . do you have any solutions for it ?

suresh babu

|||Ian did you solve this issue?.. if you did it.. please let me know to ayoplac@.hotmail.com|||No, sadly it was never resolved other than using a different reporting system that actually works.

RSClientPrint problem

I'm trying to get client side printing to work in asp.net with reporting services 2005. I've got an aspx page to do printing as described here but when I try to render a report I get the following:

1. Print dialog box appears as expected

2. Press print

3. Dialog box appears saying "Print in progress"

4. After a few seconds another dialog box appears saying there was an error printing the report. Error code is 80004005.

I get the same error if I try to preview instad of print.

The (relevent) code is:

<object id="RSClientPrint" classid="CLSID:FA91DF8D-53AB-455D-AB20-F2F023E498D3" codebase="Bin/RSClientPrint.cab#Version=2005,90,1399,0"></object>

<script language="javascript" type="text/javascript">
function printIt() {
RSClientPrint.Print('http://localhost/ReportServer$SQL2005',
'/LMI Reports/GoodsIn&OrderID=1000'),
'Goodsin');
}
</script>

<body onload="printIt()">

Does anybody know what this error is and how I can get the control to work? Its not clear to me what the version on the object statement should be. This example uses the version string from the control but I've also tried 1.0 with the same result. Its also not clear if I should be using RSClientPrint.Authenticate or not. I've tried both true and false with the same result.

Many thanks

Ian

Hi Ian,

I am also getting same problem . do you have any solutions for it ?

suresh babu

|||Ian did you solve this issue?.. if you did it.. please let me know to ayoplac@.hotmail.com
|||No, sadly it was never resolved other than using a different reporting system that actually works.

Monday, March 26, 2012

rsClientPrint Active X question

After loading the object clause for rsClientPrint on my ASPX page, I get the
message at the client that Microsoft is blocking the software because the
publisher is unknown. Can anyone tell me what I might need to do to get past
that.
--
Thanks,
CGWFound my problem.
--
Thanks,
CGW
"CGW" wrote:
> After loading the object clause for rsClientPrint on my ASPX page, I get the
> message at the client that Microsoft is blocking the software because the
> publisher is unknown. Can anyone tell me what I might need to do to get past
> that.
> --
> Thanks,
> CGW|||Hi, how did you fix your problem? I have the same problem, that is
preventing me from using a program download (from american greetings.com)
that I've been using all along. I need a new Active-X plugin, but the
publisher is unverifiable. Thanks much!
Mary
"CGW" wrote:
> Found my problem.
> --
> Thanks,
> CGW
>
> "CGW" wrote:
> > After loading the object clause for rsClientPrint on my ASPX page, I get the
> > message at the client that Microsoft is blocking the software because the
> > publisher is unknown. Can anyone tell me what I might need to do to get past
> > that.
> > --
> > Thanks,
> >
> > CGW|||I wish I could remember. We ended up taking a different approach and I didn't
keep my work on that. I know I googled around for an answer and it seems that
it had to do with getting the cab file in the right location. Sorry. If I
remember, I'll send it to you. And from now on, when I find a solution, I'll
mention what it was while it's still fresh on my mind.
--
Thanks,
CGW
"Mary" wrote:
> Hi, how did you fix your problem? I have the same problem, that is
> preventing me from using a program download (from american greetings.com)
> that I've been using all along. I need a new Active-X plugin, but the
> publisher is unverifiable. Thanks much!
> Mary
> "CGW" wrote:
> > Found my problem.
> > --
> > Thanks,
> >
> > CGW
> >
> >
> > "CGW" wrote:
> >
> > > After loading the object clause for rsClientPrint on my ASPX page, I get the
> > > message at the client that Microsoft is blocking the software because the
> > > publisher is unknown. Can anyone tell me what I might need to do to get past
> > > that.
> > > --
> > > Thanks,
> > >
> > > CGW

rsAccessDenied

The permissions granted to user 'localmachine\ASPNET' are insufficient for performing this operation.

am using a report viewer on an aspx page that i call using javascript. the report work if the url have the port number for examplehttp://localhost:4254/adressofthereport but if i put for examplehttp://localmachinename/adressofthereport i get the permission error.

why this happen to me... please help.

i fix this inserting the localmachine\ASPNET user in the reports permissions

BUILTIN\administrator

localmachine\ASPNET

maybe you need to add dbowner o sysad access level to this user.

|||

Thanks.I am having same problem and i found the solution thanks.

rsAccessDenied

Hi i am having this error when i am running my default1.aspx page in localhost.I am using sql server 2005 reporting services and i have made one report in business intelligence tools reporting service through wizard.And deploy it it is running in report server.I am using one page that is default1.aspx and using report viewer and set the path that is debugging and showing that report but when i am running that in url writehttp://localhost/testdemo/default1.aspx so it is giving error

that error is"The Permission Granted to user "UserName/ASPNET" is insufficient for performing this operation.(rsAccess Denied)

Please help me to solve this problem.

Hiswapnil.malviya ,

See posthttp://forums.asp.net/t/1168322.aspx

Please do not make duplicated posts. Thanks for your cooperatoin. thanks

rsAccesDenied

If the user connect to the report directy via http://localhost/reports, there
is no problem but if the user connects via an aspx called parameter.aspx
the user gets the following error message. If I make this user a local admin
there is no problem. the aspx page works fine, no problem, the report will
show on the aspx page.
Another strange thing, i've got another user for which it is working allright.
But even when i assign User02 the sae permissions it won't show the report
but it wil show the error message below
Server Error in '/MyAppDir' Application.
----
The permissions granted to user 'MyDomain\User02' are insufficient for
performing this operation. (rsAccessDenied)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: Microsoft.Reporting.WebForms.ReportServerException: The
permissions granted to user 'MyDomain\User02' are insufficient for performing
this operation. (rsAccessDenied)
Source Error:
Line 120: Dim parameters() As ReportParameter = {reportPar3,
reportPar2}
Line 121:
Line 122: ReportViewer1.ServerReport.SetParameters(parameters)
Line 123: ReportViewer1.ServerReport.Refresh()
Line 124:
Source File: E:\website\MyAppDir\SubDir\Parameter.aspx.vb Line: 122
Stack Trace:
[ReportServerException: The permissions granted to user 'MyDomain\User02'
are insufficient for performing this operation. (rsAccessDenied)]
Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +366
Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1
parameters) +83
Parameter.Button1_Click(Object sender, EventArgs e) in
E:\website\MyAppDir\SubDir\Parameter.aspx.vb:122
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
+107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102And the question is, how to resolve this problem of not displaying the report
?

Wednesday, March 7, 2012

RS Execution Logs sample project

Hi,

I was going through the link http://msdn2.microsoft.com/en-us/library/aa964131.aspx for "Monitoring Report Execution Performance with Execution Logs". There is a link (http://datainspirations.com/uploads/rsexecutionlogging.zip) proviced for downloading sample project. It seems that the page no more exists.

Can any one please let me know from where can i download the sample project?

TIA

You can find correct links here:

http://datainspirations.com/Publications.html

|||Even this link doesn't work.If you know the llink,please send me.|||It works for me.

RS Execution Logs sample project

Hi,

I was going through the link http://msdn2.microsoft.com/en-us/library/aa964131.aspx for "Monitoring Report Execution Performance with Execution Logs". There is a link (http://datainspirations.com/uploads/rsexecutionlogging.zip) proviced for downloading sample project. It seems that the page no more exists.

Can any one please let me know from where can i download the sample project?

TIA

You can find correct links here:

http://datainspirations.com/Publications.html

|||Even this link doesn't work.If you know the llink,please send me.|||It works for me.