Updated: 2/2/2003; 9:06:46 PM.
Jesse Ezell's Radio Weblog
.NET and Other Interesting Stuff
        

Wednesday, January 08, 2003

Exchange 2003 Beta

Exchange 2003, formerly known by the code name "Titanium," is the next version in the Exchange messaging and collaboration server line of products. Scheduled to be released in mid-2003, Exchange 2003 will provide many new features and enhancements to improve reliability, manageability, and security. Exchange 2003 will help increase information worker productivity while helping organizations reduce their total cost of ownership (TCO) in areas such as server and site consolidation. In addition, Exchange 2003 is the first version of Exchange designed to run on Windows .NET Server 2003.

[Get Your Beta Today]

It's coming...


5:37:53 PM    comment []

.NET Page Parsing

The last couple days have led me on an interesting adventure: trying to get the .NET framework to load and parse ASPX pages dynamically. For ASCX controls, this is a simple process, as you just make a simple call...for pages, it is another story all together. As it turns out, there is a method called GetCompiledPageInstance, which will return an instance of the class for a given ASPX page. At first glance, this looked like the solution to my problems, but, alas, it does not actually do anything but create an uninitialized instance. The child controls are not there.

So, I did a little digging and found out that to initialize the control, you must process the request (of course, this is only because the methods I need to use are marked internal by the Microsofties). This is a little inefficient, but if it is the only way to do it, I can live with it. To process the request, you need a valid HttpContext and either an HttpRequest and an HttpResponse or an HttpWorkerRequest. Again, it turns out that you can't use the HttpRequest to do this, because it will always end up with an exception (in a property that gets called by the framework, an httpworkerrequest is not checked to see if it is null if you use the non-httpworkerrequest constructor, so an exception pops up...someone didn't read McConnell's book).

So, I dig some more. You can't directly instantiate HttpWorkerRequest, you need to create a SimpleWorkerRequest, so that seems easy enough. After finally getting the simple worker request to initialize properly, it turns out that you can't pass it in either, because SimpleWorkerRequest is apparently designed for creating your own mini-webservers, not loading ASPX files from ASPX files, and you end up with conflicts with the virtual directories somewhere inside the framework, and get presented with nice exception pages.

So, about a week or so after not receiving any useful feedback in the newsgroups (funny, I though MSDN subscribers were gaurenteed responses...), I continue my trek and decide to implement my own HttpWorkerRequest class. A pretty simple process, though painful for such a seemingly easy task. So, I pass this HttpWorkerRequest class into the HttpContext, and hold my fingers... After weeding out a few exceptions, everything is working. However, I need to abort the processing of the request around the Init event, because all I want is for the control to load the data from the ASPX file, not go through a whole request that isn't valid (because the only reason the request is being made is because MS decided I had to make one). Attempt #1 is to call Response.End...but this does nothing (still no idea why). No problem, I think to myself, I'll throw an exception and catch it on the outside...nope. You can't throw an exception inside the ProcessRequest method, without terminating your request with an exception page (regardless of whether you are catching it on the outside of the call).

So...we'll see how this turns out. Maybe the end near...


4:57:58 PM    comment []

Blogging Tools

"A Dublin-based start-up is to offer software to mobile operators that will enable mobile phone users to create and maintain Weblogs or "blogs" using only their phones.

NewBay Software, a privately funded company headed by former Baltimore Technologies executive Paddy Holahan, is aiming to capitalise on the explosive growth in weblogs over the past year. It is estimated that over 500,000 have been created over the past 18 months and are now starting up at the rate of about 5,000 daily."

[Full Story from the Register]

And you thought Radio was cool...


11:03:08 AM    comment []

© Copyright 2003 Jesse Ezell.
 
January 2003
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Dec   Feb


Click here to visit the Radio UserLand website.

Subscribe to "Jesse Ezell's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.