473,223 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 5106
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
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
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
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
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
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
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
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
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
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
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.