Microsoft.mshtml.dll

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
 
M

Michael Giagnocavo [MVP]

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

-mike
MVP
 
P

Pooja Renukdas

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top