Microsoft Vbscript Runtime Error 800a0046 Createtextfile
Contents |
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 microsoft vbscript runtime error '800a0046' permission denied About Us Learn more about Stack Overflow the company Business Learn more
Microsoft Vbscript Runtime Error 800a0046 Permission Denied Windows 7
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss microsoft vbscript runtime error '800a0046' permission denied 'createobject' Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Microsoft VBScript runtime
Vbscript Permission Denied 800a0046 Solution
error '800a0046' Permission denied up vote 4 down vote favorite 3 I get the following error: Microsoft VBScript runtime error '800a0046' Permission denied When running a classic asp application. The error is here: (in the CreateTextFile line) Dim myFSO set myFSO = Server.CreateObject("Scripting.FileSystemObject") myFSO.CreateTextFile(fName) I know I can get around this problem by giving "Full control" to the "Everyone" user. This is a publicly accessible microsoft vbscript runtime error '800a0046' permission denied iis7 folder on our server, so I worry that this is a security risk? I would prefer to be able to give full permission to someone like "IIS_IUSRS", but this doesn't work. It's as if it's a different user being used for this. Is this a security risk? Anyone know what I should be doing? iis asp-classic file-permissions share|improve this question edited Oct 16 '12 at 8:28 Shadow Wizard 49.2k1385130 asked Oct 15 '12 at 9:44 iKode 2,36893259 4 Which version of IIS are you running this application and which O/S? (e.g. IIS7 on Windows Server 2003). You can set read/write permissions for IUSR_
360 games PC games
800a0046 Permission_denied 80
Windows games Windows phone games Entertainment All Entertainment
800a0046 Permission Denied Vbscript Runtime Error Windows 7
Movies & TV Music Business & Education Business Students & educators fso.createtextfile permission denied Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet http://stackoverflow.com/questions/12893030/microsoft-vbscript-runtime-error-800a0046-permission-denied Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All https://support.microsoft.com/en-us/kb/963211 Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS 5 & IIS 6 Classic ASP CreateTextFile cause https://forums.iis.net/t/1157655.aspx?CreateTextFile+cause+Microsoft+VBScript+runtime+0x800A0046+ Microsoft VBScript runtime (0x800A0046) CreateTextFile cause Microsoft VBScript runtime (0x800A0046) [Answered]RSS 4 replies Last post May 15, 2009 11:35 AM by mbw4359 ‹ Previous Thread|Next Thread › Print Share Twitter Facebook http://www.tek-tips.com/viewthread.cfm?qid=530288 Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply mbw4359 4 Posts CreateTextFile cause Microsoft VBScript runtime (0x800A0046) May 14, 2009 11:16 AM|mbw4359|LINK Hi, As my subject says permission denied line 6 of my little asp script (see below) causes Microsoft VBScript runtime (0x800A0046). I changed the directory permission to IUSR_thenameofmymachine under the security tab to read write but I get the same thing. The IIS I'm testing on is 5.1 running on Win XP SP2. thanks for you help in advance. Michael Error Type: Microsoft VBScript runtime (0x800A0046) Permission denied vbscript runtime error /tst-asp/logip.asp, line 6 <% dim fs,wfile VisitorsIP=Request.ServerVariables ("REMOTE_ADDR") Set fs = CreateObject("Scripting.FileSystemObject") Set wfile = fs.CreateTextFile("mylog.txt",false) wfile = fs.OpenTextFile("mylog.txt", 8,false,0) wfile.WriteLine (VisitorsIP) wfile.close Set wfile=nothing Set fs=nothing response.write("IP registered") %> Reply tomkmvp 9756 Posts MVPModerator Re: CreateTextFile cause Microsoft VBScript runtime (0x800A0046) May 14, 2009 11:24 AM|tomkmvp|LINK Start here: http://www.aspfaq.com/search.asp?q=800A0046&x=7&y=9 Tom Kaminski (former IIS MVP 2002-2010) http://mvp.support.microsoft.com/ Reply mbw4359 4 Posts Re: CreateTextFile cause Microsoft VBScript runtime (0x800A0046) May 14, 2009 01:54 PM|mbw4359|LINK Tom, Per this code I'm assuming that the file is going to the same place where the script is. Is that a good assumption? Is there a way that I could programmaticlly make sure that its going there? I'm pretty new to asp but I would know how to do this in C or C++. Michael Reply tomkmvp 9756 Posts MVPModerator Re: CreateTextFile cause Microsoft VBScript runtime (0x800A0046) May 14, 2009 03:07 PM|tomkmvp|LINK I'm not sure. To be safe, and this is what I do, use the fully qualified file path for the file. Tom Kaminski (former IIS MVP 2002-2010) http://mvp.support.microsoft.com/ Reply mbw4359 4 Posts Re:
FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To This Forum! Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. VBScript Forum at Tek-Tips HomeForumsProgrammersLanguagesVBScript Forum fso.CreateTextFile error 800a0046 thread329-530288 Forum Search FAQs Links MVPs fso.CreateTextFile error 800a0046 fso.CreateTextFile error 800a0046 bjzielinski (IS/IT--Management) (OP) 21 Apr 03 10:25 I know this is a file permission problem, but I cannot see the file permissions myself.I only have FrontPage access to the remote host.I can have the administrator look at it, but I'd like to tell him exactly what to do.Basically I have a script that creates a temp file for vcard downloading.When I run the script, I get Microsoft VBScript runtime error '800a0046' Permission denied /vcard.asp, line 44 vcard.asp contents:42: whichFN=server.mappath("/vcards/test.vcf")43: Set fstemp = server.CreateObject("Scripting.FileSystemObject")44: Set filetemp = fstemp.CreateTextFile(whichFN, true)The file does exist (same error even if it doesn't).Is it possible for me to see the file permissions, and if not, what does the IUSR permission need?Thanks. Bill Zielinskibzielinski@co.midland.mi.usCounty of Midland, Michigan RE: fso.CreateTextFile error 800a0046 dilettante (MIS) 21 Apr 03 18:38 Start the Windows 2000 Help from the Start Menu.Select the Index tab in the navigation pane at the left.For "keyword to find" enter:file permissionsSelect the subtopic:associated special permissions (list)This should take you to a nice table showing the file permissions and what each gets you.My guess is your IUSR... user only needs read and write permissions. Red Flag This Post Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting th