?
Solved

ActiveX-control produces security error message

Posted on 2003-02-20
4
Medium Priority
?
149 Views
Last Modified: 2010-04-07
Don't really know where to post this question, but I hope this is the right conference. Anyway.

I've got a problem. I've been writing an ActiveX control to use on a web page, which is embedded on the page using the well-known <OBJECT> tag. The strange thing though is that when I try to pass some parameters to this control, using either the <PARAM> tag or through VBScript/JavaScript, I get the following message:
"An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?"

I've tried like everything possible in the settings of Internet Explorer to see if it had something to do with security control, but I just can't get the damn question to disappear! So is there anyone out there who knows how to fix this problem? Have I missed something in the VB-source, is the problem situated in the HTML-code, or is it just IE?
0
Comment
Question by:noandnothing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 12

Expert Comment

by:guidway
ID: 7989615
0
 
LVL 12

Accepted Solution

by:
guidway earned 300 total points
ID: 7989638
found here (might help):
 http://msdn.microsoft.com/msdnmag/issues/02/09/WebQA/default.aspx

A Although it may not seem obvious at first, reading files is also a huge security problem. Would you like a random Web page mailing your personal e-mails, documents, or database items to a hacker? How would you like it if you went to a Web page and it uploaded the contents of your hard disk to the evil hacker's site?
Even if that wasn't an issue, the ActiveX technology doesn't have the fine-grained control you need for this—you either run the control or you don't. Microsoft .NET addresses this with very fine-grained security permissions.
So the dialog box won't go away. Hopefully your customers all say "No!" to this dialog, unless it is on an intranet. Never say Yes to this dialog on the Web, in e-mail, or even on an intranet, unless you know why you need that control and who wrote it.
In case you were wondering, you should never ask a customer to say "Yes" to that dialog on the Web. That's a truly bad practice. If your users wanted to avoid all such messages, they could turn off Internet Explorer security, but that would be foolish.
0
 

Expert Comment

by:CleanupPing
ID: 8901352
noandnothing:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
 
LVL 12

Expert Comment

by:guidway
ID: 8904300
I have posted the only valid (and legal) answer to this question (that I know of). I recommend points go to me. :0)

guidway
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question