Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Tue, 11 Oct 2005 11:07:48 -0700,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


ActiveXObject("htmlfile") and Jscript.NET   
[This was previously posted on microsoft.public.dotnet.languages.jscript but
so far got no reply there. Now trying my luck here.]

Consider the following code

var doc = new ActiveXObject("htmlfile");
doc.write("abc");

When executed under WSH this code runs without problems. However, compiling
as

jsc.exe /fast-

and running it produces

Unhandled Exception: System.Runtime.InteropServices.COMException
(0x80020005): Type mismatch.

   at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
   at mshtml.HTMLDocumentClass.write(Object[] psarray)
   at invoker0.Invoke(Object , Object[] )
   at Microsoft.JScript.JSMethodInfo.Invoke(Object obj, BindingFlags
options, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.JScript.LateBinding.CallOneOfTheMembers(MemberInfo[]
members, Object[] arguments, Boolean construct, Object thisob, Binder
binder,
CultureInfo culture, String[] namedParameters, VsaEngine engine)
   at Microsoft.JScript.LateBinding.Call(Binder binder, Object[] arguments,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParameters,
Boolean construct, Boolean brackets, VsaEngine engine)
   at Microsoft.JScript.LateBinding.Call(Object[] arguments, Boolean
construct, Boolean brackets, VsaEngine engine)
   at JScript 0.Global Code()
   at JScript Main.Main(String[] )

Any idea of what is wrong here and how to fix it?

-- 
Eugene
date: Tue, 11 Oct 2005 11:07:48 -0700   author:   Eugene Gershnik

Re: ActiveXObject("htmlfile") and Jscript.NET   
A red shift explains the universe.

------------------------------------------------

This one however is called green shift.

It explains how MS does not like html , javascript.

-----------------------------------------------------

On the same Hardware, there is no reason at all,
for Software to disfunction. Be it 95 or Vista.

-------------------------------------------------------

Don't know where you think your are greener ?

------------------------

I have finished my College degree while not
waiting for my father's money and political lawer's cloud.

-------------

Send Email to Mr. Bill Gates,
and wait for reason forever.








to a "Denial of Service" by a Softwsare Company





"Eugene Gershnik"  wrote in message 
news:OaJZw6ozFHA.3964@TK2MSFTNGP10.phx.gbl...
> [This was previously posted on microsoft.public.dotnet.languages.jscript 
> but
> so far got no reply there. Now trying my luck here.]
>
> Consider the following code
>
> var doc = new ActiveXObject("htmlfile");
> doc.write("abc");
>
> When executed under WSH this code runs without problems. However, 
> compiling
> as
>
> jsc.exe /fast-
>
> and running it produces
>
> Unhandled Exception: System.Runtime.InteropServices.COMException
> (0x80020005): Type mismatch.
>
>   at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
> BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
> msgData)
>   at mshtml.HTMLDocumentClass.write(Object[] psarray)
>   at invoker0.Invoke(Object , Object[] )
>   at Microsoft.JScript.JSMethodInfo.Invoke(Object obj, BindingFlags
> options, Binder binder, Object[] parameters, CultureInfo culture)
>   at Microsoft.JScript.LateBinding.CallOneOfTheMembers(MemberInfo[]
> members, Object[] arguments, Boolean construct, Object thisob, Binder
> binder,
> CultureInfo culture, String[] namedParameters, VsaEngine engine)
>   at Microsoft.JScript.LateBinding.Call(Binder binder, Object[] arguments,
> ParameterModifier[] modifiers, CultureInfo culture, String[]
> namedParameters,
> Boolean construct, Boolean brackets, VsaEngine engine)
>   at Microsoft.JScript.LateBinding.Call(Object[] arguments, Boolean
> construct, Boolean brackets, VsaEngine engine)
>   at JScript 0.Global Code()
>   at JScript Main.Main(String[] )
>
> Any idea of what is wrong here and how to fix it?
>
> -- 
> Eugene
>
>
>
date: Tue, 18 Oct 2005 00:31:07 -0400   author:   name

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us