473,508 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Vista IIS7 worker process crashing from crystal reports export in asp.net

In a Vista/IIS7 asp.net app, a coded crystal report export is crashing
IIS7....but it works just fine in visual studio's cassini web server. And
if I create a web form and use the crystal reports web viewer, view the
report and then export from the viewer it also works fine (IIS7 and
cassini). And I should note this all works fine in IIS6 on win2003 or in
xp. So my thought with all this is that something is going on with IIS7,
so I've cross posted this to the iis forum too....just in case.

If I use either of the two asp.net methods listed below in a web page I end
up with the following errors:

IIS Worker process stopped working and was closed. A problem caused the
application to stop working correctly...
followed by
IIS Worker Process was closed. To help protect your computer, Data
Execution Prevention has closed IIS Worker Process...

Here's the code:

Public Shared Sub Export()

'Have Crystal export a report to disk, then we post to the client
'Although this is extra steps compared to Crystal ExportToHTTPResponse
' (see method ExportStream later) it is much faster...plus we can do this in
an
' intermediate page with a nice Wait message then stream the output on
another page
' when done

Dim crReportDocument As New ReportDocument
Dim reportPath As String =
Current.Server.MapPath(Current.Request.Application Path)
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim exportFileName As String = Path.Combine(reportPath, "123.pdf")

'Typically crashes after this next statement
crReportDocument.Load(Path.Combine(reportPath, "Report1.rpt"))
crExportOptions = crReportDocument.ExportOptions
crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
crDiskFileDestinationOptions = New DiskFileDestinationOptions
crDiskFileDestinationOptions.DiskFileName = exportFileName
crExportOptions.DestinationOptions = crDiskFileDestinationOptions
crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile

crReportDocument.Export()
crReportDocument.Close()
crReportDocument.Dispose()
crReportDocument = Nothing

End Sub

Public Overloads Sub ExportStream()

' This used Crystal method which streams a report to the client browser
after it is exported
' Works but is MUCH slower than exported it on our own then streaming to
client
Dim crReportDocument As New ReportDocument
Dim reportPath As String =
Current.Server.MapPath(Current.Request.Application Path)

crReportDocument.Load(Path.Combine(reportPath, "Report1.rpt"))
crReportDocument.ExportToHttpResponse(ExportFormat Type.PortableDocFormat,
Current.Response, False, "")
crReportDocument.Close()
crReportDocument.Dispose()
crReportDocument = Nothing
'Typically crashes after above is all finished...also always seem to get a
401.1 yet the report displays

End Sub

Dec 15 '06 #1
3 5136
Hi Brad,

According to your description, I understand that you encountered some issue
when using Crystal Report in IIS7/Vistal.
If I misunderstood anything here, please don't hesitate to correct me.

Just pass some information from a community member in IIS forum:
"Try changing the application pool to use 'Classic Mode' vs. Integrated
mode. Make sure asp.net is enabled and able to handle asp.net webpages.
I'm assuming you have tried a basic asp.net webpage to see if it writes out
the date for example.
Hope that helps."

We would like to suggest you can try this way to check whether it can
resolve your issue.
I will send mail to our IIS product team to check whether this is a know
issue or there is somebody can give us some idea.

Have a good weekend!
Sincerely,
WenYuan

Dec 15 '06 #2
Thanks for the suggestion, but I am already using "Classic Mode" for all web
applications, asp.net it enabled....I had to go through all this and other
things just to get visualstudio to properly work with IIS.

Brad
"WenYuan Wang" <v-******@online.microsoft.comwrote in message
news:8k**************@TK2MSFTNGHUB02.phx.gbl...
Hi Brad,

According to your description, I understand that you encountered some issue
when using Crystal Report in IIS7/Vistal.
If I misunderstood anything here, please don't hesitate to correct me.

Just pass some information from a community member in IIS forum:
"Try changing the application pool to use 'Classic Mode' vs. Integrated
mode. Make sure asp.net is enabled and able to handle asp.net webpages.
I'm assuming you have tried a basic asp.net webpage to see if it writes out
the date for example.
Hope that helps."

We would like to suggest you can try this way to check whether it can
resolve your issue.
I will send mail to our IIS product team to check whether this is a know
issue or there is somebody can give us some idea.

Have a good weekend!
Sincerely,
WenYuan

Dec 15 '06 #3
Hi Brad,
Thanks for your reply.

I have discussed this issue with our product team members.
Unfortunately, according to my research, I'm afraid this is not a known
issue.
After our discussion, we think this is a special case and related to
Crystal Reports.

Due to Newsgroup limitation, we would like to suggest you contact Microsoft
CSS directly for urgent issues.
If the problem is confirmed to be a product bug, the case charge will be
free.
You can get the regional support phone numbers at
http://support.microsoft.com.

If there is something I can help with, please feel free to reply me here
and we will follow up.
Sincerely,
Wen Yuan

Dec 18 '06 #4

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

Similar topics

3
2794
by: Russ | last post by:
I have a page that uses crystal reports to generate reports from a SQl server database. As of a week ago everything was working fine, but now I am all of the sudden getting errors. To the best of...
19
3847
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set...
6
4960
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
1
4300
by: Lyners | last post by:
Hello all, I have created an ASP.NET website that uses Crystal Reports that works on the localhost (my PC), but when I copy it to the server it does not. The problem is...
8
2369
by: =?Utf-8?B?U3JpZGhhcg==?= | last post by:
Hi, I am having problems to run asp.net 1.1 on windows vista business operating system. When I try to create a new web application or try accessing an existing web application it is giving the...
5
2658
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it...
0
5965
by: Erwin Moller | last post by:
Hi, I am one of those questionable people that started with Vista (Home Premium). Not because I think it is a ready/steady OS, but partly out of curiousity, and partly because I needed to work...
6
9613
by: ma | last post by:
Hello, I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to deploy in to a system which has Vista Business and IIS7. I copied my files to the target computer and created a virtual...
1
8119
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
0
7118
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.