Last post Jun 04, 2012 09:24 PM by A_Carlson
Jun 01, 2012 03:39 PM|A_Carlson|LINK
I tried putting a reference to my dll, cab files, etc in my MVC view and it will not download it. The only way I get the control to work is to install it myself using the msi - then it works fine in MVC view. My control is a reader for an HID device.
At this point I am not sure if this is a Windows 7 Issue, Internet Explorer or MVC 3.
I would appreciate any help or suggestions.
Jun 01, 2012 03:47 PM|JohnLocke|LINK
Internet Explorer has zone security settings that prohibit downloading active X components. You may want to customize the security levels to "prompt" when unsigned active x controls try to download.
Jun 01, 2012 03:48 PM|CPrakash82|LINK
Using ActiveX control is specific to HTML and browser settings and not with MVC. ActiveX control has to be installed in the system to use. You need just an <Object ..> tag in your html as reference.
Jun 01, 2012 04:29 PM|A_Carlson|LINK
My object tag works if I install the Active X control using the msi but I want to be able to have the control install when the user hits the page. This is why I was trying to use a cab file - is this possible to do? I don't believe it is the security settings
because I created my site as a trusted site and tuned the security for the active x controls for my site (unless I am missing something).
Jun 01, 2012 04:40 PM|CPrakash82|LINK
Thats how ActiveX works, they always requires permission from user otherwise anyone can install malicious program through activex. Also it is not compatible with non windows os.
Jun 01, 2012 06:18 PM|A_Carlson|LINK
Jun 01, 2012 06:37 PM|CPrakash82|LINK
This thread will help in setting up that.
Jun 01, 2012 11:36 PM|bruce (sqlwork.com)|LINK
ie will not download and run a msi install for active/x even if active/x and auto download are enabled. you have 2 options:
1) supply a downlad link to the msi, have the users download and install.
2) as iE only supports cab installs, put the msi inside a cab file, then write an install dll that is also placed in the cab. the install dll extracts the msi and runs it.
Jun 03, 2012 03:41 PM|A_Carlson|LINK
I am going to give this a try - I did have a cab file but wasn't sure how it got installed. Thanks!!
Jun 03, 2012 07:10 PM|CPrakash82|LINK
You can look at the link I posted earlier, it has all the details. You just need to specify the Cab file location alogn with the Object tag in html and it will automatically does all the steps.
Jun 04, 2012 10:32 AM|A_Carlson|LINK
Do you use the Setup.exe program at all - my project creates both an msi and a setup.exe but I wasn't using the setup.exe and i don't see any references to it in the link mentioned above.
Jun 04, 2012 11:13 AM|CPrakash82|LINK
I have done it long back and don't remember using setup.exe, I believe it is used to verify the dependencies required for the application getting deployed through .MSI file. like .NET framework, if you run through msi it will not display any message but
you application will not properly. If you start setup.exe it will give you error message for .NET requirement installation or will automatically install it.
Jun 04, 2012 12:09 PM|A_Carlson|LINK
I did everything in the link mentioned - implemented IObjectSaftey - and I ran signtool on both my cab file and my msi but when I launch my webpage nothing seems to happen. I think I am missing something but I just don't understand what should prompt the
install of my msi folder. I thought the hooks in the inf file would do that but it doesn't seem to do anything.
Jun 04, 2012 07:57 PM|CPrakash82|LINK
Did you uninstalled the already installed version of activex control. Also you need to change the IE setting as John suggested.
Jun 04, 2012 08:24 PM|meforero|LINK
I am not expert on asp.net mvc 3 (i am expert on windows app) but i beleave if use activex, you break all escence of internet app, your app must be run on all internet explorer mozilla, chrome, opera, safari and dolphin if you use activex your app only run
on internet explorer... inclusive depend of number version 6 7 8 or 9, activex is deatly slowly for internet incompatibility equal that flash.
Jun 04, 2012 09:07 PM|CPrakash82|LINK
Yes, for sure using activex in today's web world is big no.
Jun 04, 2012 09:24 PM|A_Carlson|LINK
I did try all of the IE security settings - I made a trusted site and turned off active x (all of the settings to just try it out). I was able to get the prompt for the install but when I click to install nothing happens. At this point I am going to just
have the kiosk operator run the install and not continue down this path. Thanks for your help.