473,322 Members | 1,417 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,322 software developers and data experts.

WebBrowser class

Hello All,
I'm currently developing a free windows Scrabble (in french :)) application
that uses extensively the WebBrowser class of NET 2.0 for configuration, and
data browsing. It works 100% on my machine, with the WebBrowser Class, and
the Microsoft.MsHtml component. I can access all elements on the pages
through the events, I can change some parts. Everything is rendered with
XSLTs and changing directly the document through the msHtml thing.

But apparently, it works only well on both of my machines :-)

When I deploy the application, Enabling / Disabling controls does not work
and when the application try to access a SelectElement the users got that
error :
Unable to cast COM object of type 'System.__ComObject' to class type
'mshtml.HTMLSelectElementClass'. COM components that enter the CLR and do
not support IProvideClassInfo or that do not have any interop assembly
registered will be wrapped in the __ComObject type. Instances of this type
cannot be cast to any other class; however they can be cast to interfaces as
long as the underlying COM component supports QueryInterface calls for the
IID of the interface.

The Microsoft.MsHtml is copied with the application and all users have a
correct installation, as it is the only thing that doesn't work

does anyone knows what I have to do, to make it work on machines that
shouldn't be loaded with Visual Studio, as it's the only difference I can
figure out with my machines and users machines ?

Thank you

Laurent
Apr 15 '06 #1
15 5645
VJ
I believe the Microsoft.MsHtml is a COM component.. Try registering it when
installing it. If you are using VS Packaging.. there is a option to do this
for a single file in the properties windows. Check the properties, the
property name is pretty obvious..

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP04.phx.gbl...
Hello All,
I'm currently developing a free windows Scrabble (in french :))
application
that uses extensively the WebBrowser class of NET 2.0 for configuration,
and
data browsing. It works 100% on my machine, with the WebBrowser Class, and
the Microsoft.MsHtml component. I can access all elements on the pages
through the events, I can change some parts. Everything is rendered with
XSLTs and changing directly the document through the msHtml thing.

But apparently, it works only well on both of my machines :-)

When I deploy the application, Enabling / Disabling controls does not work
and when the application try to access a SelectElement the users got that
error :
Unable to cast COM object of type 'System.__ComObject' to class type
'mshtml.HTMLSelectElementClass'. COM components that enter the CLR and do
not support IProvideClassInfo or that do not have any interop assembly
registered will be wrapped in the __ComObject type. Instances of this type
cannot be cast to any other class; however they can be cast to interfaces
as
long as the underlying COM component supports QueryInterface calls for the
IID of the interface.

The Microsoft.MsHtml is copied with the application and all users have a
correct installation, as it is the only thing that doesn't work

does anyone knows what I have to do, to make it work on machines that
shouldn't be loaded with Visual Studio, as it's the only difference I can
figure out with my machines and users machines ?

Thank you

Laurent

Apr 15 '06 #2
Euh I don"t thinkk so, it has been found in the NET components into the
references of my project, but maybe it's just a wrapper class, and it's
dependent of another DLL ? But No idea which one :-)
"VJ" <vi********@yahoo.com> a écrit dans le message de
news:Ob**************@TK2MSFTNGP03.phx.gbl...
I believe the Microsoft.MsHtml is a COM component.. Try registering it when installing it. If you are using VS Packaging.. there is a option to do this for a single file in the properties windows. Check the properties, the
property name is pretty obvious..

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP04.phx.gbl...
Hello All,
I'm currently developing a free windows Scrabble (in french :))
application
that uses extensively the WebBrowser class of NET 2.0 for configuration,
and
data browsing. It works 100% on my machine, with the WebBrowser Class, and the Microsoft.MsHtml component. I can access all elements on the pages
through the events, I can change some parts. Everything is rendered with
XSLTs and changing directly the document through the msHtml thing.

But apparently, it works only well on both of my machines :-)

When I deploy the application, Enabling / Disabling controls does not work and when the application try to access a SelectElement the users got that error :
Unable to cast COM object of type 'System.__ComObject' to class type
'mshtml.HTMLSelectElementClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly
registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however they can be cast to interfaces as
long as the underlying COM component supports QueryInterface calls for the IID of the interface.

The Microsoft.MsHtml is copied with the application and all users have a
correct installation, as it is the only thing that doesn't work

does anyone knows what I have to do, to make it work on machines that
shouldn't be loaded with Visual Studio, as it's the only difference I can figure out with my machines and users machines ?

Thank you

Laurent


Apr 15 '06 #3
VJ
uhmm.. yes sorry, I just saw that myself... If you are using the browser
object or the MS Browser control, that will its own set of Dlls..uhmm lets
see.. Can you tell me how you are building your setup project?., Just like a
including a Project Output into VS.NET setup project and then building?
VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Euh I don"t thinkk so, it has been found in the NET components into the
references of my project, but maybe it's just a wrapper class, and it's
dependent of another DLL ? But No idea which one :-)
"VJ" <vi********@yahoo.com> a écrit dans le message de
news:Ob**************@TK2MSFTNGP03.phx.gbl...
I believe the Microsoft.MsHtml is a COM component.. Try registering it

when
installing it. If you are using VS Packaging.. there is a option to do

this
for a single file in the properties windows. Check the properties, the
property name is pretty obvious..

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP04.phx.gbl...
> Hello All,
>
>
> I'm currently developing a free windows Scrabble (in french :))
> application
> that uses extensively the WebBrowser class of NET 2.0 for
> configuration,
> and
> data browsing. It works 100% on my machine, with the WebBrowser Class, and > the Microsoft.MsHtml component. I can access all elements on the pages
> through the events, I can change some parts. Everything is rendered
> with
> XSLTs and changing directly the document through the msHtml thing.
>
> But apparently, it works only well on both of my machines :-)
>
> When I deploy the application, Enabling / Disabling controls does not work > and when the application try to access a SelectElement the users got that > error :
> Unable to cast COM object of type 'System.__ComObject' to class type
> 'mshtml.HTMLSelectElementClass'. COM components that enter the CLR and do > not support IProvideClassInfo or that do not have any interop assembly
> registered will be wrapped in the __ComObject type. Instances of this type > cannot be cast to any other class; however they can be cast to interfaces > as
> long as the underlying COM component supports QueryInterface calls for the > IID of the interface.
>
> The Microsoft.MsHtml is copied with the application and all users have
> a
> correct installation, as it is the only thing that doesn't work
>
> does anyone knows what I have to do, to make it work on machines that
> shouldn't be loaded with Visual Studio, as it's the only difference I can > figure out with my machines and users machines ?
>
> Thank you
>
> Laurent
>
>



Apr 15 '06 #4
Hello VJ :-)

No I add the Microsoft.mshtml.dll in addition of the project output and
other things. The application is running well everywhere for
reading/settings values in the forms of the browser. But it does not disable
the controls, and I can not access the options of a select control, however
the value can be read from the value of SelectElementClass. Things that are
working well on my computer.
Really strange

Laurent

"VJ" <vi********@yahoo.com> a écrit dans le message de
news:u8**************@TK2MSFTNGP02.phx.gbl...
uhmm.. yes sorry, I just saw that myself... If you are using the browser
object or the MS Browser control, that will its own set of Dlls..uhmm lets
see.. Can you tell me how you are building your setup project?., Just like a including a Project Output into VS.NET setup project and then building?
VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Euh I don"t thinkk so, it has been found in the NET components into the
references of my project, but maybe it's just a wrapper class, and it's
dependent of another DLL ? But No idea which one :-)
"VJ" <vi********@yahoo.com> a écrit dans le message de
news:Ob**************@TK2MSFTNGP03.phx.gbl...
I believe the Microsoft.MsHtml is a COM component.. Try registering it

when
installing it. If you are using VS Packaging.. there is a option to do

this
for a single file in the properties windows. Check the properties, the
property name is pretty obvious..

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP04.phx.gbl...
> Hello All,
>
>
> I'm currently developing a free windows Scrabble (in french :))
> application
> that uses extensively the WebBrowser class of NET 2.0 for
> configuration,
> and
> data browsing. It works 100% on my machine, with the WebBrowser Class,
and
> the Microsoft.MsHtml component. I can access all elements on the
pages > through the events, I can change some parts. Everything is rendered
> with
> XSLTs and changing directly the document through the msHtml thing.
>
> But apparently, it works only well on both of my machines :-)
>
> When I deploy the application, Enabling / Disabling controls does not

work
> and when the application try to access a SelectElement the users got

that
> error :
> Unable to cast COM object of type 'System.__ComObject' to class type
> 'mshtml.HTMLSelectElementClass'. COM components that enter the CLR and do
> not support IProvideClassInfo or that do not have any interop
assembly > registered will be wrapped in the __ComObject type. Instances of this

type
> cannot be cast to any other class; however they can be cast to

interfaces
> as
> long as the underlying COM component supports QueryInterface calls for the
> IID of the interface.
>
> The Microsoft.MsHtml is copied with the application and all users

have > a
> correct installation, as it is the only thing that doesn't work
>
> does anyone knows what I have to do, to make it work on machines that
> shouldn't be loaded with Visual Studio, as it's the only difference I

