SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am creating a event reciver for the list, for that i need to get some data from XML file. currently i have placed the xml file in my local system. Actually where do i need to add the xml file. Is that Mapped folder?. I have tried to add file to the mapped folder but its not loading in my event reciver.

share|improve this question
up vote 2 down vote accepted

You can add this file to the mapping folder Layouts for example, even add this file to embeded resources of receiver's assembly, if you don't need to share this xml with other modules. When you will add file to the mapping folder Layout, to get it, use path a kind of http://hostname/_layouts/your_file_name.xml this path will be accessible on any web, becouse SharePoint maps this folder to each of them, for example http://hostname/subweb/_layouts/your_file_name.xml

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.