ActiveXObject("Scripting.FileSystemObject") Automation Server can't create object.
-
26 กรกฎาคม 2555 18:16
I am trying to use the javascript's FileSysyemObject as
var myObject;
myObject = new ActiveXObject("Scripting.FileSystemObject");
myObject.DeleteFile("c:\\testing.txt");i am getting tis error :- Automation Server can't create object.
If i try like this http://localhost/cruelapplication/Default.aspx (it's working)
if i try like tis http://197.168.6.7/cruelapplication/Default.aspx(Not working)if i use ip address instead of ip localhost -not working
ตอบทั้งหมด
-
29 กรกฎาคม 2555 23:14
Where are you running this script from. IE? if so check the site zone security settings. Depending on your environment it may be accessible from IE or through modification of Group Policy.
- Go to Tools > Internet options > Security > Custom Level
- Under the ActiveX controls and plug-ins, select Enable for Initializing and Script ActiveX controls not marked as safe
Mike
- ทำเครื่องหมายเป็นคำตอบโดย Jason Dot WangMicrosoft, Moderator 9 สิงหาคม 2555 7:11
-
10 กันยายน 2555 9:19I had faced the same problem and the above solution worked for me :)
Prapthi