Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET, SQL Reporting Service, & Temp File problem

Reply
Thread Tools

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

 
 
=?Utf-8?B?aG90aWNlMzEwMA==?=
Guest
Posts: n/a
 
      10-27-2004
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
 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      10-27-2004
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"
<> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 5.36 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? PerlFAQ Server Perl Misc 0 04-26-2011 10:00 AM
How to initialize member reference with temp object and delete the temp object when the destructor is called? PengYu.UT@gmail.com C++ 2 05-09-2005 05:48 PM
Generate PDF reporting file with ASP from SQL server datas jcleonard@free.fr ASP General 2 08-17-2004 06:42 PM
File::Temp: opening the temp. file in "r+" mode? Also "man in the middle" A. Farber Perl Misc 3 03-03-2004 12:42 PM
Temp Internet and temp files now in winnt directory w2k pro Bibble Bobble Computer Support 1 11-27-2003 06:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57