can
> figure out with my machines and users machines ?
>
> Thank you
>
> Laurent
>
>



Apr 15 '06 #5
VJ
I am sure you would have checked.. but I am asking.. are these end computers
having the same .NET framework installed as your development machine? If the
end computers have multiple versions, you should makes sure your application
uses whatever version you developed on is being loaded at run-time by your
application. The VS.NET environment does this automatically for you.. This
is just a thought in case you missed it..

or

Do you know how to get dependencies of a specific DLL.. once you get this
dependencies.. you can make sure they are all installed on end computer..

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl...
Hello VJ :-)

No I add the Microsoft.mshtml.dll in addition of the project output and
other things. The application is running well everywhere for
reading/settings values in the forms of the browser. But it does not
disable
the controls, and I can not access the options of a select control,
however
the value can be read from the value of SelectElementClass. Things that
are
working well on my computer.
Really strange

Laurent

"VJ" <vi********@yahoo.com> a écrit dans le message de
news:u8**************@TK2MSFTNGP02.phx.gbl...
uhmm.. yes sorry, I just saw that myself... If you are using the browser
object or the MS Browser control, that will its own set of Dlls..uhmm
lets
see.. Can you tell me how you are building your setup project?., Just
like

a
including a Project Output into VS.NET setup project and then building?
VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
> Euh I don"t thinkk so, it has been found in the NET components into the
> references of my project, but maybe it's just a wrapper class, and it's
> dependent of another DLL ? But No idea which one :-)
>
>
> "VJ" <vi********@yahoo.com> a écrit dans le message de
> news:Ob**************@TK2MSFTNGP03.phx.gbl...
>> I believe the Microsoft.MsHtml is a COM component.. Try registering it
> when
>> installing it. If you are using VS Packaging.. there is a option to do
> this
>> for a single file in the properties windows. Check the properties, the
>> property name is pretty obvious..
>>
>> VJ
>>
>> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> news:Op**************@TK2MSFTNGP04.phx.gbl...
>> > Hello All,
>> >
>> >
>> > I'm currently developing a free windows Scrabble (in french :))
>> > application
>> > that uses extensively the WebBrowser class of NET 2.0 for
>> > configuration,
>> > and
>> > data browsing. It works 100% on my machine, with the WebBrowser Class, > and
>> > the Microsoft.MsHtml component. I can access all elements on the pages >> > through the events, I can change some parts. Everything is rendered
>> > with
>> > XSLTs and changing directly the document through the msHtml thing.
>> >
>> > But apparently, it works only well on both of my machines :-)
>> >
>> > When I deploy the application, Enabling / Disabling controls does
>> > not
> work
>> > and when the application try to access a SelectElement the users got
> that
>> > error :
>> > Unable to cast COM object of type 'System.__ComObject' to class
>> > type
>> > 'mshtml.HTMLSelectElementClass'. COM components that enter the CLR and > do
>> > not support IProvideClassInfo or that do not have any interop assembly >> > registered will be wrapped in the __ComObject type. Instances of
>> > this
> type
>> > cannot be cast to any other class; however they can be cast to
> interfaces
>> > as
>> > long as the underlying COM component supports QueryInterface calls for > the
>> > IID of the interface.
>> >
>> > The Microsoft.MsHtml is copied with the application and all users have >> > a
>> > correct installation, as it is the only thing that doesn't work
>> >
>> > does anyone knows what I have to do, to make it work on machines
>> > that
>> > shouldn't be loaded with Visual Studio, as it's the only difference
>> > I
> can
>> > figure out with my machines and users machines ?
>> >
>> > Thank you
>> >
>> > Laurent
>> >
>> >
>>
>>
>
>



Apr 15 '06 #6
Yes, I tryed to install on my girlf friend's computer, and everything is OK
about the FrameWork and SQL Express 2005. However it's a pain for a normal
user to install all those things :-))) About the dependencies no Idea to
get them from a DLL, I already used some assembly viewer, but I didn't found
any suitable information, maybe I didn't got the right one. Any suggestion
is welcome :-)

Thanks

Laurent.
"VJ" <so*****@ms.com> a écrit dans le message de
news:u2*************@TK2MSFTNGP02.phx.gbl...
I am sure you would have checked.. but I am asking.. are these end computers having the same .NET framework installed as your development machine? If the end computers have multiple versions, you should makes sure your application uses whatever version you developed on is being loaded at run-time by your
application. The VS.NET environment does this automatically for you.. This
is just a thought in case you missed it..

or

Do you know how to get dependencies of a specific DLL.. once you get this
dependencies.. you can make sure they are all installed on end computer..

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl...
Hello VJ :-)

No I add the Microsoft.mshtml.dll in addition of the project output and
other things. The application is running well everywhere for
reading/settings values in the forms of the browser. But it does not
disable
the controls, and I can not access the options of a select control,
however
the value can be read from the value of SelectElementClass. Things that
are
working well on my computer.
Really strange

Laurent

"VJ" <vi********@yahoo.com> a écrit dans le message de
news:u8**************@TK2MSFTNGP02.phx.gbl...
uhmm.. yes sorry, I just saw that myself... If you are using the browser object or the MS Browser control, that will its own set of Dlls..uhmm
lets
see.. Can you tell me how you are building your setup project?., Just
like

a
including a Project Output into VS.NET setup project and then building?
VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
> Euh I don"t thinkk so, it has been found in the NET components into the > references of my project, but maybe it's just a wrapper class, and it's > dependent of another DLL ? But No idea which one :-)
>
>
> "VJ" <vi********@yahoo.com> a écrit dans le message de
> news:Ob**************@TK2MSFTNGP03.phx.gbl...
>> I believe the Microsoft.MsHtml is a COM component.. Try registering it > when
>> installing it. If you are using VS Packaging.. there is a option to do > this
>> for a single file in the properties windows. Check the properties, the >> property name is pretty obvious..
>>
>> VJ
>>
>> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> news:Op**************@TK2MSFTNGP04.phx.gbl...
>> > Hello All,
>> >
>> >
>> > I'm currently developing a free windows Scrabble (in french :))
>> > application
>> > that uses extensively the WebBrowser class of NET 2.0 for
>> > configuration,
>> > and
>> > data browsing. It works 100% on my machine, with the WebBrowser

Class,
> and
>> > the Microsoft.MsHtml component. I can access all elements on the

pages
>> > through the events, I can change some parts. Everything is rendered >> > with
>> > XSLTs and changing directly the document through the msHtml thing. >> >
>> > But apparently, it works only well on both of my machines :-)
>> >
>> > When I deploy the application, Enabling / Disabling controls does
>> > not
> work
>> > and when the application try to access a SelectElement the users got > that
>> > error :
>> > Unable to cast COM object of type 'System.__ComObject' to class
>> > type
>> > 'mshtml.HTMLSelectElementClass'. COM components that enter the CLR

and
> do
>> > not support IProvideClassInfo or that do not have any interop

assembly
>> > registered will be wrapped in the __ComObject type. Instances of
>> > this
> type
>> > cannot be cast to any other class; however they can be cast to
> interfaces
>> > as
>> > long as the underlying COM component supports QueryInterface calls

for
> the
>> > IID of the interface.
>> >
>> > The Microsoft.MsHtml is copied with the application and all users

have
>> > a
>> > correct installation, as it is the only thing that doesn't work
>> >
>> > does anyone knows what I have to do, to make it work on machines
>> > that
>> > shouldn't be loaded with Visual Studio, as it's the only difference >> > I
> can
>> > figure out with my machines and users machines ?
>> >
>> > Thank you
>> >
>> > Laurent
>> >
>> >
>>
>>
>
>



Apr 15 '06 #7
VJ
I did not understand.. let me get this clear... you did copy the mshtml and
install the framework on your friends computer and all is working? or all is
working after you copied mshtml, installed framework and SQL Server 2005?

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:uA**************@TK2MSFTNGP02.phx.gbl...
Yes, I tryed to install on my girlf friend's computer, and everything is
OK
about the FrameWork and SQL Express 2005. However it's a pain for a normal
user to install all those things :-))) About the dependencies no Idea to
get them from a DLL, I already used some assembly viewer, but I didn't
found
any suitable information, maybe I didn't got the right one. Any suggestion
is welcome :-)

Thanks

Laurent.
"VJ" <so*****@ms.com> a écrit dans le message de
news:u2*************@TK2MSFTNGP02.phx.gbl...
I am sure you would have checked.. but I am asking.. are these end

computers
having the same .NET framework installed as your development machine? If

the
end computers have multiple versions, you should makes sure your

application
uses whatever version you developed on is being loaded at run-time by
your
application. The VS.NET environment does this automatically for you..
This
is just a thought in case you missed it..

or

