views:

99

answers:

0

Its been a long saga of deploying my .Net uploader but I'm very close. I created my .Net uploader dll in Visual-Studio, generate an installer for it with InstallShield and digitally sign it (in InstallShield). I then put that CAB file on my server and setup the html page like so:

uploader.html:

<html>
<body>
    <script src="/include/js/embed_activex.js"></script>
</body>
</html>

embed_activex.js:

document.write('<OBJECT WIDTH=500 HEIGHT=200 ID="UploadCtl" CLASSID="clsid:cd07741c-684b-4db0-a685-90359257ef8c" CODEBASE="/dev/setup.cab">');

I forget at the moment why you're supposed to insert the object with Javascript in IE but its the same reason you do it for .jar files, here CLASSID is the classid of the dll file.

Now if I visit the page, it prompts me to run an ActiveX control signed by 'My Comapny', it installs the file and then... gives me a red x where the control should be :( If I change the security level in IE to 'Medium' (normally its defaulted to Medium-High) and visit the page and run the installer everything works great, alternatively if I add my site to the Trusted Sites (which is defaulted to Medium) it also works.

My question is what do I have to do to get this to work at 'Medium High' (the default IE level), I see other ActiveX controls work at the default level...