Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

file system object error

In my asp.net application using vb.net I get a error Cannot create ActiveX component when I hit this line of code:

fileOb = CreateObject("Scripting.fileSystemObject")

Please Advise :)
0
troyvw
Asked:
troyvw
  • 2
2 Solutions
 
hongjunCommented:
set fileOb = CreateObject("Scripting.fileSystemObject")
0
 
hongjunCommented:
u need set
0
 
Kiran Paul VJComputer EngineerCommented:

if u are using any antivirus softwares try disabling script blocking
0
 
Anthony PerkinsCommented:
And the big question is why are you using ActiveX such as the FileSystemObject with an ASP.NET application?  Or more relevant why not post in a more appropriate Topic Area such as:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/

There they can point you to the correct namespace to use (System.IO)
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now