Server cannot clear headers after HTTP headers have been sent
-
- Posts: 251
- Joined: Fri Feb 04, 2011 11:46 am
- Location: San Diego, CA
Server cannot clear headers after HTTP headers have been sent
I am getting the following error sometimes calling StiWebDesigner1.Design(report);
Server cannot clear headers after HTTP headers have been sent.
I tracked this down and it seems that sometimes my ASPX page is being driven a second time by the report designer with a URL that looks like this:
http://MY_SERVER/report_design.aspx?ID=1234&stimulsoft_designerfx=get_flash_player.gif
Notice the stimulsoft_designerfx.
http://MY_SERVER/report_design.aspx?ID=1234 is the "normal" URL.
In my Page_Load, I always call StiWebDesigner1.Design(report);
Do I need to ignore the event (not call StiWebDesigner1.Design) when the stimulsoft_designerfx is set? Why is the designer sometimes re-calling my page (via AJAX I guess) with the stimulsoft_designerfx parameter?
thx
Server cannot clear headers after HTTP headers have been sent.
I tracked this down and it seems that sometimes my ASPX page is being driven a second time by the report designer with a URL that looks like this:
http://MY_SERVER/report_design.aspx?ID=1234&stimulsoft_designerfx=get_flash_player.gif
Notice the stimulsoft_designerfx.
http://MY_SERVER/report_design.aspx?ID=1234 is the "normal" URL.
In my Page_Load, I always call StiWebDesigner1.Design(report);
Do I need to ignore the event (not call StiWebDesigner1.Design) when the stimulsoft_designerfx is set? Why is the designer sometimes re-calling my page (via AJAX I guess) with the stimulsoft_designerfx parameter?
thx
Server cannot clear headers after HTTP headers have been sent
Hello,
As we understand you, when the page loads the Page_Load event is called multiple times, if it calls the Design() method? Please tell us which version of the product are you using?
Thank you.
As we understand you, when the page loads the Page_Load event is called multiple times, if it calls the Design() method? Please tell us which version of the product are you using?
Thank you.
-
- Posts: 251
- Joined: Fri Feb 04, 2011 11:46 am
- Location: San Diego, CA
Server cannot clear headers after HTTP headers have been sent
I am using the latest release
StiVersion: '2011.2.1009', Date: '26 May 2011'
It did not do this in the prior build. It looks like it was introduced in this release.
Jay
StiVersion: '2011.2.1009', Date: '26 May 2011'
It did not do this in the prior build. It looks like it was introduced in this release.
Jay
Server cannot clear headers after HTTP headers have been sent
Hello,
We check out the latest prerelease build, located on our website and could not reproduce the issue. We checked the launch of the report designer in two modes, the test application is attached.
Thank you.
We check out the latest prerelease build, located on our website and could not reproduce the issue. We checked the launch of the report designer in two modes, the test application is attached.
Thank you.
- Attachments
-
- 1045.Sample.zip
- (4.54 KiB) Downloaded 261 times
-
- Posts: 251
- Joined: Fri Feb 04, 2011 11:46 am
- Location: San Diego, CA
Server cannot clear headers after HTTP headers have been sent
I see why you are not seeing this issue ... the page that is being requested is an image. Here is the URL:
http://localhost/wd_32/report_design.as ... player.gif
Your browser is caching the image so you do need see the request in your debugging. I looked at the HTML code for the designer page and found this:
To view this page ensure that Adobe Flash Player version 10.1 or greater is installed.
Even though the style is display:none for the flashContent class, the first time the page is loaded (at least with IE 8) IS sending a request to load that image, and IS calling Page_Load.
That is re-driving my Page_Load and causing the error. As a workaround, I added a check in the Page_Load to simply exit if stimulsoft_designerfx is in the URL.
Will my workaround resolve this, or is this something that should be fixed by the toolkit?
Jay
http://localhost/wd_32/report_design.as ... player.gif
Your browser is caching the image so you do need see the request in your debugging. I looked at the HTML code for the designer page and found this:
To view this page ensure that Adobe Flash Player version 10.1 or greater is installed.
Even though the style is display:none for the flashContent class, the first time the page is loaded (at least with IE 8) IS sending a request to load that image, and IS calling Page_Load.
That is re-driving my Page_Load and causing the error. As a workaround, I added a check in the Page_Load to simply exit if stimulsoft_designerfx is in the URL.
Will my workaround resolve this, or is this something that should be fixed by the toolkit?
Jay
Server cannot clear headers after HTTP headers have been sent
Hello,
We have made some improvements, now when requesting images HTTP headers must be cleaned properly. Update will be available in prerelease build from June, 2.
Thank you.
We have made some improvements, now when requesting images HTTP headers must be cleaned properly. Update will be available in prerelease build from June, 2.
Thank you.