cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
75
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Muhammad Adil Malik on 28-06-2010 07:29:53 AM
Hi All,
 
I am developing an activex control that could be run in browser, I need to find out some answers because i am not receiving any connection event.
 
For the refrence please find attached screen shot. I need to disable all the .Net securities to run the code, The same code perfectly running fine on windows based application and receiving the onconnection event but when i am creating a dll and embeding that into the web browser i am not receiving the OnConnection event.
 
If you see in the screen shot, the System Event ID is 15 that is in sdk's document is "eSysCTIOSSeverOnline" and the Failure Code that is returning is 10 that is "eServerConnectionStatus".
 
My question is if CTIOS server is fine and connected, because i am receiving the heartbeat event after that; why my application is not getting the OnConnection event, i had tried to run for 15 min but still did't get any other event except heartbeat event.
 
Is this environment issue;
 
Thanking in advance
 
Regards
Muhammad Adil Malik
 

Subject: RE: New Message from Muhammad Adil Malik in Computer Telephony Integration
Replied by: David Lender on 28-06-2010 12:51:05 PM
Which CIL are you using?  COM Cil?  C++ Cil?  .NET Cil?  You said you
had to disable .NET security.  That sounds like a Microsoft Windows
issue since you are trying to create a .dll.  I suggest you open a Cisc
TAC Service Request using your CDN contract and provide the CIL and
CTIOS Server logs for your working and non-working version.

Subject: RE: Problem while creating activex control
Replied by: Shannon McCoy on 15-07-2010 09:43:44 AM
Hi All,
 
I am developing an activex control that could be run in browser, I need to find out some answers because i am not receiving any connection event.
 
For the refrence please find attached screen shot. I need to disable all the .Net securities to run the code, The same code perfectly running fine on windows based application and receiving the onconnection event but when i am creating a dll and embeding that into the web browser i am not receiving the OnConnection event.
 
If you see in the screen shot, the System Event ID is 15 that is in sdk's document is "eSysCTIOSSeverOnline" and the Failure Code that is returning is 10 that is "eServerConnectionStatus".
 
My question is if CTIOS server is fine and connected, because i am receiving the heartbeat event after that; why my application is not getting the OnConnection event, i had tried to run for 15 min but still did't get any other event except heartbeat event.
 
Is this environment issue;
 
Thanking in advance
 
Regards
Muhammad Adil Malik
 

 
A lot of this depends on the CIL you are using. If you are coding an ActiveX control you should be using C++ and the COM CIL. .NET should not come into play unless you are trying to make a COM Visible .NET control and then you are really out on a limb as you are marshalling things like crazy over all kinds of boundaries from memory boundaries to security boundaries. If you use C++, ActiveX and the COM CIL this should be a fairly straight forward applicaiton.

Subject: RE: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: David Lender on 15-07-2010 05:56:55 PM
Yes use the COM Cil, but running an activex control in a browser for
CTIOS is not recommended as a refresh will cause the session to be lost.
You can disable browser buttons though to avoid this.

Subject: RE: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: Shannon McCoy on 17-07-2010 01:10:39 AM
Yes use the COM Cil, but running an activex control in a browser for
CTIOS is not recommended as a refresh will cause the session to be lost.
You can disable browser buttons though to avoid this.

 
Very good point. You may want to open second browser window using shdocvw.dll which will give you control over the brower events. But you will have to experiment.

Subject: RE: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: Muhammad Adil Malik on 17-07-2010 02:40:29 AM
Thanks a lot for all of your valueable suggestions, but my point of interest is an activeX control that running inside a broswer has some restriction right? (whether its created using .Net CIL or COM CIL) yes?
 
If so then the security sandbox is same for both of the developed control so how could this be possible that if a control with .Net CIL is not reciving onConnection event but COM CIL will receive.
 
