I have custom redirection implemented in a module. Do I have to modify each config for all sites or is there a more general approach?Also, I have files in App_Data for this module, which would cause replication.
Thank you
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.
Try this: (I am assuming you know. how to create a dll project, registering an Assembly in GAC, and modify the machine.config)
put your redirection-code in seperate dll project.
Register the assembly in the GAC.
Reference that assembly in all the projects/ applications where you need.
Open the machine.config and put the configs in machine.config in httpmodule section.just like you did in web.config.
Now it applies on all the applications(dotnet) where you would need.