Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2004, 05:56 AM
Registered User
 
Join Date: Aug 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default creating folder: System.UnauthorizedAccessExceptio

Hi,
any help would be appreciated: I am new to vb.net and security issues.

I need to dynamically create folders through asp.net on the server from which the asp.net pages are being provided.

I have tried the fololowing:

strServerDocumentStoragePath = "\\tta_devtest\IntranetDocument\"

Dim di As System.IO.DirectoryInfo = System.IO.Directory.CreateDirectory("strServerDocu mentStoragePath" & strNewFolderName)

error I get:
System.UnauthorizedAccessException: Access to the path "__" is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path) at System.IO.Directory.CreateDirectory(String path) at Intranet.Team_AddFolder1.CreateNewFolder(String strPath, String strNewFolderName) in \\Tta_devtest\C\Inetpub\wwwroot\Team_AddFolder.asp x.vb:line 141



A
 
Old August 26th, 2004, 06:14 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Give write permission for ASP_NET user account.It will work fine.

 
Old August 27th, 2004, 03:35 AM
Registered User
 
Join Date: Aug 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks ...problem solved...
I had a really embarrasing mistake.
Akthar

A
 
Old August 27th, 2004, 07:58 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

That is fine.
Mistakes are human nature.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Create folder in file system to place output into Coby Access VBA 3 June 26th, 2007 10:39 AM
error creating new folder in asp kingbee Classic ASP Basics 2 March 10th, 2006 05:09 AM
Creating Folder On Server Prabhakar_dt Classic ASP Basics 1 December 29th, 2004 05:07 AM
creating a bb system djfranknitti PHP How-To 1 October 26th, 2004 11:27 AM
Need help in creating folder tree velmj XSLT 1 November 19th, 2003 06:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.