473,386 Members | 1,699 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,386 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 9751
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.