Does any one know the best way to deploy a resource file to the App_GlobalResource folder of the web application when a feature is activated?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So, as a final followup to this question here is what we finally did to completely automate this process.
We did, as was suggested, use the ApplicationResourceFile element in the manifest file.
This did in fact put the files into the ‘resources’ folder. So, we simply accessed the resources from there in code like so:
We run this code in the constructor and add the entries from the resource file into a local dictionary. You must use RunWithElevatedPrivileges because the new ‘resources’ folder that is created is only accessable by the AppPool account.