Do you know how to get dependencies of a specific DLL.. once you get this
dependencies.. you can make sure they are all installed on end computer..

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl...
> Hello VJ :-)
>
> No I add the Microsoft.mshtml.dll in addition of the project output and
> other things. The application is running well everywhere for
> reading/settings values in the forms of the browser. But it does not
> disable
> the controls, and I can not access the options of a select control,
> however
> the value can be read from the value of SelectElementClass. Things that
> are
> working well on my computer.
> Really strange
>
> Laurent
>
>
>
> "VJ" <vi********@yahoo.com> a écrit dans le message de
> news:u8**************@TK2MSFTNGP02.phx.gbl...
>> uhmm.. yes sorry, I just saw that myself... If you are using the browser >> object or the MS Browser control, that will its own set of Dlls..uhmm
>> lets
>> see.. Can you tell me how you are building your setup project?., Just
>> like
> a
>> including a Project Output into VS.NET setup project and then
>> building?
>>
>>
>> VJ
>>
>> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> news:%2****************@TK2MSFTNGP02.phx.gbl...
>> > Euh I don"t thinkk so, it has been found in the NET components into the >> > references of my project, but maybe it's just a wrapper class, and it's >> > dependent of another DLL ? But No idea which one :-)
>> >
>> >
>> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> > news:Ob**************@TK2MSFTNGP03.phx.gbl...
>> >> I believe the Microsoft.MsHtml is a COM component.. Try registering it >> > when
>> >> installing it. If you are using VS Packaging.. there is a option to do >> > this
>> >> for a single file in the properties windows. Check the properties, the >> >> property name is pretty obvious..
>> >>
>> >> VJ
>> >>
>> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> news:Op**************@TK2MSFTNGP04.phx.gbl...
>> >> > Hello All,
>> >> >
>> >> >
>> >> > I'm currently developing a free windows Scrabble (in french :))
>> >> > application
>> >> > that uses extensively the WebBrowser class of NET 2.0 for
>> >> > configuration,
>> >> > and
>> >> > data browsing. It works 100% on my machine, with the WebBrowser
> Class,
>> > and
>> >> > the Microsoft.MsHtml component. I can access all elements on the
> pages
>> >> > through the events, I can change some parts. Everything is rendered >> >> > with
>> >> > XSLTs and changing directly the document through the msHtml thing. >> >> >
>> >> > But apparently, it works only well on both of my machines :-)
>> >> >
>> >> > When I deploy the application, Enabling / Disabling controls does
>> >> > not
>> > work
>> >> > and when the application try to access a SelectElement the users got >> > that
>> >> > error :
>> >> > Unable to cast COM object of type 'System.__ComObject' to class
>> >> > type
>> >> > 'mshtml.HTMLSelectElementClass'. COM components that enter the
>> >> > CLR
> and
>> > do
>> >> > not support IProvideClassInfo or that do not have any interop
> assembly
>> >> > registered will be wrapped in the __ComObject type. Instances of
>> >> > this
>> > type
>> >> > cannot be cast to any other class; however they can be cast to
>> > interfaces
>> >> > as
>> >> > long as the underlying COM component supports QueryInterface
>> >> > calls
> for
>> > the
>> >> > IID of the interface.
>> >> >
>> >> > The Microsoft.MsHtml is copied with the application and all users
> have
>> >> > a
>> >> > correct installation, as it is the only thing that doesn't work
>> >> >
>> >> > does anyone knows what I have to do, to make it work on machines
>> >> > that
>> >> > shouldn't be loaded with Visual Studio, as it's the only difference >> >> > I
>> > can
>> >> > figure out with my machines and users machines ?
>> >> >
>> >> > Thank you
>> >> >
>> >> > Laurent
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Apr 15 '06 #8
It's almost working ... Some features found in the mshtml component are not
available. I can not disable controls in the webviewer (however the code is
working, it just not disable controls). I can not access the options of the
select control (this throw an error).

"VJ" <so*****@ms.com> a écrit dans le message de
news:uL**************@TK2MSFTNGP03.phx.gbl...
I did not understand.. let me get this clear... you did copy the mshtml and install the framework on your friends computer and all is working? or all is working after you copied mshtml, installed framework and SQL Server 2005?

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:uA**************@TK2MSFTNGP02.phx.gbl...
Yes, I tryed to install on my girlf friend's computer, and everything is
OK
about the FrameWork and SQL Express 2005. However it's a pain for a normal user to install all those things :-))) About the dependencies no Idea to get them from a DLL, I already used some assembly viewer, but I didn't
found
any suitable information, maybe I didn't got the right one. Any suggestion is welcome :-)

Thanks

Laurent.
"VJ" <so*****@ms.com> a écrit dans le message de
news:u2*************@TK2MSFTNGP02.phx.gbl...
I am sure you would have checked.. but I am asking.. are these end

computers
having the same .NET framework installed as your development machine? If
the
end computers have multiple versions, you should makes sure your

application
uses whatever version you developed on is being loaded at run-time by
your
application. The VS.NET environment does this automatically for you..
This
is just a thought in case you missed it..

or

Do you know how to get dependencies of a specific DLL.. once you get
this dependencies.. you can make sure they are all installed on end computer..
VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl...
> Hello VJ :-)
>
> No I add the Microsoft.mshtml.dll in addition of the project output and > other things. The application is running well everywhere for
> reading/settings values in the forms of the browser. But it does not
> disable
> the controls, and I can not access the options of a select control,
> however
> the value can be read from the value of SelectElementClass. Things that > are
> working well on my computer.
> Really strange
>
> Laurent
>
>
>
> "VJ" <vi********@yahoo.com> a écrit dans le message de
> news:u8**************@TK2MSFTNGP02.phx.gbl...
>> uhmm.. yes sorry, I just saw that myself... If you are using the

browser
>> object or the MS Browser control, that will its own set of Dlls..uhmm >> lets
>> see.. Can you tell me how you are building your setup project?., Just >> like
> a
>> including a Project Output into VS.NET setup project and then
>> building?
>>
>>
>> VJ
>>
>> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> news:%2****************@TK2MSFTNGP02.phx.gbl...
>> > Euh I don"t thinkk so, it has been found in the NET components into the
>> > references of my project, but maybe it's just a wrapper class, and

it's
>> > dependent of another DLL ? But No idea which one :-)
>> >
>> >
>> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> > news:Ob**************@TK2MSFTNGP03.phx.gbl...
>> >> I believe the Microsoft.MsHtml is a COM component.. Try
registering it
>> > when
>> >> installing it. If you are using VS Packaging.. there is a option
to do
>> > this
>> >> for a single file in the properties windows. Check the
properties, the
>> >> property name is pretty obvious..
>> >>
>> >> VJ
>> >>
>> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> news:Op**************@TK2MSFTNGP04.phx.gbl...
>> >> > Hello All,
>> >> >
>> >> >
>> >> > I'm currently developing a free windows Scrabble (in french :))
>> >> > application
>> >> > that uses extensively the WebBrowser class of NET 2.0 for
>> >> > configuration,
>> >> > and
>> >> > data browsing. It works 100% on my machine, with the WebBrowser
> Class,
>> > and
>> >> > the Microsoft.MsHtml component. I can access all elements on
the > pages
>> >> > through the events, I can change some parts. Everything is

rendered
>> >> > with
>> >> > XSLTs and changing directly the document through the msHtml

thing.
>> >> >
>> >> > But apparently, it works only well on both of my machines :-)
>> >> >
>> >> > When I deploy the application, Enabling / Disabling controls does >> >> > not
>> > work
>> >> > and when the application try to access a SelectElement the users got
>> > that
>> >> > error :
>> >> > Unable to cast COM object of type 'System.__ComObject' to

class >> >> > type
>> >> > 'mshtml.HTMLSelectElementClass'. COM components that enter the
>> >> > CLR
> and
>> > do
>> >> > not support IProvideClassInfo or that do not have any interop
> assembly
>> >> > registered will be wrapped in the __ComObject type. Instances of >> >> > this
>> > type
>> >> > cannot be cast to any other class; however they can be cast to
>> > interfaces
>> >> > as
>> >> > long as the underlying COM component supports QueryInterface
>> >> > calls
> for
>> > the
>> >> > IID of the interface.
>> >> >
>> >> > The Microsoft.MsHtml is copied with the application and all users > have
>> >> > a
>> >> > correct installation, as it is the only thing that doesn't work
>> >> >
>> >> > does anyone knows what I have to do, to make it work on machines >> >> > that
>> >> > shouldn't be loaded with Visual Studio, as it's the only

difference
>> >> > I
>> > can
>> >> > figure out with my machines and users machines ?
>> >> >
>> >> > Thank you
>> >> >
>> >> > Laurent
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Apr 16 '06 #9
VJ
The webbroswer is a really tricky component... to install.. if you are
having problems even after installing the framework.. then, you will have to
find dependencies... for each Dll... One way to do is add the file directly
to a setup project, then for the file in the properties window, you can
check dependencies.... or try to get a Tool of the web to do the same...

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
It's almost working ... Some features found in the mshtml component are
not
available. I can not disable controls in the webviewer (however the code
is
working, it just not disable controls). I can not access the options of
the
select control (this throw an error).

"VJ" <so*****@ms.com> a écrit dans le message de
news:uL**************@TK2MSFTNGP03.phx.gbl...
I did not understand.. let me get this clear... you did copy the mshtml

and
install the framework on your friends computer and all is working? or all