I personally think that it is the problem with the sandbox (IE) i am trying to use, i had posted the question inside the forum as i wanted to know is there any one else here tried to create the control and embeded that control inside the IE, if so please share the experience with me as i am not getting only the onConnection Event as in windows based application same code is receiving onConnection event.
 
Again thanking all of your for your valueable time and suggestion.....

Subject: RE: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: Shannon McCoy on 19-07-2010 10:18:58 AM
Thanks a lot for all of your valueable suggestions, but my point of interest is an activeX control that running inside a broswer has some restriction right? (whether its created using .Net CIL or COM CIL) yes?
 
If so then the security sandbox is same for both of the developed control so how could this be possible that if a control with .Net CIL is not reciving onConnection event but COM CIL will receive.
 
I personally think that it is the problem with the sandbox (IE) i am trying to use, i had posted the question inside the forum as i wanted to know is there any one else here tried to create the control and embeded that control inside the IE, if so please share the experience with me as i am not getting only the onConnection Event as in windows based application same code is receiving onConnection event.
 
Again thanking all of your for your valueable time and suggestion.....

 
I have done .NET applicaitons run from the web and sandboxed that use devices and write files at will in the system. Its not just a matter of sanboxing. The point of the ActiveX control is to allow you to do anything you want without sandboxing. That is why there are so many controls that limit the installation and running of ActiveX controls. The .NET security model is completely different from the normal ActiveX model. In fact you will find that it varies from OS to OS. I have code that marshals to from .NET to Win32 C++ and it behaves differently on Vista and on Windows 7. On Vista the Win32 code will not return values, on Windows 7 the same code works fine. Both are .NET Winforms apps run in the browser. My point was that to use COM with .NET you have to marshal through interop and there are myriad complications that can arise from doing this. These problems have little to do with the CIL you chose. It has more to do with Microsoft issues with running code in proc with IE and custom marshalling. You appear to be confusing different subjects together. That is why I asked how you are trying to the ActiveX code. If you stick to COM and C++ at least you can concentrate on one set of security questions and not wonder whether it is simply memory marshalling that is obstructing you.

Subject: RE: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: Umair Abbasi on 26-07-2010 04:18:28 PM
Thanks a lot for all of your valueable suggestions, but my point of interest is an activeX control that running inside a broswer has some restriction right? (whether its created using .Net CIL or COM CIL) yes?
 
If so then the security sandbox is same for both of the developed control so how could this be possible that if a control with .Net CIL is not reciving onConnection event but COM CIL will receive.
 
I personally think that it is the problem with the sandbox (IE) i am trying to use, i had posted the question inside the forum as i wanted to know is there any one else here tried to create the control and embeded that control inside the IE, if so please share the experience with me as i am not getting only the onConnection Event as in windows based application same code is receiving onConnection event.
 
Again thanking all of your for your valueable time and suggestion.....

 
yes i made the control in .NET using class library project in VS2005. i embedded the DLL in IE
using object tag. Initially there were some .NET security exceptions which were shown as pop up on IE whenever a click event was being fired. Then i executed .NET " CASPOL " command to allow fulltrust and get rid of exceptions.
 
I haven't tested the control on live environment so i couldn't tell about OnConnection event.
I am trying to connect control with CTI simulator.
 
Regards,
Abbasi
 
 

Subject: RE: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: Umair Abbasi on 27-07-2010 08:48:06 AM




Thanks a lot for all of your valueable suggestions, but my point of interest is an activeX control that running inside a broswer has some restriction right? (whether its created using .Net CIL or COM CIL) yes?
 
If so then the security sandbox is same for both of the developed control so how could this be possible that if a control with .Net CIL is not reciving onConnection event but COM CIL will receive.
 
I personally think that it is the problem with the sandbox (IE) i am trying to use, i had posted the question inside the forum as i wanted to know is there any one else here tried to create the control and embeded that control inside the IE, if so please share the experience with me as i am not getting only the onConnection Event as in windows based application same code is receiving onConnection event.
 
