Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
part of my webService:
XDocument xml1 = new XDocument(
                         new XElement("mySongs",
                            new XElement("song",
                                new XElement("Location", location),
                                new XElement("Date", date),
                                new XElement("Name",name),
                                new XElement("picUrl", picUrl),
                                new XElement("SongUrl", songUrl)
                                        )
                                    )
                                   );
                xml1.Save("songs.xml");


i get access exsption :
Access to the path 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\songs.xml' is denied.
I do not know where he keeps my xml

i cant open or save xml
Posted
Comments
Kornfeld Eliyahu Peter 20-Jul-14 9:23am    
The file is there. Access denied mean that you can not read/write the file. Check the user of the IIS process running the web service...
Member 10631195 20-Jul-14 9:25am    
how to check the IIS process i'am new ?
Kornfeld Eliyahu Peter 20-Jul-14 9:35am    
This may help you identify the user running the site: http://www.iis.net/learn/manage/configuring-security/application-pool-identities...
After that you may check the user rights and fix whatever you need to fix...
Member 10631195 20-Jul-14 9:27am    
Please if you have any article or page I was looking it
Member 10631195 20-Jul-14 9:37am    
Thank you, I will teach it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900