473,386 Members | 1,748 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,386 software developers and data experts.

ASP.NET 2.0 vs. Crystal Report "The request could not be submitted for background processing"

Hello,

Here is a summary of my Dev Environment:
I use Visual Studio 2005 Team Suite SP1 with Crystal Report XI SP1 on
a Windows XP SP2 development workstation. I also use SQL Server 2000
SP4.

And here a summary of what is the problem:
I have a web application that has a web form into which I read data
from a SQL database and load them in a ReportDocument of Crystal
Report.

The objective of this web form is to export the data into different
file format : .PDF, .DOC, .XLS.

I have no problem exporting the data to a PDF or DOC file. Neither I
get problem with the XLS (DATA ONLY). The files are created and I can
work with them.

The Error:
My problem is when I try to Export to a Excel file. I get the
following error :

The Stack Trace:
Error in File C:\DOCUME~1\HOME\ASPNET\LOCALS~1\Temp\ReportContac t
{5B6B59D4-D2C1-403A-B717-3C32790340E7}.rpt:
The request could not be submitted for background processing.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Error
in File C:\DOCUME~1\HOME\ASPNET\LOCALS~1\Temp\ReportContac t {5B6B59D4-
D2C1-403A-B717-3C32790340E7}.rpt:
The request could not be submitted for background processing.

[COMException (0x800002ad):
Error in File C:\DOCUME~1\HOME\ASPNET\LOCALS~1\Temp\ReportContac t
{5B6B59D4-D2C1-403A-B717-3C32790340E7}.rpt:
The request could not be submitted for background processing.]

CrystalDecisions.ReportAppServer.Controllers.Repor tSourceClass.Export(ExportOptions
pExportOptions, RequestContext pRequestContext) +0

CrystalDecisions.ReportSource.EromReportSourceBase .ExportToStream(ExportRequestContext
reqContext) +260

[InternalException:
Error in File C:\DOCUME~1\HOME\ASPNET\LOCALS~1\Temp\ReportContac t
{5B6B59D4-D2C1-403A-B717-3C32790340E7}.rpt:
The request could not be submitted for background processing.]

CrystalDecisions.ReportAppServer.ConvertDotNetToEr om.ThrowDotNetException(Exception
e) +700
/*/*/*/*/*/*/*/

Looking for a solution:
The problem happens when this line is hit:

objReport.ExportToHttpResponse(ExportFormatType.Ex cel, Response, True,
sFileName)
I don't get why the three other export works and this one does not. It
is the same code safe from the line above where the parameters differ
for the obvious reasons.

Can someone explain me how to export to a Excel File please ?
Pat

Apr 12 '07 #1
2 9785
I am also facing the same error.... As per diffrent findings on net, i
think its error of framework. It can be only solved if you redsign your
report

*** Sent via Developersdex http://www.developersdex.com ***
Apr 20 '07 #2
Pat
I thought about it over and over and I might have found some reasons
why it does not work:

1. There are some formula fields in my report where I concatenate
fields together (ie: {Table1.field1} + ' ' + {Table1.field2} + ' ' +
{Table1.field3} + ' ' + {Table1.field4}) whose fields are large
varchar fields (varchar(250) and over);

2. Some of these fields are treated like HTML (see Format object
contextual menu, paragraph tab, Text interpretation);
{Table2.field1} + '<br />' + {Table2.field2}

3. There might be a limitation on Excel cell length (no more than 255
characters per example) (?);

4. The Detail section is composed of 4 or 5 DetailSections (Details
A,B,C,D,E...) (?)

I am only guessing here, hoping someone has answers to my questions.

Thanks a lot Amit Modi for your reply.
Apr 20 '07 #3

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

Similar topics

1
by: timVerizon | last post by:
Hoping someone can help here.. Our application (C#.Net) was receiving IBM.Data.DB2.DB2Exceptions ERROR SQL0904N Unsuccessful execution caused by an unavailable resource. Reason code: '', type...
7
by: Jim Bancroft | last post by:
Hi everyone, A basic one here, I think. I haven't found the pattern yet, but sometimes when I cast a variable to another type using the "C" style cast operator the compiler refuses to play...
5
by: Studio P.M. | last post by:
Having built successfully my first HTTP Module prototype (as for Q307996 - HOW TO: Create an ASP.NET HTTP Module ...) without really understanding what I've done, now I kindly ask this community...
2
by: Just D. | last post by:
Who knows what should we include into aspx file to show some image as a background picture but only once at the top of the page? I don't want to add the Image control because even if it uses a...
0
by: Rocio | last post by:
Hi: I have many ASP.net application created by VB.net2003 and I'm using crystal reports for .net, I'm using the crystal viewer to display my reports. I deployed those applications with the...
2
by: mike_li | last post by:
On Window 2000 Professional Server DB2 UDB Level: DB2 code release "SQL07029" with level identifie "030A0105" and informational tokens "DB2 v7.1.0.98", "n040510" and "WR21337". In the...
2
by: Simon | last post by:
Dear reader, How to start the event "Activate" in a report as the report is a sub report. By opening the main report the event "Activate" in the sub report is not actived.. Thanks for any...
0
by: Sunshine | last post by:
The report generated correctly into the rpt but the abover error appeared when the report was exported (through crystal) into excel. Exporting into pdf worked as well. After two days of searching...
3
by: Learning.Net | last post by:
Hi All, I have an windows application created in C# &it is running fine on several of our customer. It does a httpWebrequest in the background. Everything was working fine but some customer are...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.