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.
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.
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.
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).
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.
It would be ok to have them ok the download since it is just a few kiosks. I am still not clear on how I make that happen in mvc. Is it a link with javascript or an actionresult? Thanks.
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.
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.
A_Carlson
0 Points
7 Posts
Active X in MVC 3
Jun 01, 2012 07:39 PM|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.
Thanks
JohnLocke
Contributor
3136 Points
700 Posts
Re: Active X in MVC 3
Jun 01, 2012 07:47 PM|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.
CPrakash82
All-Star
18266 Points
2837 Posts
Re: Active X in MVC 3
Jun 01, 2012 07:48 PM|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.
Thanks,
A_Carlson
0 Points
7 Posts
Re: Active X in MVC 3
Jun 01, 2012 08:29 PM|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).
Thanks!
CPrakash82
All-Star
18266 Points
2837 Posts
Re: Active X in MVC 3
Jun 01, 2012 08:40 PM|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.
Thanks,
A_Carlson
0 Points
7 Posts
Re: Active X in MVC 3
Jun 01, 2012 10:18 PM|LINK
CPrakash82
All-Star
18266 Points
2837 Posts
Re: Active X in MVC 3
Jun 01, 2012 10:37 PM|LINK
This thread will help in setting up that.
http://stackoverflow.com/questions/370960/auto-install-activex
Thanks,
bruce (sqlwo...
All-Star
36822 Points
5441 Posts
Re: Active X in MVC 3
Jun 02, 2012 03:36 AM|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.
A_Carlson
0 Points
7 Posts
Re: Active X in MVC 3
Jun 03, 2012 07:41 PM|LINK
I am going to give this a try - I did have a cab file but wasn't sure how it got installed. Thanks!!
CPrakash82
All-Star
18266 Points
2837 Posts
Re: Active X in MVC 3
Jun 03, 2012 11:10 PM|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.
Thanks,