Again thanking all of your for your valueable time and suggestion.....


 
yes i made the control in .NET using class library project in VS2005. i embedded the DLL in IE
using object tag. Initially there were some .NET security exceptions which were shown as pop up on IE whenever a click event was being fired. Then i executed .NET " CASPOL " command to allow fulltrust and get rid of exceptions.
 
I haven't tested the control on live environment so i couldn't tell about OnConnection event.
I am trying to connect control with CTI simulator.
 
Regards,
Abbasi
 
 


 
Thanks Umair,
 
Exactly what i am talking about i had also created the class library and when i had caspol off then only i am able to run the control but i am not getting the OnConnection event basically whenever we receive the OnConnection event then only we can login the agent other wise all of the requests will goes in queue.
 
I had created a full fledge working application that is currently live with around 60000 call daliy around 250 agents, but i am unable to receive the onConnection event in the web-based environment please connect your control and let me know if that control is receiving the onConnection, Any help will be greatly appreciated.
 
 
Thanks

 
There is a CTI simulator which is used to test CTI applications. As you said you created application then did you connect the application with simulator before deploying on live server ?
If so then kindly let me know ..
 
 

Subject: RE: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: Muhammad Adil Malik on 27-07-2010 04:23:08 AM


Thanks a lot for all of your valueable suggestions, but my point of interest is an activeX control that running inside a broswer has some restriction right? (whether its created using .Net CIL or COM CIL) yes?
 
If so then the security sandbox is same for both of the developed control so how could this be possible that if a control with .Net CIL is not reciving onConnection event but COM CIL will receive.
 
I personally think that it is the problem with the sandbox (IE) i am trying to use, i had posted the question inside the forum as i wanted to know is there any one else here tried to create the control and embeded that control inside the IE, if so please share the experience with me as i am not getting only the onConnection Event as in windows based application same code is receiving onConnection event.
 
Again thanking all of your for your valueable time and suggestion.....


 
yes i made the control in .NET using class library project in VS2005. i embedded the DLL in IE
using object tag. Initially there were some .NET security exceptions which were shown as pop up on IE whenever a click event was being fired. Then i executed .NET " CASPOL " command to allow fulltrust and get rid of exceptions.
 
I haven't tested the control on live environment so i couldn't tell about OnConnection event.
I am trying to connect control with CTI simulator.
 
Regards,
Abbasi
 
 

 
Thanks Umair,
 
Exactly what i am talking about i had also created the class library and when i had caspol off then only i am able to run the control but i am not getting the OnConnection event basically whenever we receive the OnConnection event then only we can login the agent other wise all of the requests will goes in queue.
 
I had created a full fledge working application that is currently live with around 60000 call daliy around 250 agents, but i am unable to receive the onConnection event in the web-based environment please connect your control and let me know if that control is receiving the onConnection, Any help will be greatly appreciated.
 
 
Thanks

Subject: RE: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: Muhammad Adil Malik on 27-07-2010 09:00:29 AM
I have't tested it with the CTI Simulator instead i am directly connecting with the live server.

Subject: RE: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: Benjamin Franklin on 28-07-2010 01:56:34 PM
Thanks a lot for all of your valueable suggestions, but my point of interest is an activeX control that running inside a broswer has some restriction right? (whether its created using .Net CIL or COM CIL) yes?
 
If so then the security sandbox is same for both of the developed control so how could this be possible that if a control with .Net CIL is not reciving onConnection event but COM CIL will receive.
 
I personally think that it is the problem with the sandbox (IE) i am trying to use, i had posted the question inside the forum as i wanted to know is there any one else here tried to create the control and embeded that control inside the IE, if so please share the experience with me as i am not getting only the onConnection Event as in windows based application same code is receiving onConnection event.
 
Again thanking all of your for your valueable time and suggestion.....

 
can you show me the lines of code OR the attributes which you are using to
connect to CTI server ??
 
Thanks,
Benjamin
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links