Jan 9: Thou shalt not tag
Darn... Today I got tagged. By no other than Guido, my dear colleague. I didn't know what tagging is all about, but Guido explains it quite well in his article.
Appearently it's a new digital kind of chain-letter, and I profoundly dislike chain letters... So sorry guys, I'm not going to bother others with this 'tagging' thing. I will however put five topics in this entry that I would normally not post in this blog:
Appearently it's a new digital kind of chain-letter, and I profoundly dislike chain letters... So sorry guys, I'm not going to bother others with this 'tagging' thing. I will however put five topics in this entry that I would normally not post in this blog:
- Spare time wil grow scarce this year, as I'm getting married on the first of May. If you can read Dutch, please see Twan en Marieke.
-
In July 2005 I heard the most aweful words uttered ever: "You're mom has malicious cancer".
She is a very strong woman and she will not easily give up. She will fight this cancer till the very last.
Hopefully she'll be around to witness our wedding...
Luckily good things happen as well: on October 10th 2006 my sister (Trix) gave birth to a son, Tygo.
My first cousin, and many more to come? I have to say it's very nice to hold such an adorable fellow like Tygo in your arms.
I'm always on somekind of diet. Which means none of them really work for me...
When my contract at a client of ours finished, my coworkers there deemed it suitable to, let's say, stimulate me. Thanks go out to Anton, Jos, Guido and many others for handing me a great book by the editor-in-Chief of Men's Health, David Zinczenko: The Abs Diet.
Actually there is only one computer game I like (very, very much). Just wish I had more time to play it. I signed up with a cool, no strings attached, guild: the Munchkins of the Apocalypse.
Dec 14: Multiple websites in IIS on WinXP Pro
Something a lot of developers crave for, is to be able to run multiple websites in IIS on a WinXP Pro machine. I always thought this to be impossible... But there is (sort of) a solution. You can achieve to have multiple websites on WinXP Pro, with one drawback: only one website can run at a time. How?
Open a command window and type:
C:\Inetpub\AdminScripts> adsutil.vbs create_vserv W3SVC/2
C:\Inetpub\AdminScripts> adsutil.vbs copy W3SVC/1 W3SVC/2
The first command creates a new virtual server in the IIS metabase. The second command copies all the necessary meta data from your default Web site to the new Web site to make it work properly.
Thanks to Steven M. Cohn.
Open a command window and type:
C:\Inetpub\AdminScripts> adsutil.vbs create_vserv W3SVC/2
C:\Inetpub\AdminScripts> adsutil.vbs copy W3SVC/1 W3SVC/2
The first command creates a new virtual server in the IIS metabase. The second command copies all the necessary meta data from your default Web site to the new Web site to make it work properly.
Thanks to Steven M. Cohn.
Dec 13: Accessing ASP3.0 Session Object from .NET component
New project, new challenge... How true. A coworker came to me with the following issue:
In an ASP3.0 web application we call a .NET component and we want to access the intrinsic ASP objects (for instance the Session object) from there. Now in a legacy VB COM component you would just reference mtsax.dll, declare a variable as ObjectContext and call GetObjectContext.
Private ObjectContext As MTxAS.ObjectContext
Private Session As ASPTypeLibrary.Session
Set ObjectContext = GetObjectContext()
Set Session = ObjectContext("Session")
After reading a lot about session integration between ASP.NET and ASP3.0 (which I was not looking for), the answer turned out to be extremely simple. Sometimes it is just a matter of looking at the right place. To quote Ohad Israeli, who pointed me in the right direction:
Dim objAppServer As COMSVCSLib.AppServer
Dim objContext As COMSVCSLib.ObjectContext
Dim objSession As ASPTypeLibrary.Session
objAppServer = New COMSVCSLib.AppServer
objContext = objAppServer.GetObjectContext()
objSession = objContext("Session") 'Obtain ASP Session object.
In an ASP3.0 web application we call a .NET component and we want to access the intrinsic ASP objects (for instance the Session object) from there. Now in a legacy VB COM component you would just reference mtsax.dll, declare a variable as ObjectContext and call GetObjectContext.
Private ObjectContext As MTxAS.ObjectContext
Private Session As ASPTypeLibrary.Session
Set ObjectContext = GetObjectContext()
Set Session = ObjectContext("Session")
After reading a lot about session integration between ASP.NET and ASP3.0 (which I was not looking for), the answer turned out to be extremely simple. Sometimes it is just a matter of looking at the right place. To quote Ohad Israeli, who pointed me in the right direction:
The answer is always there…
the problem is that you just don’t look at the right place
Dim objAppServer As COMSVCSLib.AppServer
Dim objContext As COMSVCSLib.ObjectContext
Dim objSession As ASPTypeLibrary.Session
objAppServer = New COMSVCSLib.AppServer
objContext = objAppServer.GetObjectContext()
objSession = objContext("Session") 'Obtain ASP Session object.
« previous page
(Page 4 of 5, totaling 14 entries)
next page »