is
working after you copied mshtml, installed framework and SQL Server 2005?

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:uA**************@TK2MSFTNGP02.phx.gbl...
> Yes, I tryed to install on my girlf friend's computer, and everything
> is
> OK
> about the FrameWork and SQL Express 2005. However it's a pain for a normal > user to install all those things :-))) About the dependencies no Idea to > get them from a DLL, I already used some assembly viewer, but I didn't
> found
> any suitable information, maybe I didn't got the right one. Any suggestion > is welcome :-)
>
> Thanks
>
> Laurent.
>
>
> "VJ" <so*****@ms.com> a écrit dans le message de
> news:u2*************@TK2MSFTNGP02.phx.gbl...
>> I am sure you would have checked.. but I am asking.. are these end
> computers
>> having the same .NET framework installed as your development machine? If > the
>> end computers have multiple versions, you should makes sure your
> application
>> uses whatever version you developed on is being loaded at run-time by
>> your
>> application. The VS.NET environment does this automatically for you..
>> This
>> is just a thought in case you missed it..
>>
>> or
>>
>> Do you know how to get dependencies of a specific DLL.. once you get this >> dependencies.. you can make sure they are all installed on end computer.. >>
>> VJ
>>
>> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> news:O%****************@TK2MSFTNGP04.phx.gbl...
>> > Hello VJ :-)
>> >
>> > No I add the Microsoft.mshtml.dll in addition of the project output and >> > other things. The application is running well everywhere for
>> > reading/settings values in the forms of the browser. But it does not
>> > disable
>> > the controls, and I can not access the options of a select control,
>> > however
>> > the value can be read from the value of SelectElementClass. Things that >> > are
>> > working well on my computer.
>> > Really strange
>> >
>> > Laurent
>> >
>> >
>> >
>> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> > news:u8**************@TK2MSFTNGP02.phx.gbl...
>> >> uhmm.. yes sorry, I just saw that myself... If you are using the
> browser
>> >> object or the MS Browser control, that will its own set of Dlls..uhmm >> >> lets
>> >> see.. Can you tell me how you are building your setup project?., Just >> >> like
>> > a
>> >> including a Project Output into VS.NET setup project and then
>> >> building?
>> >>
>> >>
>> >> VJ
>> >>
>> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> news:%2****************@TK2MSFTNGP02.phx.gbl...
>> >> > Euh I don"t thinkk so, it has been found in the NET components into > the
>> >> > references of my project, but maybe it's just a wrapper class,
>> >> > and
> it's
>> >> > dependent of another DLL ? But No idea which one :-)
>> >> >
>> >> >
>> >> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> >> > news:Ob**************@TK2MSFTNGP03.phx.gbl...
>> >> >> I believe the Microsoft.MsHtml is a COM component.. Try registering > it
>> >> > when
>> >> >> installing it. If you are using VS Packaging.. there is a option to > do
>> >> > this
>> >> >> for a single file in the properties windows. Check the properties, > the
>> >> >> property name is pretty obvious..
>> >> >>
>> >> >> VJ
>> >> >>
>> >> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> >> news:Op**************@TK2MSFTNGP04.phx.gbl...
>> >> >> > Hello All,
>> >> >> >
>> >> >> >
>> >> >> > I'm currently developing a free windows Scrabble (in french
>> >> >> > :))
>> >> >> > application
>> >> >> > that uses extensively the WebBrowser class of NET 2.0 for
>> >> >> > configuration,
>> >> >> > and
>> >> >> > data browsing. It works 100% on my machine, with the
>> >> >> > WebBrowser
>> > Class,
>> >> > and
>> >> >> > the Microsoft.MsHtml component. I can access all elements on the >> > pages
>> >> >> > through the events, I can change some parts. Everything is
> rendered
>> >> >> > with
>> >> >> > XSLTs and changing directly the document through the msHtml
> thing.
>> >> >> >
>> >> >> > But apparently, it works only well on both of my machines :-)
>> >> >> >
>> >> >> > When I deploy the application, Enabling / Disabling controls does >> >> >> > not
>> >> > work
>> >> >> > and when the application try to access a SelectElement the users > got
>> >> > that
>> >> >> > error :
>> >> >> > Unable to cast COM object of type 'System.__ComObject' to class >> >> >> > type
>> >> >> > 'mshtml.HTMLSelectElementClass'. COM components that enter the
>> >> >> > CLR
>> > and
>> >> > do
>> >> >> > not support IProvideClassInfo or that do not have any interop
>> > assembly
>> >> >> > registered will be wrapped in the __ComObject type. Instances of >> >> >> > this
>> >> > type
>> >> >> > cannot be cast to any other class; however they can be cast to
>> >> > interfaces
>> >> >> > as
>> >> >> > long as the underlying COM component supports QueryInterface
>> >> >> > calls
>> > for
>> >> > the
>> >> >> > IID of the interface.
>> >> >> >
>> >> >> > The Microsoft.MsHtml is copied with the application and all users >> > have
>> >> >> > a
>> >> >> > correct installation, as it is the only thing that doesn't
>> >> >> > work
>> >> >> >
>> >> >> > does anyone knows what I have to do, to make it work on machines >> >> >> > that
>> >> >> > shouldn't be loaded with Visual Studio, as it's the only
> difference
>> >> >> > I
>> >> > can
>> >> >> > figure out with my machines and users machines ?
>> >> >> >
>> >> >> > Thank you
>> >> >> >
>> >> >> > Laurent
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Apr 16 '06 #10
Okido, I will try, thanks for your help :-)

Laurent

"VJ" <so*****@ms.com> a écrit dans le message de
news:u5**************@TK2MSFTNGP03.phx.gbl...
The webbroswer is a really tricky component... to install.. if you are
having problems even after installing the framework.. then, you will have to find dependencies... for each Dll... One way to do is add the file directly to a setup project, then for the file in the properties window, you can
check dependencies.... or try to get a Tool of the web to do the same...

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
It's almost working ... Some features found in the mshtml component are
not
available. I can not disable controls in the webviewer (however the code
is
working, it just not disable controls). I can not access the options of
the
select control (this throw an error).

"VJ" <so*****@ms.com> a écrit dans le message de
news:uL**************@TK2MSFTNGP03.phx.gbl...
I did not understand.. let me get this clear... you did copy the mshtml

and
install the framework on your friends computer and all is working? or all
is
working after you copied mshtml, installed framework and SQL Server
2005?
VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:uA**************@TK2MSFTNGP02.phx.gbl...
> Yes, I tryed to install on my girlf friend's computer, and everything
> is
> OK
> about the FrameWork and SQL Express 2005. However it's a pain for a

normal
> user to install all those things :-))) About the dependencies no Idea to
> get them from a DLL, I already used some assembly viewer, but I
didn't > found
> any suitable information, maybe I didn't got the right one. Any

suggestion
> is welcome :-)
>
> Thanks
>
> Laurent.
>
>
> "VJ" <so*****@ms.com> a écrit dans le message de
> news:u2*************@TK2MSFTNGP02.phx.gbl...
>> I am sure you would have checked.. but I am asking.. are these end
> computers
>> having the same .NET framework installed as your development machine? If
> the
>> end computers have multiple versions, you should makes sure your
> application
>> uses whatever version you developed on is being loaded at run-time
by >> your
>> application. The VS.NET environment does this automatically for you.. >> This
>> is just a thought in case you missed it..
>>
>> or
>>
>> Do you know how to get dependencies of a specific DLL.. once you get

this
>> dependencies.. you can make sure they are all installed on end

computer..
>>
>> VJ
>>
>> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> news:O%****************@TK2MSFTNGP04.phx.gbl...
>> > Hello VJ :-)
>> >
>> > No I add the Microsoft.mshtml.dll in addition of the project output and
>> > other things. The application is running well everywhere for
>> > reading/settings values in the forms of the browser. But it does
not >> > disable
>> > the controls, and I can not access the options of a select control, >> > however
>> > the value can be read from the value of SelectElementClass. Things

that
>> > are
>> > working well on my computer.
>> > Really strange
>> >
>> > Laurent
>> >
>> >
>> >
>> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> > news:u8**************@TK2MSFTNGP02.phx.gbl...
>> >> uhmm.. yes sorry, I just saw that myself... If you are using the
> browser
>> >> object or the MS Browser control, that will its own set of

Dlls..uhmm
>> >> lets
>> >> see.. Can you tell me how you are building your setup project?.,

Just
>> >> like
>> > a
>> >> including a Project Output into VS.NET setup project and then
>> >> building?
>> >>
>> >>
>> >> VJ
>> >>
>> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> news:%2****************@TK2MSFTNGP02.phx.gbl...
>> >> > Euh I don"t thinkk so, it has been found in the NET components

into
> the
>> >> > references of my project, but maybe it's just a wrapper class,
>> >> > and
> it's
>> >> > dependent of another DLL ? But No idea which one :-)
>> >> >
>> >> >
>> >> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> >> > news:Ob**************@TK2MSFTNGP03.phx.gbl...
>> >> >> I believe the Microsoft.MsHtml is a COM component.. Try

registering
> it
>> >> > when
>> >> >> installing it. If you are using VS Packaging.. there is a option to
> do
>> >> > this
>> >> >> for a single file in the properties windows. Check the

