472,951 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,951 software developers and data experts.

ASP.NET, SQL Reporting Service, & Temp File problem

I have created an interface for a SQL Reporting Service report. SQL Reporting
Service makes a virutal directly in IIS called ReportServer.

There are various buttons on the form I created and one is View. When the
user clicks View, I fire a window.open, that has the URL string, to the
ReportServer using URL access. This works find for virtually all reports.
Unfortunately the SQL programmer has decided to use temp files for a few
reports. In order for me to keep the temp file valid I have to keep the
connection open. If the connection is closed, the temp file disppears like
magic!

For these temp file SQL reports, I follow these basic steps in the View
click event.

1. View is clicked on - http://hostname/webform1.aspx
2. open a connection
3. run stored procedure 1
4. get the temp file name
5. create the URL string
6. window.open using URL -
http://reportserver?tempfilename=wha...herparams=etc;
7. the new window is now trying to open the report through ReportServer via
URL access
8. close the connection

This worked fine when I tested during development. When it was tested with
multiple users they keep getting the error message, "The temp file passed is
invalid". It seems to me the temp file is closing before the browser that I
opened with window.open is done loading when multiple users are hitting it.

So now im trying to find a way to keep the connection open. Is there anyway
to keep a connection open for 10 - 20 seconds then close it? Or maybe there's
a way to check the status of the new browser I opened (using window.open) to
see if its done loading before closing the connection? Or perhaps there's a
simpler solution that I am just not seeing?

Any help (preferably before Nov 1st) would be appreciated ug.. deadlines
Nov 18 '05 #1
1 1762
Hi hotice3100:

The bad news anything that relies on state and tempfiles sticking
around in a web application is going to prove to be unreliable in the
long run.

I'm trying to figure out the environment you describe. Apologies for
my misunderstanding.

A sample SSRS URL access string would look like:

http://machine/reportserver?/ItemPat...nds&parameters

but I don't see an item specified in your URL.

Are you saying the report item itself is temporary?
Or does a report write information to the file system?
Does the file get created when you first access the report?
Are you trying to get to the file on a subsequent request?

l --
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 26 Oct 2004 20:23:01 -0700, "hotice3100"
<ho********@discussions.microsoft.com> wrote:
I have created an interface for a SQL Reporting Service report. SQL Reporting
Service makes a virutal directly in IIS called ReportServer.

There are various buttons on the form I created and one is View. When the
user clicks View, I fire a window.open, that has the URL string, to the
ReportServer using URL access. This works find for virtually all reports.
Unfortunately the SQL programmer has decided to use temp files for a few
reports. In order for me to keep the temp file valid I have to keep the
connection open. If the connection is closed, the temp file disppears like
magic!

For these temp file SQL reports, I follow these basic steps in the View
click event.

1. View is clicked on - http://hostname/webform1.aspx
2. open a connection
3. run stored procedure 1
4. get the temp file name
5. create the URL string
6. window.open using URL -
http://reportserver?tempfilename=wha...herparams=etc;
7. the new window is now trying to open the report through ReportServer via
URL access
8. close the connection

This worked fine when I tested during development. When it was tested with
multiple users they keep getting the error message, "The temp file passed is
invalid". It seems to me the temp file is closing before the browser that I
opened with window.open is done loading when multiple users are hitting it.

So now im trying to find a way to keep the connection open. Is there anyway
to keep a connection open for 10 - 20 seconds then close it? Or maybe there's
a way to check the status of the new browser I opened (using window.open) to
see if its done loading before closing the connection? Or perhaps there's a
simpler solution that I am just not seeing?

Any help (preferably before Nov 1st) would be appreciated ug.. deadlines


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
0
by: rmk | last post by:
How can I get the 2000 and 2005 versions of SQL Server Reporting Services both working on my development laptop ????? I have ASP.NET 1.1 and 2.0 installed on my laptop. I have Visual Studio...
1
by: rmk | last post by:
How can I get the 2000 and 2005 versions of SQL Server Reporting Services both working on my development laptop ????? I have ASP.NET 1.1 and 2.0 installed on my laptop. I have Visual Studio...
1
by: C4rtm4N | last post by:
I'm about to embark on re-writing a database & bespoke web reporting application for our call centre & would like a little advice please. Currently the database has 10 tables containing summaried...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.