Error 800a0046 Fso
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 About vbs permission denied 800a0046 Us Learn more about Stack Overflow the company Business Learn more about hiring microsoft vbscript runtime error 800a0046 permission denied windows 7 developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
Microsoft Vbscript Runtime Error '800a0046' Permission Denied 'createobject'
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 IIS7 Permission Denied - ASP
Vbscript Permission Denied 800a0046 Solution
File Write up vote 6 down vote favorite 3 Unfortunately I don't have a whole lot of information on this. I have a customer who has moved their site from an ancient system to IIS7 on Windows 2008 Server. Info about the error is below: Error: E:\wwwroot\sp\xxx\online_data.xls Microsoft VBScript runtime error '800a0046' Permission denied /xxx/oat/exceldata.asp, line 52 Code: 49 response.write(server.mappath("online_data.xls")) 50 51 set fso = createobject("scripting.filesystemobject") microsoft vbscript runtime error '800a0046' permission denied createtextfile 52 Set act = fso.CreateTextFile(server.mappath("online_data.xls"), true) The only suggestion so far is to: grant the application pool (DefaultAppPool / Classic AppPool)’s impersonated identity read and write permission to the physical folder which the asp page reside Will look at this when I get access, but other suggestions would be appreciated. iis-7 asp-classic share|improve this question edited Dec 22 '10 at 2:18 John Saunders 138k20175321 asked Dec 22 '10 at 2:15 Rine 31112 1 I think that suggestion will work, another option is checking if the default app pool is running as Network Service and giving Network Service access to write to that folder –kd7 Dec 22 '10 at 2:19 Thanks for the replies guys. Still no action on site, but will follow up when I return. –CMH Jan 6 '11 at 23:00 add a comment| 5 Answers 5 active oldest votes up vote 12 down vote The provided answer is correct, but I needed a little more detail on how to accomplish it. To make it really easy, follow the steps below. I was setting up an asp page counter on a sandbox system in our intranet. Open Computer Management. Drill dow
Permission Denied Code 800A0046 is a straightforward error to solve. The secret is to read the Windows Script Error message carefully, then check the access control list to see who has permission to use the page, or use the device. Introduction to Error
Vbscript Permission Denied Createobject
Code 800A0046 Example 1: Script to map a printer Example 2: Error 800A0046 When You 800a0046 permission_denied 80 Install Visual Studio Permissions Analyzer Free Tool ‡ Introduction to Error 800A0046 Code 800A0046is runtime error that is more likely to occur with microsoft vbscript runtime error '800a0046' permission denied iis7 an .ASP file than a .VBS. You could be trying to connect to SQL, IIS or Exchange. However, my example of is taken from printer permission problem sent in by Keith S. The Symptoms You Get With Error http://stackoverflow.com/questions/4505634/iis7-permission-denied-asp-file-write 800A0046 When you get a pop-up message box. Put on your detective hat, and pay close attention to the line number. Error 800A0046 is a runtime error, so the problem is likely to outside your script, there could be something the matter with permissions on an application server. The Cause of Error 800A0046 In the example above, Line 6: is the source of the error. Char 1: is not always very useful as the error could be anywhere http://www.computerperformance.co.uk/Logon/code/code_800A0046.htm on the line, and WSH still blames char 1. The cause of error 800A0046 is likely to be read-only permissions on some aspect of your server. The Source: tells us that this is a runtime error, therefore the syntax is probably o.k. The Solution If its Exchange, then check the MailRoot and Pickup folder permissions. If its IIS check the permissions to run scripts. If its SQL check the execute permissions on the services. The solution in the printer problem below would be to change the share permissions on the HP6L printer share. Example 1: Script to map a printer In this example, the user does not have permission to install the HP6L printer.Tell the truth, an example script is not that useful with Error 800A0046 as you cannot see the permissions! ' VBScript to create a local printer mapped to a network server ' Guy Thomas February 2010. Option Explicit Dim netPrinter Set netPrinter = CreateObject("WScript.Network") netPrinter.AddWindowsPrinterConnection "\\ServerPrn\HP6L" Guy Recommends: Permissions Analyzer - Free Active Directory Tool I like the Permissions Monitor because it enables me to see quickly WHO has permissions to do WHAT. When you launch this tool it analyzes a users effective NTFS permissions for a specific file or folder, takes into account network share access, then displays the results in a nifty desktop dashboard! Think of all the frustration that this free utility saves when you a
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Windows Scripting VBS: fso.deleteFolder error 800a0046 - permission denied Want to Advertise Here? Solved Windows Scripting VBS: fso.deleteFolder error 800a0046 - permission denied Posted on 2003-03-21 Visual Basic Classic 1 Verified Solution 15 Comments 3,321 Views Last Modified: 2010-05-18 I have written a very simple script that looks for a certain folder name on our server, verifies it is the target and then deletes it. It all works fine except for the actual delete statement. The script is: ' This script runs through every directory below the path specified as Root and deletes all folders with the path ..\AppData\Internet\History. ' It should be scheduled to run once a week on a Connect 2.4 server to keep the internet temporary files under control. ' Written by Jamie Kirkpatrick - Network Administrator, ex7103 'Set the initial variables dim rootPath, fso, ws, logFile, 'Insert the root path here - this should be the Users folder on the server. rootPath = "D:\Users" 'Create the FileSystem Object Set fso = CreateObject("Scripting.FileSystemObject") 'Create a Shell object for user interaction set ws = WScript.CreateObject("WScript.Shell") call initiateLog 'Begin stepping through the tree stepThroughTree ( rootPath ) call cleanUp sub cleanUp logFile.writeLine ("Cleanup finished at : " & now ()) logFile.close set fso = nothing set ws = nothing end sub Function stepThroughTree ( folder ) Dim folderList, item, folderObj, deleteTarget Set folderObj = fso.GetFolder( folder ) Set folderList = folderObj.SubFolders For Each item In folderList If isTarget (item) Then 'Delete the folder logFile.write ("Deleting the folder: " & item.ParentFolder.Path & "...") deleteTarget = item.ParentFolder.path fso.deleteFolder ( deleteTarget, true ) 'Log the deletion logFile.writeLine ("OK") Else stepThroughTree ( item ) End If Next End Function ' Function to check that the folder is a \AppData\Internet\History Function isTarget ( item ) if ((item.name = "History") and (item.ParentFolder.Name = "Internet") and (item.ParentFolder.ParentFolder.Name = "AppData")) then isTarget = True end if E