By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,009 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Microsoft.mshtml.dll

P: n/a
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.ToSt ring())

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

Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


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

-mike
MVP

"Pooja Renukdas" <po****@metasyssoftware.com> wrote in message
news:uR**************@TK2MSFTNGP09.phx.gbl...
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.ToSt ring())

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

Jul 19 '05 #2

P: n/a
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

"Michael Giagnocavo [MVP]" <mg*******@Atrevido.net> wrote in message
news:ej**************@TK2MSFTNGP12.phx.gbl...
Can you create a small reproduction case? What version of the
framework are you using (can you try with v1.1)?

-mike
MVP

"Pooja Renukdas" <po****@metasyssoftware.com> wrote in message
news:uR**************@TK2MSFTNGP09.phx.gbl...
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.ToSt ring())

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


Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.