Microsoft.mshtml.dll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pooja Renukdas

    #1

    Microsoft.mshtml.dll

    Hello,

    i am using the Microsoft.mshtm l.dll to access the DOM in the HTML page
    when i use the Collection object it gives me the ExecutionEngine Exception
    execption

    The code is given below

    Dim htmlCollection As IHTMLElementCol lection

    Dim coll As mshtml.HTMLDTEl ement

    htmlCollection = m_MainHtmlDoc.g etElementsByTag Name("*")

    For Each coll In htmlCollection

    Try

    Select Case LCase(coll.tagN ame)

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

    coll.setAttribu te("disabled", "true")

    Case "a"

    CType(coll, HTMLAnchorEleme nt).setAttribut e("href", "")

    End Select

    Catch se As ExecutionEngine Exception

    HttpContext.Cur rent.Response.W rite(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



  • Michael Giagnocavo [MVP]

    #2
    Re: Microsoft.mshtm l.dll

    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" <poojar@metasys software.com> wrote in message
    news:uRiZLwJbDH A.2632@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Hello,
    >
    > i am using the Microsoft.mshtm l.dll to access the DOM in the HTML[/color]
    page[color=blue]
    > when i use the Collection object it gives me the[/color]
    ExecutionEngine Exception[color=blue]
    > execption
    >
    > The code is given below
    >
    > Dim htmlCollection As IHTMLElementCol lection
    >
    > Dim coll As mshtml.HTMLDTEl ement
    >
    > htmlCollection = m_MainHtmlDoc.g etElementsByTag Name("*")
    >
    > For Each coll In htmlCollection
    >
    > Try
    >
    > Select Case LCase(coll.tagN ame)
    >
    > Case "input", "img", "textarea", "span"
    >
    > coll.setAttribu te("disabled", "true")
    >
    > Case "a"
    >
    > CType(coll, HTMLAnchorEleme nt).setAttribut e("href", "")
    >
    > End Select
    >
    > Catch se As ExecutionEngine Exception
    >
    > HttpContext.Cur rent.Response.W rite(se.Message .ToString())
    >
    > End Try
    >
    > Next
    >
    >
    >
    >
    >
    > When i debug then it gives me an EngineExecution exception when it[/color]
    enters[color=blue]
    > the Select case statement
    >
    > i do not why this happens?
    >
    > is there a solution to solve this?
    >
    >
    >
    > Pooja Renukdas
    >
    >
    >[/color]


    Comment

    • Pooja Renukdas

      #3
      Re: Microsoft.mshtm l.dll

      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.MSHtm l.dll will not work with
      Framework version 1.0?
      isn't there any other solution?

      Pooja

      "Michael Giagnocavo [MVP]" <mggUNSPAM@Atre vido.net> wrote in message
      news:ej4O8SLbDH A.2344@TK2MSFTN GP12.phx.gbl...[color=blue]
      > 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" <poojar@metasys software.com> wrote in message
      > news:uRiZLwJbDH A.2632@TK2MSFTN GP09.phx.gbl...[color=green]
      > > Hello,
      > >
      > > i am using the Microsoft.mshtm l.dll to access the DOM in the HTML[/color]
      > page[color=green]
      > > when i use the Collection object it gives me the[/color]
      > ExecutionEngine Exception[color=green]
      > > execption
      > >
      > > The code is given below
      > >
      > > Dim htmlCollection As IHTMLElementCol lection
      > >
      > > Dim coll As mshtml.HTMLDTEl ement
      > >
      > > htmlCollection = m_MainHtmlDoc.g etElementsByTag Name("*")
      > >
      > > For Each coll In htmlCollection
      > >
      > > Try
      > >
      > > Select Case LCase(coll.tagN ame)
      > >
      > > Case "input", "img", "textarea", "span"
      > >
      > > coll.setAttribu te("disabled", "true")
      > >
      > > Case "a"
      > >
      > > CType(coll, HTMLAnchorEleme nt).setAttribut e("href", "")
      > >
      > > End Select
      > >
      > > Catch se As ExecutionEngine Exception
      > >
      > > HttpContext.Cur rent.Response.W rite(se.Message .ToString())
      > >
      > > End Try
      > >
      > > Next
      > >
      > >
      > >
      > >
      > >
      > > When i debug then it gives me an EngineExecution exception when it[/color]
      > enters[color=green]
      > > the Select case statement
      > >
      > > i do not why this happens?
      > >
      > > is there a solution to solve this?
      > >
      > >
      > >
      > > Pooja Renukdas
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...