Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 26th, 2004, 05:56 AM
Registered User
 
Join Date: Aug 2004
Location: london, , United Kingdom.
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
Reply With Quote
  #2 (permalink)  
Old August 26th, 2004, 06:14 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
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.

Reply With Quote
  #3 (permalink)  
Old August 27th, 2004, 03:35 AM
Registered User
 
Join Date: Aug 2004
Location: london, , United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

A
Reply With Quote
  #4 (permalink)  
Old August 27th, 2004, 07:58 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.