Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created an application in .net 2008 in which I have used a ActiveX control to read smart card.

Now while development I was able to view and access my ActiveX control. Following is the way I have added it on my .aspx page

<object id="cardReader" name="cardReader" classid="../../MyControl.dll#MyControl.MyCardReader" enableviewstate="true"> </object>

Now I published my site and trying to access it using server ip. I am able to access all the pages but not able to see Activex control on card Reader page.

I hope my question is clear.. :-(

I know in order to download ActiveX controls on the browser you need to do some setting on Tool - Internet Options - Security , those are done on my machine. Also the ip through which I am accessing my site is added as trusted sites.

I am using IE8.

Can anyone let me know what is going wrong here?

Thanks in advance

If you need more explanation... please let me know (I need to fugure out this issue as early as possible).

-Amol
Posted
Updated 19-Jun-11 21:35pm
v2
Comments
Sergey Alexandrovich Kryukov 17-Jun-11 14:24pm    
Not enough information and nothing surprising -- missing this control of server, that's it. How can you imagine any help based on your information. Just get your hands dirty and find all the ends.
--SA

Here is the paradox: if you find all the ends needed to make this question informative enough to become answerable (please see my comment above), you can come to the solution by yourself, so no answer would be needed.

Just try it.

Good luck,
—SA
 
Share this answer
 
Comments
Amol_27101982, India 20-Jun-11 3:37am    
Hi...
Please go through my question again... I have updated the same. If you need any more explanation then please let me know.

-Amol
I had following workaround for above question.

Created a single page application which will have the object tag as follows:
<object id="cardReader" name="cardReader" classid="MyControl.dll#MyControl.MyCardReader" enableviewstate="true"></object>

Created a different Virtual directory for above application and hosted on the server
and that page is added as source in the iframe as follows:
<iframe src="http://[SERVER IP]/[VIRTUAL DIRECTORY]/default.aspx" id="ifrmReadCard" scrolling="no" frameborder="0" style="border:0px;height:35px;></iframe>

This works fine for me.

[I know this is not the proper way and I am still in search of some correct solution]

Thanks
-Amol
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900