ActiveX unsafe

  • Thread starter Thread starter Harry Simpson
  • Start date Start date
H

Harry Simpson

I've got code that runs fine if i double click an html file. If i copy that
same code into a aspx page and try to run it i first get the "An ActiveX
control on this page is unsafe..." error and then i get an "Object doesn't
support this property or method".

Why does it run fine in the browser double-clicking the html file but will
crash running in ASPNET page in debug mode?

TIA
Harry
 
Because if you double click an HTML file on your computer, it is running in
the My Computer security zone, but if you open up an ASP.NET page you are
typically running in either the Local Intranet or Internet zones. As you
might expect, the My Computer security zone allows you to do a lot more than
the less trusted zones.
 
Back
Top