PDA

Click to See Complete Forum and Search --> : ActiveX CAB problem


MrPresident2k
Sep 20th, 2002, 12:30 AM
Hi,

I've created an ActiveX control project. It works fine in the design mode(it opens in a browser). And when I create an Internet package with it, the ActiveX control doesn't load when I copy the object tag and the CAB file to my web server. And till yesterday it was working fine, and it isn't today.

The project properties I have set are :-
Upgrade ActiveX control = true
Apartment threading

Version Number
2 0 0
AutoIncrement = true

Remove Information about unused ActiveX controls = true
Complile to Native code=true
Optimize for Fast Code true

Binary Compatibility

These are the project settings I have. I tried in an another machine also, but that is too not working.
Please help.

Thanks,
Pres

jovellag
Oct 16th, 2002, 01:58 AM
HI,

I have the same problem lately. Where you able to figure out the solution?

MrPresident2k
Oct 17th, 2002, 08:04 AM
Hi,

My problem was in UserControl_Initialize. I had a property which will get the user name and an ASP file path(which XMLHttp will use)from the page and then get some data for the user in the Control.
The problem was that, when the page loads itself the initialize is called so that passing an empty name and filepath, control failed to load. I shifted these operations to a seperate function and called them after the initialize.

Now it works fine.

Thanks,
Pres