ProfK
ProfK

Reputation: 51063

Detecting Changes in an ASP.NET Web Site

The ASP.NET framework does a very good job of detecting when a file has changed and recompiling that file etc. I would like to be able to hook into that update process. Is this at all possible?

I might want to do this as part of an initiative to try and version web sites developed as Web Site projects, versus Web Applications, where the version is easily found in statically deployed assemblies. If I my be misdirecting my energies as there are already better way if versioning web sites, I'd still appreciate some pointers.

Upvotes: 1

Views: 183

Answers (5)

Nathan Nguyễn
Nathan Nguyễn

Reputation: 727

You can use ASP.NET SignalR to do it, It's real-time web for .NET

Upvotes: 1

kemiller2002
kemiller2002

Reputation: 115488

This might put you on the right path (might -- I haven't tried this).

http://www.codersource.net/csharp_iis_metabase.html (dead link)

Upvotes: 0

Greg B
Greg B

Reputation: 14888

Have you tried Web Deployment projects?

Scott Gu has a blog post.

Upvotes: 1

Andrew Hare
Andrew Hare

Reputation: 351506

I don't know if you can hook into that logic at all - perhaps you could add your code to Application_OnStart as this method will fire when ASP.NET recycles the AppPool and restarts the website.

Upvotes: 1

Jovan
Jovan

Reputation: 91

Have you tried developing a separate module for ASP.NET that keeps track of last change?

Upvotes: 0

Related Questions