properties,
> the
>> >> >> property name is pretty obvious..
>> >> >>
>> >> >> VJ
>> >> >>
>> >> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> >> news:Op**************@TK2MSFTNGP04.phx.gbl...
>> >> >> > Hello All,
>> >> >> >
>> >> >> >
>> >> >> > I'm currently developing a free windows Scrabble (in french
>> >> >> > :))
>> >> >> > application
>> >> >> > that uses extensively the WebBrowser class of NET 2.0 for
>> >> >> > configuration,
>> >> >> > and
>> >> >> > data browsing. It works 100% on my machine, with the
>> >> >> > WebBrowser
>> > Class,
>> >> > and
>> >> >> > the Microsoft.MsHtml component. I can access all elements on

the
>> > pages
>> >> >> > through the events, I can change some parts. Everything is
> rendered
>> >> >> > with
>> >> >> > XSLTs and changing directly the document through the msHtml
> thing.
>> >> >> >
>> >> >> > But apparently, it works only well on both of my machines
:-) >> >> >> >
>> >> >> > When I deploy the application, Enabling / Disabling controls

does
>> >> >> > not
>> >> > work
>> >> >> > and when the application try to access a SelectElement the

users
> got
>> >> > that
>> >> >> > error :
>> >> >> > Unable to cast COM object of type 'System.__ComObject' to

class
>> >> >> > type
>> >> >> > 'mshtml.HTMLSelectElementClass'. COM components that enter the >> >> >> > CLR
>> > and
>> >> > do
>> >> >> > not support IProvideClassInfo or that do not have any interop >> > assembly
>> >> >> > registered will be wrapped in the __ComObject type. Instances of
>> >> >> > this
>> >> > type
>> >> >> > cannot be cast to any other class; however they can be cast

to >> >> > interfaces
>> >> >> > as
>> >> >> > long as the underlying COM component supports QueryInterface
>> >> >> > calls
>> > for
>> >> > the
>> >> >> > IID of the interface.
>> >> >> >
>> >> >> > The Microsoft.MsHtml is copied with the application and all

users
>> > have
>> >> >> > a
>> >> >> > correct installation, as it is the only thing that doesn't
>> >> >> > work
>> >> >> >
>> >> >> > does anyone knows what I have to do, to make it work on

machines
>> >> >> > that
>> >> >> > shouldn't be loaded with Visual Studio, as it's the only
> difference
>> >> >> > I
>> >> > can
>> >> >> > figure out with my machines and users machines ?
>> >> >> >
>> >> >> > Thank you
>> >> >> >
>> >> >> > Laurent
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Apr 16 '06 #11
Ouch!

Unfortunately, when checking the dependencies, it says only the framework...
Unbelievable :-)

Laurent

"VJ" <so*****@ms.com> a écrit dans le message de
news:u5**************@TK2MSFTNGP03.phx.gbl...
The webbroswer is a really tricky component... to install.. if you are
having problems even after installing the framework.. then, you will have to find dependencies... for each Dll... One way to do is add the file directly to a setup project, then for the file in the properties window, you can
check dependencies.... or try to get a Tool of the web to do the same...

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
It's almost working ... Some features found in the mshtml component are
not
available. I can not disable controls in the webviewer (however the code
is
working, it just not disable controls). I can not access the options of
the
select control (this throw an error).

"VJ" <so*****@ms.com> a écrit dans le message de
news:uL**************@TK2MSFTNGP03.phx.gbl...
I did not understand.. let me get this clear... you did copy the mshtml

and
install the framework on your friends computer and all is working? or all
is
working after you copied mshtml, installed framework and SQL Server
2005?
VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:uA**************@TK2MSFTNGP02.phx.gbl...
> Yes, I tryed to install on my girlf friend's computer, and everything
> is
> OK
> about the FrameWork and SQL Express 2005. However it's a pain for a

normal
> user to install all those things :-))) About the dependencies no Idea to
> get them from a DLL, I already used some assembly viewer, but I
didn't > found
> any suitable information, maybe I didn't got the right one. Any

suggestion
> is welcome :-)
>
> Thanks
>
> Laurent.
>
>
> "VJ" <so*****@ms.com> a écrit dans le message de
> news:u2*************@TK2MSFTNGP02.phx.gbl...
>> I am sure you would have checked.. but I am asking.. are these end
> computers
>> having the same .NET framework installed as your development machine? If
> the
>> end computers have multiple versions, you should makes sure your
> application
>> uses whatever version you developed on is being loaded at run-time
by >> your
>> application. The VS.NET environment does this automatically for you.. >> This
>> is just a thought in case you missed it..
>>
>> or
>>
>> Do you know how to get dependencies of a specific DLL.. once you get

this
>> dependencies.. you can make sure they are all installed on end

computer..
>>
>> VJ
>>
>> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> news:O%****************@TK2MSFTNGP04.phx.gbl...
>> > Hello VJ :-)
>> >
>> > No I add the Microsoft.mshtml.dll in addition of the project output and
>> > other things. The application is running well everywhere for
>> > reading/settings values in the forms of the browser. But it does
not >> > disable
>> > the controls, and I can not access the options of a select control, >> > however
>> > the value can be read from the value of SelectElementClass. Things

that
>> > are
>> > working well on my computer.
>> > Really strange
>> >
>> > Laurent
>> >
>> >
>> >
>> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> > news:u8**************@TK2MSFTNGP02.phx.gbl...
>> >> uhmm.. yes sorry, I just saw that myself... If you are using the
> browser
>> >> object or the MS Browser control, that will its own set of

Dlls..uhmm
>> >> lets
>> >> see.. Can you tell me how you are building your setup project?.,

Just
>> >> like
>> > a
>> >> including a Project Output into VS.NET setup project and then
>> >> building?
>> >>
>> >>
>> >> VJ
>> >>
>> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> news:%2****************@TK2MSFTNGP02.phx.gbl...
>> >> > Euh I don"t thinkk so, it has been found in the NET components

into
> the
>> >> > references of my project, but maybe it's just a wrapper class,
>> >> > and
> it's
>> >> > dependent of another DLL ? But No idea which one :-)
>> >> >
>> >> >
>> >> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> >> > news:Ob**************@TK2MSFTNGP03.phx.gbl...
>> >> >> I believe the Microsoft.MsHtml is a COM component.. Try

registering
> it
>> >> > when
>> >> >> installing it. If you are using VS Packaging.. there is a option to
> do
>> >> > this
>> >> >> for a single file in the properties windows. Check the

properties,
> the
>> >> >> property name is pretty obvious..
>> >> >>
>> >> >> VJ
>> >> >>
>> >> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> >> news:Op**************@TK2MSFTNGP04.phx.gbl...
>> >> >> > Hello All,
>> >> >> >
>> >> >> >
>> >> >> > I'm currently developing a free windows Scrabble (in french
>> >> >> > :))
>> >> >> > application
>> >> >> > that uses extensively the WebBrowser class of NET 2.0 for
>> >> >> > configuration,
>> >> >> > and
>> >> >> > data browsing. It works 100% on my machine, with the
>> >> >> > WebBrowser
>> > Class,
>> >> > and
>> >> >> > the Microsoft.MsHtml component. I can access all elements on

the
>> > pages
>> >> >> > through the events, I can change some parts. Everything is
> rendered
>> >> >> > with
>> >> >> > XSLTs and changing directly the document through the msHtml
> thing.
>> >> >> >
>> >> >> > But apparently, it works only well on both of my machines
:-) >> >> >> >
>> >> >> > When I deploy the application, Enabling / Disabling controls

does
>> >> >> > not
>> >> > work
>> >> >> > and when the application try to access a SelectElement the

users
> got
>> >> > that
>> >> >> > error :
>> >> >> > Unable to cast COM object of type 'System.__ComObject' to

class
>> >> >> > type
>> >> >> > 'mshtml.HTMLSelectElementClass'. COM components that enter the >> >> >> > CLR
>> > and
>> >> > do
>> >> >> > not support IProvideClassInfo or that do not have any interop >> > assembly
>> >> >> > registered will be wrapped in the __ComObject type. Instances of
>> >> >> > this
>> >> > type
>> >> >> > cannot be cast to any other class; however they can be cast

to >> >> > interfaces
>> >> >> > as
>> >> >> > long as the underlying COM component supports QueryInterface
>> >> >> > calls
>> > for
>> >> > the
>> >> >> > IID of the interface.
>> >> >> >
>> >> >> > The Microsoft.MsHtml is copied with the application and all

users
>> > have
>> >> >> > a
>> >> >> > correct installation, as it is the only thing that doesn't
>> >> >> > work
>> >> >> >
>> >> >> > does anyone knows what I have to do, to make it work on

machines
>> >> >> > that
>> >> >> > shouldn't be loaded with Visual Studio, as it's the only
> difference
>> >> >> > I
>> >> > can
>> >> >> > figure out with my machines and users machines ?
>> >> >> >
>> >> >> > Thank you
>> >> >> >
>> >> >> > Laurent
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Apr 16 '06 #12
VJ
Laurent...

MSHTMl says just that.. uhmmm I will have to check more.. I will post back
in a little bit

VJ
"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP03.phx.gbl...
Ouch!

Unfortunately, when checking the dependencies, it says only the
framework...
Unbelievable :-)

Laurent

"VJ" <so*****@ms.com> a écrit dans le message de
news:u5**************@TK2MSFTNGP03.phx.gbl...
The webbroswer is a really tricky component... to install.. if you are
having problems even after installing the framework.. then, you will have

to
find dependencies... for each Dll... One way to do is add the file

directly
to a setup project, then for the file in the properties window, you can
check dependencies.... or try to get a Tool of the web to do the same...

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
> It's almost working ... Some features found in the mshtml component are
> not
> available. I can not disable controls in the webviewer (however the
> code
> is
> working, it just not disable controls). I can not access the options of
> the
> select control (this throw an error).
>
> "VJ" <so*****@ms.com> a écrit dans le message de
> news:uL**************@TK2MSFTNGP03.phx.gbl...
>> I did not understand.. let me get this clear... you did copy the
>> mshtml
> and
>> install the framework on your friends computer and all is working? or all > is
>> working after you copied mshtml, installed framework and SQL Server 2005? >>
>> VJ
>>
>> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> news:uA**************@TK2MSFTNGP02.phx.gbl...
>> > Yes, I tryed to install on my girlf friend's computer, and
>> > everything
>> > is
>> > OK
>> > about the FrameWork and SQL Express 2005. However it's a pain for a
> normal
>> > user to install all those things :-))) About the dependencies no Idea > to
>> > get them from a DLL, I already used some assembly viewer, but I didn't >> > found
>> > any suitable information, maybe I didn't got the right one. Any
> suggestion
>> > is welcome :-)
>> >
>> > Thanks
>> >
>> > Laurent.
>> >
>> >
>> > "VJ" <so*****@ms.com> a écrit dans le message de
>> > news:u2*************@TK2MSFTNGP02.phx.gbl...
>> >> I am sure you would have checked.. but I am asking.. are these end
>> > computers
>> >> having the same .NET framework installed as your development machine? > If
>> > the
>> >> end computers have multiple versions, you should makes sure your
>> > application
>> >> uses whatever version you developed on is being loaded at run-time by >> >> your
>> >> application. The VS.NET environment does this automatically for you.. >> >> This
>> >> is just a thought in case you missed it..
>> >>
>> >> or
>> >>
>> >> Do you know how to get dependencies of a specific DLL.. once you
>> >> get
> this
>> >> dependencies.. you can make sure they are all installed on end
> computer..
>> >>
>> >> VJ
>> >>
>> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> news:O%****************@TK2MSFTNGP04.phx.gbl...
>> >> > Hello VJ :-)
>> >> >
>> >> > No I add the Microsoft.mshtml.dll in addition of the project output > and
>> >> > other things. The application is running well everywhere for
>> >> > reading/settings values in the forms of the browser. But it does not >> >> > disable
>> >> > the controls, and I can not access the options of a select control, >> >> > however
>> >> > the value can be read from the value of SelectElementClass.
>> >> > Things
> that
>> >> > are
>> >> > working well on my computer.
>> >> > Really strange
>> >> >
>> >> > Laurent
>> >> >
>> >> >
>> >> >
>> >> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> >> > news:u8**************@TK2MSFTNGP02.phx.gbl...
>> >> >> uhmm.. yes sorry, I just saw that myself... If you are using the
>> > browser
>> >> >> object or the MS Browser control, that will its own set of
> Dlls..uhmm
>> >> >> lets
>> >> >> see.. Can you tell me how you are building your setup project?.,
> Just
>> >> >> like
>> >> > a
>> >> >> including a Project Output into VS.NET setup project and then
>> >> >> building?
>> >> >>
>> >> >>
>> >> >> VJ
>> >> >>
>> >> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> >> news:%2****************@TK2MSFTNGP02.phx.gbl...
>> >> >> > Euh I don"t thinkk so, it has been found in the NET components
> into
>> > the
>> >> >> > references of my project, but maybe it's just a wrapper class,
>> >> >> > and
>> > it's
>> >> >> > dependent of another DLL ? But No idea which one :-)
>> >> >> >
>> >> >> >
>> >> >> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> >> >> > news:Ob**************@TK2MSFTNGP03.phx.gbl...
>> >> >> >> I believe the Microsoft.MsHtml is a COM component.. Try
> registering
>> > it
>> >> >> > when
>> >> >> >> installing it. If you are using VS Packaging.. there is a option > to
>> > do
>> >> >> > this
>> >> >> >> for a single file in the properties windows. Check the
> properties,
>> > the
>> >> >> >> property name is pretty obvious..
>> >> >> >>
>> >> >> >> VJ
>> >> >> >>
>> >> >> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> >> >> news:Op**************@TK2MSFTNGP04.phx.gbl...
>> >> >> >> > Hello All,
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > I'm currently developing a free windows Scrabble (in french
>> >> >> >> > :))
>> >> >> >> > application
>> >> >> >> > that uses extensively the WebBrowser class of NET 2.0 for
>> >> >> >> > configuration,
>> >> >> >> > and
>> >> >> >> > data browsing. It works 100% on my machine, with the
>> >> >> >> > WebBrowser
>> >> > Class,
>> >> >> > and
>> >> >> >> > the Microsoft.MsHtml component. I can access all elements
>> >> >> >> > on
> the
>> >> > pages
>> >> >> >> > through the events, I can change some parts. Everything is
>> > rendered
>> >> >> >> > with
>> >> >> >> > XSLTs and changing directly the document through the
>> >> >> >> > msHtml
>> > thing.
>> >> >> >> >
>> >> >> >> > But apparently, it works only well on both of my machines :-) >> >> >> >> >
>> >> >> >> > When I deploy the application, Enabling / Disabling
>> >> >> >> > controls
> does
>> >> >> >> > not
>> >> >> > work
>> >> >> >> > and when the application try to access a SelectElement the
> users
>> > got
>> >> >> > that
>> >> >> >> > error :
>> >> >> >> > Unable to cast COM object of type 'System.__ComObject' to
> class
>> >> >> >> > type
>> >> >> >> > 'mshtml.HTMLSelectElementClass'. COM components that enter the >> >> >> >> > CLR
>> >> > and
>> >> >> > do
>> >> >> >> > not support IProvideClassInfo or that do not have any interop >> >> > assembly
>> >> >> >> > registered will be wrapped in the __ComObject type. Instances > of
>> >> >> >> > this
>> >> >> > type
>> >> >> >> > cannot be cast to any other class; however they can be cast to >> >> >> > interfaces
>> >> >> >> > as
>> >> >> >> > long as the underlying COM component supports
>> >> >> >> > QueryInterface
>> >> >> >> > calls
>> >> > for
>> >> >> > the
>> >> >> >> > IID of the interface.
>> >> >> >> >
>> >> >> >> > The Microsoft.MsHtml is copied with the application and all
> users
>> >> > have
>> >> >> >> > a
>> >> >> >> > correct installation, as it is the only thing that doesn't
>> >> >> >> > work
>> >> >> >> >
>> >> >> >> > does anyone knows what I have to do, to make it work on
> machines
>> >> >> >> > that
>> >> >> >> > shouldn't be loaded with Visual Studio, as it's the only
>> > difference
>> >> >> >> > I
>> >> >> > can
>> >> >> >> > figure out with my machines and users machines ?
>> >> >> >> >
>> >> >> >> > Thank you
>> >> >> >> >
>> >> >> >> > Laurent
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Apr 17 '06 #13
VJ
Laurent... I tried the same below.. it works fine when I deploy the mshtml
file... It does have no dependencies...Maybe its about time you got
dependency analyzer to check the order... did u google to Find out?...

VJ

"VJ" <vi********@yahoo.com> wrote in message
news:%2***************@TK2MSFTNGP03.phx.gbl...
Laurent...

MSHTMl says just that.. uhmmm I will have to check more.. I will post back
in a little bit

VJ
"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP03.phx.gbl...
Ouch!

Unfortunately, when checking the dependencies, it says only the
framework...
Unbelievable :-)

Laurent

"VJ" <so*****@ms.com> a écrit dans le message de
news:u5**************@TK2MSFTNGP03.phx.gbl...
The webbroswer is a really tricky component... to install.. if you are
having problems even after installing the framework.. then, you will
have

to
find dependencies... for each Dll... One way to do is add the file

directly
to a setup project, then for the file in the properties window, you can
check dependencies.... or try to get a Tool of the web to do the same...

VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
> It's almost working ... Some features found in the mshtml component
> are
> not
> available. I can not disable controls in the webviewer (however the
> code
> is
> working, it just not disable controls). I can not access the options
> of
> the
> select control (this throw an error).
>
> "VJ" <so*****@ms.com> a écrit dans le message de
> news:uL**************@TK2MSFTNGP03.phx.gbl...
>> I did not understand.. let me get this clear... you did copy the
>> mshtml
> and
>> install the framework on your friends computer and all is working? or

all
> is
>> working after you copied mshtml, installed framework and SQL Server

2005?
>>
>> VJ
>>
>> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> news:uA**************@TK2MSFTNGP02.phx.gbl...
>> > Yes, I tryed to install on my girlf friend's computer, and
>> > everything
>> > is
>> > OK
>> > about the FrameWork and SQL Express 2005. However it's a pain for a
> normal
>> > user to install all those things :-))) About the dependencies no

