file io - Permission denied on creating a folder under wwwroot/vhosts/sitename/test using VBScript -


I am trying to create my ASP page to create a folder on a directory path I am getting an error:

Microsoft VBSScript Runtime Error '800 A 90046'

Denied with Permission

I know something about it IIS 7 IUSR Permission for folder.

The code is below.

  & lt;% @ LANGUAGE = "VBSCRIPT" codepages = "1252"%> & Lt; Html & gt; & Lt; Body & gt; & Lt;% dim strUserName foldername = "myfolder" dim fObject, f set fObject = Server.CreateObject ("Scripting.FileSystem Object") response. Type (set server.mappath ("\") and "\ test \" and folder name) set f = fObject.CreateFolder (server.mappath ("\") and "\ letters \" and folder name) F = nothing set fObject = None response.write ("The folder was created successfully  & gt;%)% & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

It was confirmed, I had to add the IUSR user and the IIS_IUSRS group (IIS 7 Only) as my security settings to promote my virtual directory folder which is for sub folders.

If specific sub folders require additional permissions, add additional permissions by right-clicking on the folder name, and select Properties. Click the Security tab on the Properties window and click the Edit button. Select user or group to add additional permissions


Comments