TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abhimanyu K Vatsa
NA
40.4k
21.4m
Dynamic Creation of Directory in IIS is not working
Apr 28 2011 5:50 AM
I'm developing a simple ASP.NET Website on desktop, the code for creating directory given below works perfect. But when I place the same site under IIS prompt the error.
My Create Directory Code:-
Directory.CreateDirectory(root + "\\users\\2011\\" + username);
[Here String
root
= Server.MapPath("~"); and String username=txtUsername.text]
My Error Msg when site under IIS:-
Access to the path 'C:\inetpub\wwwroot\Website1\users\2011\sillyme' is denied.
Note, in above line 'sillyme' is new directory name.
Maybe this is an issue for some permission to create dynamic directory inside IIS because when I place my site outside IIS or say on desktop works fine.
How to fix or say grant permission to create the dynamic folder under IIS?
Reply
Answers (
2
)
Referencing public properties and controls in a mastr pages from conrent pages
exporting gridview to pdf and not exporting the text box values which is inside the grid view?