Re: Internet Explorer Ignoring supportedRuntime Directive



Ok - it seems that IE loads up 1.1 embeded user controls with the 2.0 loader
even if you specify a different value in the application configuration
file - that's a bit annoying.

The problem was the CASPOL - I didn't have the settings I needed for 2.0
(not knowing 2.0 was being used).




"Jediah L" <rife@xxxxxxxxxxxxx> wrote in message
news:ujPTDiVbGHA.1228@xxxxxxxxxxxxxxxxxxxxxxx
I have an html application that uses an embeded .Net user control - and has
specified the startup attribute for supportedRuntime for 1.1.4322 - inside
of a XML configuration file.

When I run this application it ignores the runtime directive and loads up
the 2.0 runtime - I have verified this with the Fusion Logger.

Here is the Log Entry:

*** Assembly Binder Log Entry (5/1/2006 @ 3:40:58 PM) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\WINDOWS\System32\mshta.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = UNUM\C7J4L
LOG: Where-ref bind. Location = http://navilinkd2/assemblies/Main.dll
LOG: Appbase = http://navilinkd2/
LOG: Initial PrivatePath = bin
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image
will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:\Documents and
Settings\c7j4l\Local Settings\Temporary Internet
Files\Content.IE5\LSUSJBCK\AppConfig[1].xml
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Attempting download of new URL http://navilinkd2/assemblies/Main.dll.
LOG: Assembly download was successful. Attempting setup of file:
C:\Documents and Settings\c7j4l\Local Settings\Temporary Internet
Files\Content.IE5\FV13NP4W\Main[1].dll
LOG: Entering download cache setup phase.
LOG: Assembly Name is: Main, Version=3.3.1739.23226, Culture=neutral,
PublicKeyToken=null
LOG: Re-apply policy for where-ref bind.
LOG: Where-ref bind Codebase matches what is found in default context.
Keep the result in default context.
LOG: The post-policy assembly reference requires probing again.
LOG: Switch from LoadFrom context to default context.
LOG: Using application configuration file: C:\Documents and
Settings\c7j4l\Local Settings\Temporary Internet
Files\Content.IE5\LSUSJBCK\AppConfig[1].xml
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL http://navilinkd2/Main.DLL.
ERR: Downloaded file was not cached. The web server may be configured to
expire content immediately.
LOG: Attempting download of new URL http://navilinkd2/Main/Main.DLL.
ERR: Downloaded file was not cached. The web server may be configured to
expire content immediately.
LOG: Attempting download of new URL http://navilinkd2/bin/Main.DLL.
ERR: Downloaded file was not cached. The web server may be configured to
expire content immediately.
LOG: Attempting download of new URL http://navilinkd2/bin/Main/Main.DLL.
ERR: Downloaded file was not cached. The web server may be configured to
expire content immediately.
LOG: Attempting download of new URL http://navilinkd2/assemblies/Main.DLL.
LOG: Assembly download was successful. Attempting setup of file:
C:\Documents and Settings\c7j4l\Local Settings\Temporary Internet
Files\Content.IE5\KDMFC9AJ\Main[1].DLL
LOG: Entering download cache setup phase.
WRN: A duplicate assembly was found while copying the assembly item to the
cache.
LOG: Binding succeeds. Returns assembly from C:\Documents and
Settings\c7j4l\Local Settings\Application
Data\assembly\dl3\1BW8NQ4X.141\CDZJH791.AGL\e64e7f7e\80d0c352_04abc401\Main.dll.
LOG: Assembly is loaded in default load context.



Here is the AppConfig value that I have entered - it is getting streamed
to the client - I have verified with the Fusion Logger.


- <startup>
<supportedRuntime version="v1.1.4322" />
</startup>

Here is something of interest I get in an attached debbuger:

(f20.53c): CLR exception - code e0434f4d (first chance)
(f20.53c): CLR exception - code e0434f4d (first chance)
(f20.53c): C++ EH exception - code e06d7363 (first chance)
(f20.53c): C++ EH exception - code e06d7363 (first chance)
(f20.53c): CLR exception - code e0434f4d (first chance)
(f20.53c): CLR exception - code e0434f4d (first chance)
(f20.53c): C++ EH exception - code e06d7363 (first chance)
(f20.53c): C++ EH exception - code e06d7363 (first chance)



Is there something else that I am missing?



The most intresting part is - if I run the app from a local web server -
instead of a remote web server - even though it loads up 2.0 - it doesn't
fail - but on the remote server it fails...





.



Relevant Pages

  • Re: IE opens docx/pptx in winzip instead of word and powrpnt
    ... This is a configuration that has to be set for the web server that ... IE will download it with the .docx extension. ...
    (microsoft.public.word.docmanagement)
  • ANN: matplotlib-0.91.2 - a python graphics package
    ... A new release of matplotlib is posted to the sourceforge download ... better configuration - Darren Dale has provided support for a site.cfg ... record array support - New functions for loading, ...
    (comp.lang.python)
  • Re: AT91RM9200EK Image downloading not possible
    ... Windows Embedded Consultant ... <apellerin AT adeneo DOT adetelgroup DOT com> ... > I'm not able to download the image on the AT91RM9200EK: ... > Press any key to break into configuration menu 5 ... ...
    (microsoft.public.windowsce.platbuilder)
  • Re: AT91RM9200EK Image downloading not possible
    ... >> I'm not able to download the image on the AT91RM9200EK: ... >> Press any key to break into configuration menu 5 ... ... >> Got Response from DHCP server, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: _X11TransSocketUNIXConnect ... Sell me on Linux
    ... > around 2000 and it was a secondhand machine even then. ... > circular position of having to download the means of downloading. ... Ask for a Knoppix CD on your local LUG's mailing list, ... > choice by one of the configuration programs but not the other. ...
    (comp.os.linux.x)