windows 7 home premimum x64

access denied for saving files to app_data folder and any other folder in the projects root directory.

Code below is what im using to save and getting...

 doc.Save(Server.MapPath("~/App_Data/Logs"))

I get a couple access to path denied msgboxes.

Set a few permissions and no go.

Recommended Answers

All 2 Replies

For which user you provided permisions ?

Provide permisions for following user :

IIS_IUSRS & EVERYONE

Modify
Read & Execute
List Folder Contents
Read
Write

commented: looked like i forgot the file name +1

Looks like i found the answer chibi face here
Dim xmlName as String = TextBox1.Text

doc.Save(Server.MapPath("~/App_Data/Logs/ + xmlName + ".xml""))
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.