How to remove marshaling errors for COM-interop or PInvoke

Mar 3 2017 5:14 AM

How to remove marshaling errors for COM-interop or PInvoke


Hi

I am developing the application in visual studio web forms

I am using the following Softwares

Microsoft Visual Studio Ultimate 2012
Version 11.0.50727.1 RTMREL
Microsoft .NET Framework
Version 4.6.00081

Installed Version: Ultimate

Architecture and Modeling Tools 04940-004-0038003-02656
Microsoft Architecture and Modeling Tools

UML® and Unified Modeling Language™ are trademarks or registered trademarksof the Object Management Group, Inc. in the United States and other countries.

LightSwitch for Visual Studio 2012 04940-004-0038003-02656
Microsoft LightSwitch for Visual Studio 2012

Office Developer Tools 04940-004-0038003-02656
Microsoft Office Developer Tools

Team Explorer for Visual Studio 2012 04940-004-0038003-02656
Microsoft Team Explorer for Visual Studio 2012

Visual Basic 2012 04940-004-0038003-02656
Microsoft Visual Basic 2012

Visual C# 2012 04940-004-0038003-02656
Microsoft Visual C# 2012

Visual C++ 2012 04940-004-0038003-02656
Microsoft Visual C++ 2012

Visual F# 2012 04940-004-0038003-02656
Microsoft Visual F# 2012

Visual Studio 2012 Code Analysis Spell Checker 04940-004-0038003-02656
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Visual Studio 2012 SharePoint Developer Tools 04940-004-0038003-02656
Microsoft Visual Studio 2012 SharePoint Developer Tools

ASP.NET and Web Tools 2013.1.41108
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

ASP.NET Web Frameworks and Tools 2013.1 5.0.11113.0
For additional information, visit http://www.asp.net/

Crystal Reports for .NET Framework
Crystal Reports for .NET Framework


InstallShield Limited Edition
InstallShield. For more information visit the Flexera Software website at <http://www.FlexeraSoftware.com>. Copyright © 2015 Flexera Software LLC. All Rights Reserved.

NuGet Package Manager 2.8.60318.667
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer 1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools 11.1.20627.00
Microsoft SQL Server Data Tools

While executing the application ,I am getting error

The runtime has encountered a fatal error. The address of the error was at 0x6d46de47, on thread 0x15ac. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

Some times I am geting error.

Accessviolation exception handled

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Please help me to fix the error.If not Is it necessary to reinstall asp.net?

Thanks and Regards

Chandran