472,353 Members | 1,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 2681
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:...
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...
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...
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...
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...
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...
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...
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...
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...
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...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.