Idea
> to
>> > get them from a DLL, I already used some assembly viewer, but I

didn't
>> > found
>> > any suitable information, maybe I didn't got the right one. Any
> suggestion
>> > is welcome :-)
>> >
>> > Thanks
>> >
>> > Laurent.
>> >
>> >
>> > "VJ" <so*****@ms.com> a écrit dans le message de
>> > news:u2*************@TK2MSFTNGP02.phx.gbl...
>> >> I am sure you would have checked.. but I am asking.. are these end
>> > computers
>> >> having the same .NET framework installed as your development

machine?
> If
>> > the
>> >> end computers have multiple versions, you should makes sure your
>> > application
>> >> uses whatever version you developed on is being loaded at run-time

by
>> >> your
>> >> application. The VS.NET environment does this automatically for

you..
>> >> This
>> >> is just a thought in case you missed it..
>> >>
>> >> or
>> >>
>> >> Do you know how to get dependencies of a specific DLL.. once you
>> >> get
> this
>> >> dependencies.. you can make sure they are all installed on end
> computer..
>> >>
>> >> VJ
>> >>
>> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> news:O%****************@TK2MSFTNGP04.phx.gbl...
>> >> > Hello VJ :-)
>> >> >
>> >> > No I add the Microsoft.mshtml.dll in addition of the project

output
> and
>> >> > other things. The application is running well everywhere for
>> >> > reading/settings values in the forms of the browser. But it does

not
>> >> > disable
>> >> > the controls, and I can not access the options of a select

control,
>> >> > however
>> >> > the value can be read from the value of SelectElementClass.
>> >> > Things
> that
>> >> > are
>> >> > working well on my computer.
>> >> > Really strange
>> >> >
>> >> > Laurent
>> >> >
>> >> >
>> >> >
>> >> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> >> > news:u8**************@TK2MSFTNGP02.phx.gbl...
>> >> >> uhmm.. yes sorry, I just saw that myself... If you are using
>> >> >> the
>> > browser
>> >> >> object or the MS Browser control, that will its own set of
> Dlls..uhmm
>> >> >> lets
>> >> >> see.. Can you tell me how you are building your setup
>> >> >> project?.,
> Just
>> >> >> like
>> >> > a
>> >> >> including a Project Output into VS.NET setup project and then
>> >> >> building?
>> >> >>
>> >> >>
>> >> >> VJ
>> >> >>
>> >> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> >> news:%2****************@TK2MSFTNGP02.phx.gbl...
>> >> >> > Euh I don"t thinkk so, it has been found in the NET
>> >> >> > components
> into
>> > the
>> >> >> > references of my project, but maybe it's just a wrapper
>> >> >> > class,
>> >> >> > and
>> > it's
>> >> >> > dependent of another DLL ? But No idea which one :-)
>> >> >> >
>> >> >> >
>> >> >> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> >> >> > news:Ob**************@TK2MSFTNGP03.phx.gbl...
>> >> >> >> I believe the Microsoft.MsHtml is a COM component.. Try
> registering
>> > it
>> >> >> > when
>> >> >> >> installing it. If you are using VS Packaging.. there is a

option
> to
>> > do
>> >> >> > this
>> >> >> >> for a single file in the properties windows. Check the
> properties,
>> > the
>> >> >> >> property name is pretty obvious..
>> >> >> >>
>> >> >> >> VJ
>> >> >> >>
>> >> >> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> >> >> news:Op**************@TK2MSFTNGP04.phx.gbl...
>> >> >> >> > Hello All,
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > I'm currently developing a free windows Scrabble (in
>> >> >> >> > french
>> >> >> >> > :))
>> >> >> >> > application
>> >> >> >> > that uses extensively the WebBrowser class of NET 2.0 for
>> >> >> >> > configuration,
>> >> >> >> > and
>> >> >> >> > data browsing. It works 100% on my machine, with the
>> >> >> >> > WebBrowser
>> >> > Class,
>> >> >> > and
>> >> >> >> > the Microsoft.MsHtml component. I can access all elements
>> >> >> >> > on
> the
>> >> > pages
>> >> >> >> > through the events, I can change some parts. Everything is
>> > rendered
>> >> >> >> > with
>> >> >> >> > XSLTs and changing directly the document through the
>> >> >> >> > msHtml
>> > thing.
>> >> >> >> >
>> >> >> >> > But apparently, it works only well on both of my machines

:-)
>> >> >> >> >
>> >> >> >> > When I deploy the application, Enabling / Disabling
>> >> >> >> > controls
> does
>> >> >> >> > not
>> >> >> > work
>> >> >> >> > and when the application try to access a SelectElement the
> users
>> > got
>> >> >> > that
>> >> >> >> > error :
>> >> >> >> > Unable to cast COM object of type 'System.__ComObject' to
> class
>> >> >> >> > type
>> >> >> >> > 'mshtml.HTMLSelectElementClass'. COM components that enter

the
>> >> >> >> > CLR
>> >> > and
>> >> >> > do
>> >> >> >> > not support IProvideClassInfo or that do not have any

interop
>> >> > assembly
>> >> >> >> > registered will be wrapped in the __ComObject type.

Instances
> of
>> >> >> >> > this
>> >> >> > type
>> >> >> >> > cannot be cast to any other class; however they can be
>> >> >> >> > cast

to
>> >> >> > interfaces
>> >> >> >> > as
>> >> >> >> > long as the underlying COM component supports
>> >> >> >> > QueryInterface
>> >> >> >> > calls
>> >> > for
>> >> >> > the
>> >> >> >> > IID of the interface.
>> >> >> >> >
>> >> >> >> > The Microsoft.MsHtml is copied with the application and
>> >> >> >> > all
> users
>> >> > have
>> >> >> >> > a
>> >> >> >> > correct installation, as it is the only thing that doesn't
>> >> >> >> > work
>> >> >> >> >
>> >> >> >> > does anyone knows what I have to do, to make it work on
> machines
>> >> >> >> > that
>> >> >> >> > shouldn't be loaded with Visual Studio, as it's the only
>> > difference
>> >> >> >> > I
>> >> >> > can
>> >> >> >> > figure out with my machines and users machines ?
>> >> >> >> >
>> >> >> >> > Thank you
>> >> >> >> >
>> >> >> >> > Laurent
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Apr 17 '06 #14
Hello VJ !

Yes I already tryed, and it tells always the same things... Deploy the
MSHTML with your application, but I did ;-) I'll check later, I though
someone could have a quick answer :-)

Thank you

Laurent
"VJ" <vi********@yahoo.com> a écrit dans le message de
news:eR**************@TK2MSFTNGP02.phx.gbl...
Laurent... I tried the same below.. it works fine when I deploy the mshtml
file... It does have no dependencies...Maybe its about time you got
dependency analyzer to check the order... did u google to Find out?...

VJ

"VJ" <vi********@yahoo.com> wrote in message
news:%2***************@TK2MSFTNGP03.phx.gbl...
Laurent...

MSHTMl says just that.. uhmmm I will have to check more.. I will post back in a little bit

VJ
"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP03.phx.gbl...
Ouch!

Unfortunately, when checking the dependencies, it says only the
framework...
Unbelievable :-)

Laurent

"VJ" <so*****@ms.com> a écrit dans le message de
news:u5**************@TK2MSFTNGP03.phx.gbl...
The webbroswer is a really tricky component... to install.. if you are
having problems even after installing the framework.. then, you will
have
to
find dependencies... for each Dll... One way to do is add the file
directly
to a setup project, then for the file in the properties window, you can check dependencies.... or try to get a Tool of the web to do the same...
VJ

