cancel
Showing results for 
Search instead for 
Did you mean: 

an unhandled win32 exception occurred in w3wp.exe [6188]

Former Member
0 Kudos

I make Crystal report file in visual web part in SharePoint 2010 and I got this exception "an unhandled win32 exception occurred in w3wp.exe [6188]" when in debugger that error occurred in this code

when I set data table to CrystalReportSource

CrystalReportSource1.ReportDocument.SetDataSource(MyDataTable);

CrystalReportViewer2.ReportSource = CrystalReportSource1;

I follow this link http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/4a86e5a5-a2fc-48f3... but I got same problem

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

What version of Crystal Reports?

What version of .NET?

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

Hi,

Thanks for your reply. I am using VS2010 (ver 13.0.2000.0 of crystal report).

sanjev Khanna

former_member183750
Active Contributor
0 Kudos

Sharepoint 2010 being 64bit you'll need to ensure that the 64bit CR runtime is installed. once that is done, does it work outside of the IDE after compiling?

Also, try adding the datatable to a dataset (specifying the tablename thatu2019s used in the report) and use SetDataSource() on the Dataset rather than the datatable.

- Ludek

Former Member
0 Kudos

Hi Ludek,

Thanks for your reply. I foud the solution for that problem. I have chage <trust level="WSS_Minimal" originUrl="" />

to <trust level="Full" originUrl="" /> in config file of my site collection. Now every thing is working fine.

Sanjeev Khanna

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ludek,

I am also getting the exception "An unhandled win32 exception occurred in w3wp.exe [8100]." while executing the Crystal Report at the line


CrystalReportViewerSage300.ReportSource = rpt.GetReportDocument();


I am using VS 2013 on Windows 7 (64 bit) with Crystal Report SAP Version 13.0


I am using a Session Wrapper class VB6.0 dll to execute the report.

My Code block is as below:-

var reportPath = Server.MapPath("~").Replace("Projects\\Sage.CA.SBS.ERP.Sage300.Web", "") + "Reports" + @"\" + "apacct1z.rpt";

            Session session;

            // Create, initialize and open a session.

            session = new Session();

            session.InitEx(null, "", "XY", "XY1000", "62A");

            session.Open("ADMIN", "ADMIN", "SAMINC", DateTime.Today, 0);

            ACCPAC.Advantage.Report rpt = session.ReportSelect(reportPath, "AP7102", "AP7102");

            rpt.SetParam("FROMCODE", "");

            rpt.SetParam("TOCODE", "ZZZZZZ");

            rpt.SetParam("FUNCCURN", "USD");

            rpt.SetParam("MULTCURN?", "N");

            CrystalReportViewerSage300.ReportSource = rpt.GetReportDocument();

            CrystalReportViewerSage300.DataBind();

Please help...

Thanks in Advance.

former_member183750
Active Contributor
0 Kudos

Totally different issue. Only the error is the same. Please create a new Discussion.

- Ludek