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.

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted

You can add this file to the maping folder Layouts for example, even add this file to embeded resources of reciever'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 accesible on any web, becouse SharePoint maps this folder to each of them, for example http://hostname/subweb/_layouts/your_file_name.xml

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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