Jump to content

Activex control does not load on Windows 2003 server


Recommended Posts

Posted (edited)

hi

Having a problem here thats driving me crazy.

I am using an activex control in a vbscript web page that won't load when opening the page in iexplorer 6 on a windows 2003 server. It is a standard version of 2003 server and i want to use this page local on the server itself without a client. The control i am using is mscomctl.ocx.

Every time when i try to open the web page i get the same message:

activex_warning.gif

When i click yes the page continuous with a script error, so appartently the activex control gets installed in the \windos\system32 dir but is not loaded for displaying the content of the page.

I tryed several things but none havent worked so far:

-uninstal Enhanced Security Configuration

-lower all security settings in inexplorer

-register the control manuely with regsvr32.exe

Am i doing something wrong? Can anyone give me some other ideas?

This seems to work flawlessly on Windows XP and 2000.

<HTML>
<HEAD><TITLE>TEST</TITLE>
<HTA:APPLICATION windowstate="maximize">
<STYLE TYPE="text/css">
BODY {font-family:Arial}
</STYLE>
<script LANGUAGE="VBScript">
<!--
Option Explicit

-->
</SCRIPT>
</HEAD>
<BODY STYLE="background=ivory;">

<OBJECT ID="TV" CLASSID="clsid:C74190B6-8589-11D1-B16A-00C0F0283628" WIDTH=550 HEIGHT=350
STYLE="font-size:11;"
CODEBASE="http://activex.microsoft.com/controls/vb6/mscomctl.cab"
>
<param name="LineStyle" value="0">
<param name="LabelEdit" value="1">
<param name="Style" value="7">
<param name="Appearance" value="1">
</OBJECT>

</BODY>
</SCRIPT>
</HTML>

Edited by jos707

Posted

Sounds like the ActiveX changes are hitting your code (this will happen after installing the IE ActiveX update from April of this year, when running the code in the "Local Computer" zone - the control activation is being blocked by the shell). If you follow these instructions to call your control from an external js, it should work:

http://msdn.microsoft.com/library/default....ing_activex.asp

Posted

Yes it seems activex is blocked for an unknown reason.

After the page is loaded i get always the same error : "object does'n support this property or method".

But i am using vb script and not js, so i could not try the above solution.

It is very strange because we have here another windows 2003 server with same standard

installation and on this one everything seems to work without any problem ?

The installation is a standard installation of 2003 without SP1.

The only update that was installad was this one: kb912945

Uninstalling this update did not help.

I am logged on as a user with admin rights so that can't be the problem i think?

Posted

There was an issue with that update, but the fix was included in the next IE cumulative update (and any others going forward will include the activex changes as well). You need to encapsulate the control in a js going forward, or do not use the Object tag to embed it (that's why it's failing to activate - IE cumulative updates since April '06 will no longer allow this due to the EOLAS patent lawsuit).

Posted (edited)

That's probably because of the default security settings.

Someone at Microsoft decided to make Windows Server 2003 crippled by default.

Likely is because of the fact that Steve Ballmer took over. That guy gets to me! :realmad:

Edited by RJARRRPCGP
Posted

I tryed to uninstall all updates (there was only one) but this problem persists.

My last hope was installing office 2003, because office does need those activex controls to be able to work properly. And guess what, after installing office 2003 this bloody activex contol thing started to work in my web page afterall !

I still don't understand what's going on but apparently i couldn't active activex manuelly but installing office could do it in some way. Still installing office is no solution, this is not very user friendly and too much harassment to make a simpel vb script work.

Next step is uninstalling office again and see what happens, will this activex contol still work ?

There must be away to enable it without installing office but how..seems to be a mystery.

Posted

You really should be using the js method I posted above, because anyone running Vista is going to have this problem, as well as XP and 2K3 users after installing the April '06 cumulative update, or XP or 2K3 IE7 users. Loading activex controls using the Object tag is deprecated, and will stop working altogether on almost all updated machines soon.

Consider fixing it before it breaks permanently :yes:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...