Microsoft.mshtml.dll

  • Thread starter Thread starter Pooja Renukdas
  • Start date Start date
P

Pooja Renukdas

Hello,

i am using the Microsoft.mshtml.dll to access the DOM in the HTML page
when i use the Collection object it gives me the ExecutionEngineException
execption

The code is given below

Dim htmlCollection As IHTMLElementCollection

Dim coll As mshtml.HTMLDTElement

htmlCollection = m_MainHtmlDoc.getElementsByTagName("*")

For Each coll In htmlCollection

Try

Select Case LCase(coll.tagName)

Case "input", "img", "textarea", "span"

coll.setAttribute("disabled", "true")

Case "a"

CType(coll, HTMLAnchorElement).setAttribute("href", "")

End Select

Catch se As ExecutionEngineException

HttpContext.Current.Response.Write(se.Message.ToString())

End Try

Next





When i debug then it gives me an EngineExecution exception when it enters
the Select case statement

i do not why this happens?

is there a solution to solve this?



Pooja Renukdas
 
Can you create a small reproduction case? What version of the
framework are you using (can you try with v1.1)?

-mike
MVP
 
Michael,

i doubt if i can create it.
Since the development has already begun now and
we are halfway through.
So we might not be able to change the Framework version now.
But does this solution mean that Microsoft.MSHtml.dll will not work with
Framework version 1.0?
isn't there any other solution?

Pooja
 
Back
Top