Automation Error Scripting.filesystemobject
can't create object. Archived Forums I-L > JScript for the .NET Framework Question 0 Sign in to vote 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 Thursday, July 26, 2012 6:16 PM Answers 0 Sign in to vote 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 LevelUnder the ActiveX controls and plug-ins, select Enable for Initializing and Script ActiveX controls not marked as safe Mike Marked as answer by Jason Dot WangMicrosoft contingent staff, Moderator Thursday, August 09, 2012 7:11 AM Sunday, July 29, 2012 11:14 PM All replies 0 Sign in to vote 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 LevelUnder the ActiveX controls and plug-ins, select Enable for Initializing and Script ActiveX controls not marked as safe Mike Marked as answer by Jason Dot WangMicrosoft contingent staff, Moderator Thursday, August 09, 2012 7:11 AM Sunday, July 29, 2012 11:14 PM 0 Sign in to vote Ihad faced the same problem and the above solution worked for me :)Prapthi Monday, September 10, 2012 9:19 AM 0 Sign in to vote I had the same problem but it worked after changing IE settings on my machine.But it is not working on other machines.What's going wrong? Friday, November 21, 2014 6:55 AM Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.Would you like to participate? Privacy statement Dev Centers Windows Office More... Related Sites Visual Studio Visual Studio Integrate VSIP Program Microsoft .NET Microsoft Azure Connect Forums Blog Facebook LinkedIn Stack Overflow Twitter Visual Studio Events YouTube Developer Resources Code samples Documentation Downloads Products & extensions for Visual Studio REST APIs Testing tools for web developers Videos and tutorials Virtual Labs United States (Englis
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error on vb6 “Run-Time Error -2147319779 Automation error Object library not Registered” up vote 1 down vote favorite Hi guys i am having trouble using the FileSystemObject in Windows7 https://social.msdn.microsoft.com/Forums/vstudio/en-US/41b3a68b-dd16-48a8-b86c-02a1e543081c/activexobjectscriptingfilesystemobject-automation-server-cant-create-object?forum=netfxjscript Home Premium'm getting an error message "Run-Time Error -2147319779 Automation error Object library not Registered" I used this code on windows xp sp3 and it worked good, I tried Registrer dll "c: \ windows \ system32 \ scrrun.dll" but is still showing the error, Thank you all! Set Diretorio = FSO.GetFolder(DiretorioDinamico)'The error occurs here! vb6 share|improve this question edited Nov 10 '12 at 21:24 asked Nov 10 '12 at 21:18 Venâncio Guedes - VGsoft 38128 http://stackoverflow.com/questions/13326177/error-on-vb6-run-time-error-2147319779-automation-error-object-library-not-reg The error occurs there? What's the code before that? Are you creating FSO "the usual way", or what is FSO? Could you show us how and where you define/initialize FSO? Also, what is DirectorioDinamico? Is it a string? What did you dim Directorio as an object, a Folder? –Daniel Nov 10 '12 at 22:44 The diretoriodinamico is a string, this function returns a folder object for the diretorio only not working in Windows7 home premium, tested on Windows XP and Windows7 starter there are no errors, but when I was testing on Windows home premium showed this error, thanks –Venâncio Guedes - VGsoft Nov 10 '12 at 23:14 Is the workstation your are getting the error on running a 64-bit version of Win 7 Home Premium? –jakdep Nov 11 '12 at 2:28 my version is of 32 bits –Venâncio Guedes - VGsoft Nov 11 '12 at 9:42 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote I've got the same issue with bad registration of some common components installed on syswow64, among them the mscomctl.ocx. After searching for and not found a solution, I derived one that solved the problem. So, the only way to solve was: Unregister the mscomctl.ocx (with elevated privilegies) Disabled the Internet Explorer (version 10 in my case) Reboot the system Register the mscomctl.ocx (Always el
Question Need help? Post your question and get tips & solutions from a community of 418,436 IT Pros & Developers. It's https://bytes.com/topic/visual-basic/answers/685511-run-time-automation-error-library-not-registred quick & easy. run-time automation error library not registred P: 8 deco http://www.vbforums.com/showthread.php?376424-Automation-Error-2147024579 I try to list the contents of folder by usinng the FileSystemObject Library the run-time error '-2147319779(8002801d)'; automation error library not registred is appears but i use the same application in another computer and its run i check the reference microsoft scripting runtime the code Expand|Select|Wrap|Line Numbers DimFSOAsNewFileSystemObject DimFileInFolderAsFiles DimFileNameAsFile automation error DimIAsInteger DimFolderInPathAsString PrivateSubCommand1_Click() SetFileInFolder=FSO.GetFolder("C:\ProgramFiles\NowSMS\SMS-IN").Files ForEachFileNameInFileInFolder List1.AddItemFileName DoEvents Next ForI=0ToList1.ListCount-1 FolderInPath=Replace(List1.List(I),"C:\ProgramFiles\NowSMS\SMS-IN\",App.Path&"\CopyOf(SMS-IN)\"&"("&I&")") FSO.CopyFileList1.List(I),FolderInPath,False NextI EndSub Jul 30 '07 #1 Post Reply Share this Question 4 Replies Expert 5K+ P: 8,435 Killer42 Perhaps the Microsoft Scripting Runtime library is not installed on the target computer? Jul 31 '07 #2 reply P: 8 deco Perhaps the Microsoft Scripting Runtime library is not installed automation error scripting.filesystemobject on the target computer? its installed in the system32 (SCRRUN.DEP and scrrun.dll) Jul 31 '07 #3 reply P: 8 deco thanks i find the problem its the library not registred and i used the (start => run) (regsvr scrrun.dll) command to register the scrrun library Deco Jul 31 '07 #4 reply Expert 5K+ P: 8,435 Killer42 thanks i find the problem its the library not registred and i used the (start => run) (regsvr scrrun.dll) command to register the scrrun library Great! Glad to hear you've got it sorted out. Jul 31 '07 #5 reply Message Cancel Changes Post your reply Join Now >> Sign in to post your reply or Sign up for a free account. Similar topics Run Application (EXE) from ASP.Net C# When do I need to run "aspnet_regiis –i"? constructing a form before calling Application.Run Application.Run Run code from IDE Thread Name Application.Run() Application.Exit and the 'Message Pump' Should an object that totally encapsulates functionality have a "Run" function? cant run asp file from subdir of Web root dir Shell: run script Browse more Visual Basic 4 / 5 / 6 Questions
this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 11 of 11 Thread: Automation Error -2147024579 Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Dec 13th, 2005,11:07 PM #1 pbuddy_8 View Profile View Forum Posts Thread Starter Addicted Member Join Date Feb 2005 Posts 168 Automation Error -2147024579 When I try to create the File system object using the statement below I get Automation error. VB Code: Set fs = CreateObject("Scripting.FileSystemObject") Error Number: -2147024579 Message: Automation error The system cannot find message text for message number 0x%1 in the message file for %2. Any clues?? Regards, Piyush Nothing is Impossible because the word impossible itself says I'mpossible Reply With Quote Dec 13th, 2005,11:24 PM #2 randem View Profile View Forum Posts Visit Homepage Banned Join Date Oct 2002 Location Maui, Hawaii Posts 11,385 Re: Automation Error -2147024579 What did you define fs as???? Reply With Quote Dec 14th, 2005,01:57 AM #3 dee-u View Profile View Forum Posts Visit Homepage Software Carpenter Join Date Feb 2005 Location Candon City, Ilocos Sur, Phils. Posts 10,924 Re: Automation Error -2147024579 When referencing it (Microsoft Scripting Runtime) do you encounter any errors also? Regards, ™ As a gesture of gratitude please consider rating helpful posts. c",) Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system Reply With Quote Dec 15th, 2005,08:31 AM #4 pbuddy_8 View Profile View Forum Posts Thread Starter Addicted Member Join Date Feb 2005 Posts 168 Re: Automation Error -2147024579 randem-- fs is an object. Is this because of older/corrupt version of Scripting Runtime. Regards, Piyush Nothing is Impossible because the word impossible itself says I'mpossible Reply With Quote Dec 15th, 2005,08:42 AM #5 Hack View Profile View Forum Po