King Eric
King Eric

Reputation: 1

I'm getting error Method not found: 'Void System.Runtime.InteropServices.Marshal.StructureToPtr(!!0, IntPtr, Boolean)'

I have installed Visual studio 2010, dotnetframework 4.0 and SAP CrystalReport 13.

But I run website on IIS :

Server Error in '/' Application. Method not found: 'Void System.Runtime.InteropServices.Marshal.StructureToPtr(!!0, IntPtr, Boolean)'. 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.MissingMethodException: Method not found: 'Void System.Runtime.InteropServices.Marshal.StructureToPtr(!!0, IntPtr, Boolean)'.

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:

[MissingMethodException: Method not found: 'Void System.Runtime.InteropServices.Marshal.StructureToPtr(!!0, IntPtr, Boolean)'.]
CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.Wrap(Object dataset, CrdbAdoPlusDelegate& adoPlusDelegate) +0
CrystalDecisions.CrystalReports.Engine.Table.WrapAndCacheDotNetObject(Object val, Type type, ISCRAdoNetDataSet& crAdoNetDataSet) +240
CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type) +344
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) +142
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataTable dataTable) +66 ReportView.Page_Load(Object sender, EventArgs e) +46720 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

pls help me ! thanks.

Upvotes: 0

Views: 2496

Answers (1)

kepler-1b
kepler-1b

Reputation: 1

Upgrade .net to 4.5.2 or newer

Upvotes: 0

Related Questions