Hi All,
Is there anyway we can replace the global.asax file of a site in the farm?
Thanks in Advance,
Rajeshkumar Govindaraj.
Technology Tips and News
Hi All,
Is there anyway we can replace the global.asax file of a site in the farm?
Thanks in Advance,
Rajeshkumar Govindaraj.
Hi, Rajeshkumar Govindaraj
After some research, I’m afraid there is no best practice or good public samples for involving global.asax in a WSP solution.
So as a walkaround, would you please consider the following:
Declaring the global.asax file as ElementFile in ElementManifests in a feature, this would help to copy it to the root directory of site.
Then using code in feature event to replace the original global.asax.(using File.CopyTo under System.IO).
See the solution mentioned in this article:
http://blogs.devhorizon.com/reza/?p=523
Hope this can help.
Best Regards,
Aaron
Hi,
I faced with the same need (modification of global.asax from feature). But when I tried to look at the link http://blogs.devhorizon.com/reza/?p=523 , it came out not to contain any information regarding the global.asax writing. Could you please point me at the correct link?
Hi All,
Is there anyway we can replace the global.asax file of a site in the farm?
Thanks in Advance,
Rajeshkumar Govindaraj.