SpiceLogic Inc.
                                                                                                     SpiceLogic Inc. Home PageProductsJournalMy AccountHelp DeskContact Us
 
Knowledge base  : .NET Win HTML Editor Control    - Standard Edition
Welcome Guest   Login

Skip Navigation Links. .NET Win HTML Editor Control

Documentation  Documentation

Download   Download the latest version

Back to the home of knowledgebase forum System.AccessViolationException: Attempted to read or write protected memory

An user   3/21/2009 4:16:18 PM

Here is the error in full.  I have some clients getting this error in Vista.

It may not be 64-bit.  Does this error tell anything that helps?

 

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

 

************** Exception Text **************

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

  at WinHTMLEditorControl.winHTMLEditorControl.x32a5cd1b2dd9de20()

  at WinHTMLEditorControl.winHTMLEditorControl..ctor()

  at CLAutoPoster.frmForSale.InitializeComponent()

  at CLAutoPoster.frmForSale..ctor()

  at CLAutoPoster.AdMakerFactory.InitSingleton()

  at CLAutoPoster.AdMakerFactory.CreateAdMaker(Category c)

  at CLAutoPoster.frmMain.OnCategoryClick(Object sender, EventArgs e)

  at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

  at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

  at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

  at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

  at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

  at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

  at System.Windows.Forms.Control.WndProc(Message& m)

  at System.Windows.Forms.ToolStrip.WndProc(Message& m)

  at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)

  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

 

************** Loaded Assemblies ************** mscorlib

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

----------------------------------------

CL Auto Poster

    Assembly Version: 1.0.0.12

    Win32 Version: 1.0.0.12

    CodeBase:

file:///C:/Users/Nonyah/AppData/Local/Apps/2.0/TEX9O9AW.L12/R6P3D3GC.7TG/cla

u..tion_6735e978f63aa8d1_0001.0000_66b02cedbe3dc4b8/CL%20Auto%20Poster.exe

----------------------------------------

System.Windows.Forms

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561

934e089/System.Windows.Forms.dll

----------------------------------------

System

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System

.dll

----------------------------------------

System.Drawing

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3

a/System.Drawing.dll

----------------------------------------

CapGlobal

    Assembly Version: 1.0.0.0

    Win32 Version: 1.0.0.0

    CodeBase:

file:///C:/Users/Nonyah/AppData/Local/Apps/2.0/TEX9O9AW.L12/R6P3D3GC.7TG/cla

u..tion_6735e978f63aa8d1_0001.0000_66b02cedbe3dc4b8/CapGlobal.DLL

----------------------------------------

GlacialTreeList

    Assembly Version: 2.5.0.18491

    Win32 Version: 2.5.0.18491

    CodeBase:

file:///C:/Users/Nonyah/AppData/Local/Apps/2.0/TEX9O9AW.L12/R6P3D3GC.7TG/cla

u..tion_6735e978f63aa8d1_0001.0000_66b02cedbe3dc4b8/GlacialTreeList.DLL

----------------------------------------

System.Xml

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/Sy

stem.Xml.dll

----------------------------------------

System.Configuration

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f1

1d50a3a/System.Configuration.dll

----------------------------------------

cto6clhj

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System

.dll

----------------------------------------

69uzraog

    Assembly Version: 1.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System

.dll

----------------------------------------

lx4xoqkx

    Assembly Version: 1.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System

.dll

----------------------------------------

kyy1eeun

    Assembly Version: 1.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System

.dll

----------------------------------------

ddf2aruo

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System

.dll

----------------------------------------

kbfg0sau

    Assembly Version: 1.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System

.dll

----------------------------------------

TokenSpinner

    Assembly Version: 1.0.0.0

    Win32 Version: 1.0.0.0

    CodeBase:

file:///C:/Users/Nonyah/AppData/Local/Apps/2.0/TEX9O9AW.L12/R6P3D3GC.7TG/cla

u..tion_6735e978f63aa8d1_0001.0000_66b02cedbe3dc4b8/TokenSpinner.DLL

----------------------------------------

System.Web.Services

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11

d50a3a/System.Web.Services.dll

----------------------------------------

System.Management

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d5

0a3a/System.Management.dll

----------------------------------------

CL Auto Poster.XmlSerializers

    Assembly Version: 1.0.0.12

    Win32 Version: 1.0.0.12

    CodeBase:

file:///C:/Users/Nonyah/AppData/Local/Apps/2.0/TEX9O9AW.L12/R6P3D3GC.7TG/cla

u..tion_6735e978f63aa8d1_0001.0000_66b02cedbe3dc4b8/CL%20Auto%20Poster.XmlSe

rializers.DLL

----------------------------------------

wr6e-bwg

    Assembly Version: 1.0.0.12

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System

.dll

----------------------------------------

CapPlugin

    Assembly Version: 1.0.0.0

    Win32 Version: 1.0.0.0

    CodeBase:

file:///C:/Users/Nonyah/AppData/Local/Apps/2.0/TEX9O9AW.L12/R6P3D3GC.7TG/cla

u..tion_6735e978f63aa8d1_0001.0000_66b02cedbe3dc4b8/CapPlugin.DLL

----------------------------------------

Microsoft.ExceptionMessageBox

    Assembly Version: 9.0.242.0

    Win32 Version: 9.00.1399.00

    CodeBase:

file:///C:/Users/Nonyah/AppData/Local/Apps/2.0/TEX9O9AW.L12/R6P3D3GC.7TG/cla

u..tion_6735e978f63aa8d1_0001.0000_66b02cedbe3dc4b8/Microsoft.ExceptionMessa

geBox.DLL

----------------------------------------

WinHTMLEditorControl

    Assembly Version: 3.2.8.10

    Win32 Version: 3.2.8.10

    CodeBase:

file:///C:/Users/Nonyah/AppData/Local/Apps/2.0/TEX9O9AW.L12/R6P3D3GC.7TG/cla

u..tion_6735e978f63aa8d1_0001.0000_66b02cedbe3dc4b8/WinHTMLEditorControl.DLL

----------------------------------------

Microsoft.mshtml

    Assembly Version: 7.0.3300.0

    Win32 Version: 7.0.3300.0

    CodeBase:

file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3

a/Microsoft.mshtml.dll

----------------------------------------

System.Web

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)

    CodeBase:

file:///C:/Windows/assembly/GAC_64/System.Web/2.0.0.0__b03f5f7f11d50a3a/Syst

em.Web.dll

----------------------------------------

 

************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging enabled.

 

For example:

 

<configuration>

    <system.windows.forms jitDebugging="true" /> </configuration>

 

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.




An user   3/21/2009 4:20:54 PM

I just got feedback...it is 64-bit.  Seems to be the ONLY OS we are having this problem with and it seems to be your component.




- [SpiceLogic Support Technician]   3/21/2009 4:23:25 PM

We have started investigating this problem. But we are using Windows Vista 64bit operating system and we are never getting this problem at all. None of our clients who are using 64bit Vista also never reported this error. So, we need a way to regenerate this problem and so we are working on it. If we get any answer, we will update you.


Resolution:
- [SpiceLogic Support Technician]   3/21/2009 4:34:11 PM

Hi Todd,

We have downloaded your software from http://www.freethebots.com/ and we could regenerate the error in our machine. So, the same control does not throw Exception in our machine when we use it in our application, but it threw Exception in our machine when it is used in your application. So, we assumed that, there must but something wrong in your application's deployment of this control. So, we started reviewing the error message:

We found the following lines suspicious:

----------------------------------------

WinHTMLEditorControl

    Assembly Version: 3.2.8.10

    Win32 Version: 3.2.8.10

    CodeBase:

file:///C:/Users/Nonyah/AppData/Local/Apps/2.0/TEX9O9AW.L12/R6P3D3GC.7TG/cla

u..tion_6735e978f63aa8d1_0001.0000_66b02cedbe3dc4b8/WinHTMLEditorControl.DLL

----------------------------------------

Microsoft.mshtml

    Assembly Version: 7.0.3300.0

    Win32 Version: 7.0.3300.0

    CodeBase:

file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3

a/Microsoft.mshtml.dll

 

--------------------------------------------------

Please note: the MSHTML.dll is called from GAC. This Exception occurs usually when a managed dll is calling method from a COM dll and our control WinHtmlEditor dll is a managed control which is highly dependant on MSHTML.dll. So, it tried to call method in MSHTML.dll but it did not find the dll in the same folder, rather it was directed to see the mshtml.dll in the GAC and for some reason, in Vista 64, accessing GAC threw the "protected memory exception".

What we are thinking is: the mshtml.dll should not be pointed from GAC, rather it should be addressed from the same folder where the WinHtmlEditorControl.dll is located.

So, a possible solution:
Please check your ClickOnce installation settings and set the mshtml.dll option to INCLUDE instead of PREREQUISITE. Please note, it should be *INCLUDE*. Not even Inclue (auto). Moreover, please make sure that, the "CopyToLocal = True" in your project in Visual Studio for the reference of MSHTML.dll.

If that solution does not work, then I would request you to send us the Application files and let us make the installer. Once we make the installer, we will check if we get the same error or not.

Regards,
Nathan Tyson
Support, SpiceLogic INC.
www.SpiceLogic.com




Home  || Products  || Journal  || My Account  || HelpDesk  || Contact Us

Website and Software Copyright ©2010, SpiceLogic Inc., All Rights Reserved.