Click here to Skip to main content
15,917,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Hi

I have created Class library and exposed it as com using interface
I am able to invoke it from HTML page using javascript page
<script language="javascript">
 var x = new ActiveXObject("AxControls.HelloWorld");
 alert(x.GetText());
</script>
but when same java script I am using in asp.net page then getting error
"Automation server can't create object" asp.net application is on same machine
still code is not working. Please suggest how can I remove this

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 30-Jan-13 2:40am    
Just a note: ActiveX objects is evil. If a qualified user finds out that you use ActiveX on client part (which is apparent from the page source a user can see), she/he would not deal with your site; it means that it can be utterly unsafe. Avoid it by all means.
—SA
Raman Thakur 30-Jan-13 6:50am    
if you have to invoke your own application on client machine then use custom protocol rather than activeX

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



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