By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,364 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,364 IT Pros & Developers. It's quick & easy.

Error with Crystal Reports? Help

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.