HttpHandler loading Web.UI.Page classes without .aspx files

Our work product is a bit unique in regard to how our pages are coded. Due to the high amount of inheritance in our pages we implemented all the pages in class files which inherit Web.UI.Page and just had .aspx page stubs which pointed the code behind to this class. This worked well until we hit the annoying issue of having to synchronize the aspx files between resources, and making sure they pointed to the right level down the inheritance chain. A messy solution was presented which was hard to maintain, so I did a bit of research and by using a HttpHandler I found we could solve our problem by keeping all pages inside the dll itself.

I have included the code for the concept below and a small sample of how its used.

Continue reading HttpHandler loading Web.UI.Page classes without .aspx files

HTTP Headers in Asp.net to alter the transfer of files

I was tinkering around with sending files across a web site at work and found this article by particularly useful.

http://blog.tylerholmes.com/2008/05/http-headers-content-type-and-content.html

It covers the setting of the Mime Type, changing the file name that comes across and forcing it to appear as a pop up.

Continue reading HTTP Headers in Asp.net to alter the transfer of files

TFS 2008 SP1 Upgrade Part 2 – Error TF30059: Fatal error while initializing web service from server

The night after my first failed upgrade I kicked off another attempt.
This time I was to install Service Pack 1 for Visual Studio 2008 before installing the service pack for Team Foundation Server. A few problems I came across:

Continue reading TFS 2008 SP1 Upgrade Part 2 – Error TF30059: Fatal error while initializing web service from server

TFS 2008 SP1 Upgrade – The server returned content type , which is not supported

It’s 1AM, you’ve just completed a TFS 2008 upgrade to SP 1 and for a test you just performed a ‘Get Latest’ on a project tree.

Error!

‘The server returned content type , which is not supported’

Well, that doesn’t sound good. Skim reading TFSInstall-SP1-RTM-v080908.chm shows nothing about this. Just before pressing the panic button you do one last thing. Google it.

Thankfully I came across a post to a problem which is both similar and different on the MSDN Fourms.

Continue reading TFS 2008 SP1 Upgrade – The server returned content type , which is not supported