473,466 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error with Crystal Reports? Help

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 my knowledge nothing was
changed on the server.

Here is the error:

Error in File C:\DOCUME~1\WEBSERVER\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid export
DLL or export format.
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:
CrystalDecisions.CrystalReports.Engine.InvalidArgu mentException: Error in
File C:\DOCUME~1\PLUTO\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid export
DLL or export format.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:
[InvalidArgumentException: Error in File C:\DOCUME~1\PLUTO\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt:
Invalid export DLL or export format.]
.F(String  , EngineExceptionErrorID 
) +406
.A(Int16 , Int32 ) +537

CrystalDecisions.CrystalReports.Engine.FormatEngin e.internalSetExportOptions
(ExportOptions exportOptions) +3403

CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export(ExportRequestCont
ext reqContext) +262
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export() +107
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Export() +67
Bonds_Reports.WebForm1.convertToPDF() +215
Bonds_Reports.WebForm1.ddlSort_SelectedIndexChange d(Object sender,
EventArgs e) +135
System.Web.UI.WebControls.ListControl.OnSelectedIn dexChanged(EventArgs e)
+108

System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.Ra
isePostDataChangedEvent() +26
System.Web.UI.Page.RaiseChangedEvents() +115
System.Web.UI.Page.ProcessRequestMain() +1081


----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4

Does anyone understand what might be happening?
Nov 18 '05 #1
3 2789
Perhaps someone can see a flaw in my code for exporting the files to pdf:

private void convertToPDF()
{

CrystalDecisions.Shared.DiskFileDestinationOptions DiskOpts = new
CrystalDecisions.Shared.DiskFileDestinationOptions ();
sqlSelectCommand1.Parameters["@date1"].Value =
DateTime.Parse(TextBox1.Text);
sqlSelectCommand1.Parameters["@date2"].Value =
DateTime.Parse(TextBox2.Text);
BondExpiration oRpt = new BondExpiration();
oRpt.SetDataSource(dsBondExpiration1);
oRpt.ExportOptions.ExportDestinationType =
CrystalDecisions.Shared.ExportDestinationType.Disk File;
oRpt.ExportOptions.ExportFormatType =
CrystalDecisions.Shared.ExportFormatType.PortableD ocFormat;
string FilePath = Server.MapPath(@".\Report\") + "BondExpiration.pdf";
DiskOpts.DiskFileName = FilePath;
oRpt.ExportOptions.DestinationOptions = DiskOpts;
oRpt.Export();
CrystalReportViewer1.ReportSource = oRpt;
CrystalReportViewer1.Visible = true;
CrystalReportViewer1.DataBind();
}

Like I said, it used to work on my production server and still works on my
development machine. The only major difference between the 2 machines is
the production server is running Window 2000 Server and production is
Windows XP Pro.
"Russ" <ru**@NOSPAMacordiamn.com> wrote in message
news:uw**************@TK2MSFTNGP10.phx.gbl...
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 my knowledge nothing was
changed on the server.

Here is the error:

Error in File C:\DOCUME~1\WEBSERVER\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid export DLL or export format.
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:
CrystalDecisions.CrystalReports.Engine.InvalidArgu mentException: Error in
File C:\DOCUME~1\PLUTO\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid export DLL or export format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[InvalidArgumentException: Error in File C:\DOCUME~1\PLUTO\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt:
Invalid export DLL or export format.]
.F(String  , EngineExceptionErrorID 
) +406
.A(Int16 , Int32 ) +537

CrystalDecisions.CrystalReports.Engine.FormatEngin e.internalSetExportOptions (ExportOptions exportOptions) +3403

CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export(ExportRequestCont ext reqContext) +262
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export() +107
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Export() +67
Bonds_Reports.WebForm1.convertToPDF() +215
Bonds_Reports.WebForm1.ddlSort_SelectedIndexChange d(Object sender,
EventArgs e) +135
System.Web.UI.WebControls.ListControl.OnSelectedIn dexChanged(EventArgs e) +108

System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.Ra isePostDataChangedEvent() +26
System.Web.UI.Page.RaiseChangedEvents() +115
System.Web.UI.Page.ProcessRequestMain() +1081


-------------------------------------------------------------------------- -- ----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4

Does anyone understand what might be happening?

Nov 18 '05 #2
Hi
http://support.crystaldecisions.com/...s/c2007034.asp

"Russ" <ru**@NOSPAMacordiamn.com> wrote in message news:<e#**************@TK2MSFTNGP11.phx.gbl>...
Perhaps someone can see a flaw in my code for exporting the files to pdf:

private void convertToPDF()
{

CrystalDecisions.Shared.DiskFileDestinationOptions DiskOpts = new
CrystalDecisions.Shared.DiskFileDestinationOptions ();
sqlSelectCommand1.Parameters["@date1"].Value =
DateTime.Parse(TextBox1.Text);
sqlSelectCommand1.Parameters["@date2"].Value =
DateTime.Parse(TextBox2.Text);
BondExpiration oRpt = new BondExpiration();
oRpt.SetDataSource(dsBondExpiration1);
oRpt.ExportOptions.ExportDestinationType =
CrystalDecisions.Shared.ExportDestinationType.Disk File;
oRpt.ExportOptions.ExportFormatType =
CrystalDecisions.Shared.ExportFormatType.PortableD ocFormat;
string FilePath = Server.MapPath(@".\Report\") + "BondExpiration.pdf";
DiskOpts.DiskFileName = FilePath;
oRpt.ExportOptions.DestinationOptions = DiskOpts;
oRpt.Export();
CrystalReportViewer1.ReportSource = oRpt;
CrystalReportViewer1.Visible = true;
CrystalReportViewer1.DataBind();
}

Like I said, it used to work on my production server and still works on my
development machine. The only major difference between the 2 machines is
the production server is running Window 2000 Server and production is
Windows XP Pro.
"Russ" <ru**@NOSPAMacordiamn.com> wrote in message
news:uw**************@TK2MSFTNGP10.phx.gbl...
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 my knowledge nothing was
changed on the server.

Here is the error:

Error in File C:\DOCUME~1\WEBSERVER\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid

export
DLL or export format.
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:
CrystalDecisions.CrystalReports.Engine.InvalidArgu mentException: Error in
File C:\DOCUME~1\PLUTO\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid

export
DLL or export format.

Source Error:

An unhandled exception was generated during the execution of the current

web
request. Information regarding the origin and location of the exception

can
be identified using the exception stack trace below.

Stack Trace:
[InvalidArgumentException: Error in File C:\DOCUME~1\PLUTO\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt:
Invalid export DLL or export format.]
. F(String , EngineExceptionErrorID
) +406
. A(Int16 , Int32 ) +537

CrystalDecisions.CrystalReports.Engine.FormatEngin e.internalSetExportOptions
(ExportOptions exportOptions) +3403

CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export(ExportRequestCont
ext reqContext) +262
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export() +107
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Export() +67
Bonds_Reports.WebForm1.convertToPDF() +215
Bonds_Reports.WebForm1.ddlSort_SelectedIndexChange d(Object sender,
EventArgs e) +135
System.Web.UI.WebControls.ListControl.OnSelectedIn dexChanged(EventArgs

e)
+108

System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.Ra
isePostDataChangedEvent() +26
System.Web.UI.Page.RaiseChangedEvents() +115
System.Web.UI.Page.ProcessRequestMain() +1081


--------------------------------------------------------------------------

--
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573;

ASP.NET
Version:1.1.4

Does anyone understand what might be happening?

Nov 18 '05 #3
Hi...

Pl. make sure the cystal report for .Net is installed on your production
server.

Which model have you used in your crystal report? Push or pull???

Do you have the same database name in bothe developement and production
server...

Are you deleteing the temp files generated after each export?...

pl. try that....
"A.Hadi" <ah****@hotmail.com> wrote in message
news:59**************************@posting.google.c om...
Hi
http://support.crystaldecisions.com/...s/c2007034.asp

"Russ" <ru**@NOSPAMacordiamn.com> wrote in message

news:<e#**************@TK2MSFTNGP11.phx.gbl>...
Perhaps someone can see a flaw in my code for exporting the files to pdf:

private void convertToPDF()
{

CrystalDecisions.Shared.DiskFileDestinationOptions DiskOpts = new
CrystalDecisions.Shared.DiskFileDestinationOptions ();
sqlSelectCommand1.Parameters["@date1"].Value =
DateTime.Parse(TextBox1.Text);
sqlSelectCommand1.Parameters["@date2"].Value =
DateTime.Parse(TextBox2.Text);
BondExpiration oRpt = new BondExpiration();
oRpt.SetDataSource(dsBondExpiration1);
oRpt.ExportOptions.ExportDestinationType =
CrystalDecisions.Shared.ExportDestinationType.Disk File;
oRpt.ExportOptions.ExportFormatType =
CrystalDecisions.Shared.ExportFormatType.PortableD ocFormat;
string FilePath = Server.MapPath(@".\Report\") + "BondExpiration.pdf"; DiskOpts.DiskFileName = FilePath;
oRpt.ExportOptions.DestinationOptions = DiskOpts;
oRpt.Export();
CrystalReportViewer1.ReportSource = oRpt;
CrystalReportViewer1.Visible = true;
CrystalReportViewer1.DataBind();
}

Like I said, it used to work on my production server and still works on my development machine. The only major difference between the 2 machines is the production server is running Window 2000 Server and production is
Windows XP Pro.
"Russ" <ru**@NOSPAMacordiamn.com> wrote in message
news:uw**************@TK2MSFTNGP10.phx.gbl...
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 my knowledge nothing
was changed on the server.

Here is the error:

Error in File C:\DOCUME~1\WEBSERVER\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid

export
DLL or export format.
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:
CrystalDecisions.CrystalReports.Engine.InvalidArgu mentException: Error in File C:\DOCUME~1\PLUTO\ASPNET\Local
Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid

export
DLL or export format.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the
exception can
be identified using the exception stack trace below.

Stack Trace:
[InvalidArgumentException: Error in File
C:\DOCUME~1\PLUTO\ASPNET\Local Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt:
Invalid export DLL or export format.]
. F(String , EngineExceptionErrorID
) +406
. A(Int16 , Int32 ) +537

CrystalDecisions.CrystalReports.Engine.FormatEngin e.internalSetExportOptions
(ExportOptions exportOptions) +3403

CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export(ExportRequestCont
ext reqContext) +262
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export() +107
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Export() +67
Bonds_Reports.WebForm1.convertToPDF() +215
Bonds_Reports.WebForm1.ddlSort_SelectedIndexChange d(Object sender,
EventArgs e) +135
System.Web.UI.WebControls.ListControl.OnSelectedIn dexChanged(EventArgs e)
+108

System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.Ra isePostDataChangedEvent() +26
System.Web.UI.Page.RaiseChangedEvents() +115
System.Web.UI.Page.ProcessRequestMain() +1081

--------------------------------------------------------------------------
--
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573;

ASP.NET
Version:1.1.4

Does anyone understand what might be happening?

Nov 18 '05 #4

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

Similar topics

1
by: Ron Holmes | last post by:
I posted this question on the Crystal Reports Support site and I am still waiting for an answer. Using Crystal Reports 9.0 Developer Full edition: My Crystal report .RPT file has a Picture box...
6
by: mf_sina | last post by:
Hi all! Why programs i have designed on my PC using MS visual studio .Net runs on my computer but can't run on other computers? now i have installed .net framework on them but crystal reports...
2
by: Volkan Karaboða | last post by:
I have an aspx that contains a report prepared with crystal report, when I try to run myapp. on another server which has no crystal report tool installed on it. I receive following error code even...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
7
by: mrwoopey | last post by:
I have a asp.net application that uses the crystal report viewer control. It displays all of my reports but all of a sudden it started giving me the following error on ONLY two reports: "Fail...
0
by: T.J. | last post by:
I have gotten great help here in the past, and after searching and researching this error, I felt I would turn to the board and see if I could come across any further assistance. Any advice will...
2
by: matt | last post by:
hello, i have an .RPT file that i am using to load a report via the ASP.NET CrystalReportViewer control. i dont include my .RPTs as embedded resources...instead i load the absolute path of the...
6
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
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...
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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
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
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
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
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.