Placing global.asax file using WSP package

Hi All,

Is there anyway we can replace the global.asax file of a site in the farm?

Thanks in Advance,

Rajeshkumar Govindaraj.

 

May 27th, 2010 12:41pm

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

  • Marked as answer by Chengyi Wu Friday, June 04, 2010 7:49 AM
Free Windows Admin Tool Kit Click here and download it now
June 1st, 2010 3:57am

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?

July 27th, 2015 12:15pm

Hi All,

Is there anyway we can replace the global.asax file of a site in the farm?

Thanks in Advance,

Rajeshkumar Govindaraj.

 


Free Windows Admin Tool Kit Click here and download it now
August 6th, 2015 7:52pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics