473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Microsoft.mshtml.dll

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
2 9752
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Erich Hofacker | last post by:
Hello, I have written an application in .NET (C#) which uses some stuff from the Microsoft.mshtml. Unfortunately some customers reported that they are missing this DLL. Therefore we now...
3
by: Zürcher See | last post by:
I've wrote an application that use internet explorer to download some html page, to get the document I use the Microsoft.mshtml library. mshtml.IHTMLDocument3...
1
by: Dean Hallman | last post by:
I need to ensure client machine has Microsoft.mshtml installed in the GAC. And if not, deploy it. My app is a Browser Helper Object and depends on mshtml. Initially, I thought I could take care...
0
by: John Bowman | last post by:
Hi, I've got a simple C# (.NET 1.1) app that will run only on Win2K and WinXP (min IE ver. 5.01) that uses the ax webbrowser control to display a simple hmtl page and disables the right click...
2
by: Pooja Renukdas | last post by:
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 ...
1
by: bernhard schelling | last post by:
Hi, I'm using Visual C# Express and I'd like to build a project available from http://download.microsoft.com/download/f/2/7/f279e71e-efb0-4155-873d-5554a0608523/WSRP.exe Somehow the Refernce...
0
by: Filippo Bettinaglio | last post by:
Hi all, In the past 3 days I have done some research about Microsoft.mshtml component within .NET 2 framework. I need some clarification/comfermation about the Microsoft.mshtml componet and...
2
by: JM | last post by:
Hi, I have created a windows application which uses Microsoft.mshtml.dll for displaying browser window in the application for showing html. When I am creating a setup program, I have to...
0
by: ankouny | last post by:
Dear, when trying to publish a web service to the server the following error occurs, knowing that it is running normal on the local machine. Please help. Server Error in '/IVRLAF' Application....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.