"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
> It's almost working ... Some features found in the mshtml component
> are
> not
> available. I can not disable controls in the webviewer (however the
> code
> is
> working, it just not disable controls). I can not access the options
> of
> the
> select control (this throw an error).
>
> "VJ" <so*****@ms.com> a écrit dans le message de
> news:uL**************@TK2MSFTNGP03.phx.gbl...
>> I did not understand.. let me get this clear... you did copy the
>> mshtml
> and
>> install the framework on your friends computer and all is working? or all
> is
>> working after you copied mshtml, installed framework and SQL Server
2005?
>>
>> VJ
>>
>> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> news:uA**************@TK2MSFTNGP02.phx.gbl...
>> > Yes, I tryed to install on my girlf friend's computer, and
>> > everything
>> > is
>> > OK
>> > about the FrameWork and SQL Express 2005. However it's a pain for a > normal
>> > user to install all those things :-))) About the dependencies no
Idea
> to
>> > get them from a DLL, I already used some assembly viewer, but I
didn't
>> > found
>> > any suitable information, maybe I didn't got the right one. Any
> suggestion
>> > is welcome :-)
>> >
>> > Thanks
>> >
>> > Laurent.
>> >
>> >
>> > "VJ" <so*****@ms.com> a écrit dans le message de
>> > news:u2*************@TK2MSFTNGP02.phx.gbl...
>> >> I am sure you would have checked.. but I am asking.. are these end >> > computers
>> >> having the same .NET framework installed as your development
machine?
> If
>> > the
>> >> end computers have multiple versions, you should makes sure your
>> > application
>> >> uses whatever version you developed on is being loaded at run-time by
>> >> your
>> >> application. The VS.NET environment does this automatically for
you..
>> >> This
>> >> is just a thought in case you missed it..
>> >>
>> >> or
>> >>
>> >> Do you know how to get dependencies of a specific DLL.. once you
>> >> get
> this
>> >> dependencies.. you can make sure they are all installed on end
> computer..
>> >>
>> >> VJ
>> >>
>> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> news:O%****************@TK2MSFTNGP04.phx.gbl...
>> >> > Hello VJ :-)
>> >> >
>> >> > No I add the Microsoft.mshtml.dll in addition of the project
output
> and
>> >> > other things. The application is running well everywhere for
>> >> > reading/settings values in the forms of the browser. But it does not
>> >> > disable
>> >> > the controls, and I can not access the options of a select
control,
>> >> > however
>> >> > the value can be read from the value of SelectElementClass.
>> >> > Things
> that
>> >> > are
>> >> > working well on my computer.
>> >> > Really strange
>> >> >
>> >> > Laurent
>> >> >
>> >> >
>> >> >
>> >> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> >> > news:u8**************@TK2MSFTNGP02.phx.gbl...
>> >> >> uhmm.. yes sorry, I just saw that myself... If you are using
>> >> >> the
>> > browser
>> >> >> object or the MS Browser control, that will its own set of
> Dlls..uhmm
>> >> >> lets
>> >> >> see.. Can you tell me how you are building your setup
>> >> >> project?.,
> Just
>> >> >> like
>> >> > a
>> >> >> including a Project Output into VS.NET setup project and then
>> >> >> building?
>> >> >>
>> >> >>
>> >> >> VJ
>> >> >>
>> >> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message
>> >> >> news:%2****************@TK2MSFTNGP02.phx.gbl...
>> >> >> > Euh I don"t thinkk so, it has been found in the NET
>> >> >> > components
> into
>> > the
>> >> >> > references of my project, but maybe it's just a wrapper
>> >> >> > class,
>> >> >> > and
>> > it's
>> >> >> > dependent of another DLL ? But No idea which one :-)
>> >> >> >
>> >> >> >
>> >> >> > "VJ" <vi********@yahoo.com> a écrit dans le message de
>> >> >> > news:Ob**************@TK2MSFTNGP03.phx.gbl...
>> >> >> >> I believe the Microsoft.MsHtml is a COM component.. Try
> registering
>> > it
>> >> >> > when
>> >> >> >> installing it. If you are using VS Packaging.. there is a
option
> to
>> > do
>> >> >> > this
>> >> >> >> for a single file in the properties windows. Check the
> properties,
>> > the
>> >> >> >> property name is pretty obvious..
>> >> >> >>
>> >> >> >> VJ
>> >> >> >>
>> >> >> >> "Laurent Lequenne" <ll*******@hotmail.com> wrote in message >> >> >> >> news:Op**************@TK2MSFTNGP04.phx.gbl...
>> >> >> >> > Hello All,
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > I'm currently developing a free windows Scrabble (in
>> >> >> >> > french
>> >> >> >> > :))
>> >> >> >> > application
>> >> >> >> > that uses extensively the WebBrowser class of NET 2.0 for >> >> >> >> > configuration,
>> >> >> >> > and
>> >> >> >> > data browsing. It works 100% on my machine, with the
>> >> >> >> > WebBrowser
>> >> > Class,
>> >> >> > and
>> >> >> >> > the Microsoft.MsHtml component. I can access all elements >> >> >> >> > on
> the
>> >> > pages
>> >> >> >> > through the events, I can change some parts. Everything is >> > rendered
>> >> >> >> > with
>> >> >> >> > XSLTs and changing directly the document through the
>> >> >> >> > msHtml
>> > thing.
>> >> >> >> >
>> >> >> >> > But apparently, it works only well on both of my machines :-)
>> >> >> >> >
>> >> >> >> > When I deploy the application, Enabling / Disabling
>> >> >> >> > controls
> does
>> >> >> >> > not
>> >> >> > work
>> >> >> >> > and when the application try to access a SelectElement the > users
>> > got
>> >> >> > that
>> >> >> >> > error :
>> >> >> >> > Unable to cast COM object of type 'System.__ComObject' to > class
>> >> >> >> > type
>> >> >> >> > 'mshtml.HTMLSelectElementClass'. COM components that enter the
>> >> >> >> > CLR
>> >> > and
>> >> >> > do
>> >> >> >> > not support IProvideClassInfo or that do not have any
interop
>> >> > assembly
>> >> >> >> > registered will be wrapped in the __ComObject type.
Instances
> of
>> >> >> >> > this
>> >> >> > type
>> >> >> >> > cannot be cast to any other class; however they can be
>> >> >> >> > cast
to
>> >> >> > interfaces
>> >> >> >> > as
>> >> >> >> > long as the underlying COM component supports
>> >> >> >> > QueryInterface
>> >> >> >> > calls
>> >> > for
>> >> >> > the
>> >> >> >> > IID of the interface.
>> >> >> >> >
>> >> >> >> > The Microsoft.MsHtml is copied with the application and
>> >> >> >> > all
> users
>> >> > have
>> >> >> >> > a
>> >> >> >> > correct installation, as it is the only thing that doesn't >> >> >> >> > work
>> >> >> >> >
>> >> >> >> > does anyone knows what I have to do, to make it work on
> machines
>> >> >> >> > that
>> >> >> >> > shouldn't be loaded with Visual Studio, as it's the only
>> > difference
>> >> >> >> > I
>> >> >> > can
>> >> >> >> > figure out with my machines and users machines ?
>> >> >> >> >
>> >> >> >> > Thank you
>> >> >> >> >
>> >> >> >> > Laurent
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Apr 18 '06 #15
Bonjour Laurent,

Check whether the target boxes have IE installed...

Joubert
"Laurent Lequenne" <ll*******@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP04.phx.gbl...
Hello All,
I'm currently developing a free windows Scrabble (in french :))
application
that uses extensively the WebBrowser class of NET 2.0 for configuration,
and
data browsing. It works 100% on my machine, with the WebBrowser Class, and
the Microsoft.MsHtml component. I can access all elements on the pages
through the events, I can change some parts. Everything is rendered with
XSLTs and changing directly the document through the msHtml thing.

But apparently, it works only well on both of my machines :-)

When I deploy the application, Enabling / Disabling controls does not work
and when the application try to access a SelectElement the users got that
error :
Unable to cast COM object of type 'System.__ComObject' to class type
'mshtml.HTMLSelectElementClass'. COM components that enter the CLR and do
not support IProvideClassInfo or that do not have any interop assembly
registered will be wrapped in the __ComObject type. Instances of this type
cannot be cast to any other class; however they can be cast to interfaces
as
long as the underlying COM component supports QueryInterface calls for the
IID of the interface.

The Microsoft.MsHtml is copied with the application and all users have a
correct installation, as it is the only thing that doesn't work

does anyone knows what I have to do, to make it work on machines that
shouldn't be loaded with Visual Studio, as it's the only difference I can
figure out with my machines and users machines ?

Thank you

Laurent

Jun 5 '06 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Prosperz | last post by:
Hi, I would like to make thumbnails of web page by capture content of a WebBrowser. By example, capture http://www.google.com. I used WebBrowser control with Framework 2.0. I try this : ...
1
by: L. Chernov | last post by:
Hello, I am trying to work with .Net 2005 WebBrowser object, and put it on a "Windows control library" (embedded in a user control class) and then I am executing it from an ASP.Net webform(with...
8
by: Dustan | last post by:
At http://docs.python.org/whatsnew/modules.html on the webbrowser module, it says "A number of additional browsers were added to the supported list such as Firefox, Opera, Konqueror, and elinks." ...
2
by: Young | last post by:
Hi! I am writing a program to insert text into a textbox on webbrowser. Please let me know if you can help me. Using Visual Studio 2005(Visual Basic) I have a form with many textboxes on left...
11
by: Anil Gupte | last post by:
....and how do I insert one into my form? I used in VB 6.0 last, but cannot figure out where it is in .Net Thanx, -- Anil Gupte www.keeninc.net www.icinema.com
4
by: Steve Richter | last post by:
I would like to build an HTML stream as a string and have the WebBrowser control render that HTML. Then on PostBack, or whatever it is called, I would like my code to be the one that receives what...
18
by: Zytan | last post by:
I have multiple threads writing to WebBrowser (using a function that checks InvokedRequired, and if so, invokes itself on the WebBrowser thread) and they are getting deadlocked. They only...
3
by: Peter Oliphant | last post by:
It's not necessary, but it would be nice if there was a way I could easily create something like a 'web browser form' or a 'display web page form' as forms in my application (in a Panel would be...
5
by: kimiraikkonen | last post by:
Hi, I couldn't find a necessary class which shows when mouse hovers on a link in Webbrowser control. Think of there's a status bar(text), when mouse comes on a link, the URL must be shown in...
3
by: TedTrippin | last post by:
Hi, Background - I've create a windows application in VS and added a WebBrowser component and all works well. I'm now trying to do this programmatically. My application now listens on a socket...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.