Results 1 to 14 of 14

Thread: My Activex Control On Web Doesnt Work URGENT

  1. #1

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188

    Angry My Activex Control On Web Doesnt Work URGENT

    Hey all,

    I've created an Active x control that allows data entry to a database.
    also parses a text file etc.

    Now i put it on the companies web site so they can enter there timesheet through it. And i get this error: "This page contains object that is unsafe and it may not function properly!"

    It continues on and i can enter data ok but when it comes especially to paresing the text file it doesnt work. No errors it just doesnt work.

    Why is that?

    Please help meeeeee!!
    thanks

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Now i put it on the companies web site so they can enter there timesheet through it. And i get this error: "This page contains object that is unsafe and it may not function properly!"
    You have to digitially sign it and mark it safe for scripting to get around this.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    ta josh how can i do this?

  4. #4
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Originally posted by Beacon
    ta josh how can i do this?
    I haven't got it cracked at this stage but look at http://support.microsoft.com/default...;EN-US;q182598

    to get the idea of where to start
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  5. #5
    Addicted Member MrPresident2k's Avatar
    Join Date
    May 2002
    Location
    INDIA
    Posts
    167

    Try this 1 also

    Hi,

    Try reducing your browser security for inranet. Means enable all the options under the ActiveX controls and plugins and then try loading the control.

    Pres.

  6. #6
    Addicted Member MrPresident2k's Avatar
    Join Date
    May 2002
    Location
    INDIA
    Posts
    167

    Read this to know about signing...

    Hi,

    Take a look at this link.
    http://msdn.microsoft.com/library/de...thenticode.asp

    Pres

  7. #7
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611

    Re: Try this 1 also

    Originally posted by MrPresident2k
    Hi,

    Try reducing your browser security for inranet. Means enable all the options under the ActiveX controls and plugins and then try loading the control.

    Pres.
    Unfortunately this would mean that all users would have to do that!
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  8. #8

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    Kzin digging up an old thread!

    You gotta get it signed by someone like verisign for a few hundred $$$ that'll make it authorised or something!

    b

  9. #9
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Originally posted by Beacon
    Kzin digging up an old thread!

    You gotta get it signed by someone like verisign for a few hundred $$$ that'll make it authorised or something!

    b
    I was just digging around for information on why my ActiveX wasn't coming up as safe to script and thought it might still be of interest to people who seemed to have similar problems in the past! Signing wasn't the problem - I use signcode for that. The problem was http://209.120.143.185/showthread.ph...26#post1054526
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  10. #10
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Next to a digital signature, there are two more security attributes for activeXControls: Save for scripting, and save for initialization. Only the digital signature will cost you money.
    If your control is save for scripting, and save for initialization, you can set these options when you run the P&D wizard (if it is not, you can also set these options, this is completely left to the responsibility of the developer)

    From MSDN:
    Digital signatures create a path to you (through the company that authorized your certificate), in the event that your control causes harm on a user's system. You can incorporate your signature when you use Package and Deployment Wizard to create an Internet setup for your control component.


    Marking your control safe for scripting tells users that there's no way a script on an HTML page can use your control to cause harm to their computers, or to obtain information they haven't supplied willingly.


    Marking your control safe for initialization lets users know there's no way an HTML author can harm their computers by feeding your control invalid data when the page initializes it.

  11. #11
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Originally posted by Frans C
    Next to a digital signature, there are two more security attributes for activeXControls
    Thank you Frans C - a very good and clear explaination! The problem that I had been having (and possibly Beacon?) was that until VB6 [SP3] the checkboxes that enable safe for scripting and safe for initialization in Package and Deployment wizard did not generate the correct registry keys in the INF file that is included in the CAB file generated as it was in VB5's SETUP wizard. This is corrected in the SP4 and SP5 packs.
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  12. #12
    New Member
    Join Date
    Jul 2002
    Posts
    1
    Hey guys, Um I just started working with ActiveX using VB. I just wanted to know what SP is? I have Microsoft Visual Studio 6.0 Enterprise Edition, so I hope this means I don't have to worry about the thangs you guys are talking aobut, right? Except the Package Wizzard thang. Unless SP is Packeage Wizzard. I want to make ActiveX stuff that cam be used on the web or were ever. If I make the control or what ever, in VB dose that mean I have to use it in only VB? What about VC / MFC?

  13. #13
    New Member
    Join Date
    Jul 2002
    Posts
    12

    Fraid So, Sakky

    SP = service pack.

    Active X - you will need to get to know this stuff if you are releasing components into a corporate environment or doing web stuff.

    Active X components, like Java applets, are pretty powerful and operating systems will be on the lookout for outside code components that want to come in and read from files or write to files on a drive (and that is just the start of it).

    What everyone has been talking about has been how you set up your app deployment to make sure your component is properly trusted to do what you want it to do.

    Earlier releases of VB6 did not have the deployment stuff properly configured, but later service packs did.

  14. #14
    Hyperactive Member FATBOYPEE's Avatar
    Join Date
    May 2001
    Location
    Charleville (Ireland) Still. ANYONE GOT A JOB I CAN HAVE ? GIZA JOB. I CAN DO THAT....
    Posts
    463

    Old Fred maybe but..

    Seeing as this is current-ish, I'll aska question ?

    How do people normally reference Server Objects through Web Hosted OCX's ??

    Best Bar.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width