torsten's .NET blog In the end, everything is a gag [Ch. Chaplin]
# Monday, July 25, 2005
Atom 1.0
Added today basic support for Atom 1.0 to the current CVS code base of RSS Bandit (still at 1.3.0.34). It is still draft, but testing at early stages is required... 
Technorati tags:
Monday, July 25, 2005 6:25:24 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [2]  | 
# Tuesday, July 05, 2005
Why .NET Remoting does not have a RemotingConfiguration.Reset() ?

Hopefully the .NET 2.0 bits will support a similar call to reset the remoting infrastructure the clear way without restarting the whole remoting application!

As you may have noticed: there exists a RemotingChannels.UnregisterChannel() method to use to get rid of a old used channel and switch to a new one (registering). But that is not enough to get an application seamlessly work with a new remoting service endpoint: after you really used one of you configured services, you will get an exception if you try to register the service again with a different service endpoint. This is because the RemotingConfigHandler+RemotingConfigInfo method AddWellknownEntry() calls a method named CheckForRedirectedClientType() that cause a CantUseRedirectedTypeForWellKnownService exception. So after I tried a "fix" with managing the calls to the .NET remoting classes within a new separate AppDomain (and unload that on a reset remoting request) that did not work I end up with a hack using Reflection to get around that.

Here is the used code that works for our requirements:

    /// <summary>

    /// This is cool, but it is a HACK. Please validate the code each time

    /// the .NET framework gets updated. There is a little safty included to

    /// throw a InvalidOperationException if something changed we require to get

    /// it work somehow.

    /// </summary>

    /// <exception cref="InvalidOperationException">

    /// On every failed reflection call or if we do not get any of

    /// the required FieldInfo objects</exception>

    /// <remarks>

    /// The HACK bases on the fact Remoting informations are cached

    /// in the well hidden sync. Hashtable field "_remoteTypeInfo" after they get used once.

    /// This field you can find within the (internal) class

    /// RemotingConfigHandler.RemotingConfigInfo. The static RemotingConfigHandler.Info

    /// field holds a reference to an instance if that class.

    /// To reset we simply initialize that field with a new instance of

    /// a synchronized Hashtable.

    /// Note: We do only "fix" for Singleton objects, not client activated services.

    /// So to get it "fully" work (complete state reset), you may have to hack

    /// more and other fields.

    /// </remarks>

    private static void Release_NETRemotingResources() {

      bool raiseError = true// warn if we switch to a new .NET env where the reflection is maybe not working anymore!

      try {

        //HACK: please verify it after each Service Pack or new version of .NET runtime to be used!

        Type configHandlerType = Type.GetType("System.Runtime.Remoting.RemotingConfigHandler");

        if (configHandlerType != null) {

          FieldInfo infoFI = configHandlerType.GetField("Info", BindingFlags.GetField | BindingFlags.Public | BindingFlags.Static);

          if (infoFI != null) {

            object infoFIRef = infoFI.GetValue(null);  // static, so no object instance to provide

            if (infoFIRef != null) {

              FieldInfo remoteTypeInfoFI = infoFI.FieldType.GetField("_remoteTypeInfo", BindingFlags.Instance | BindingFlags.NonPublic);

              if (remoteTypeInfoFI != null) {

                remoteTypeInfoFI.SetValue(infoFIRef, Hashtable.Synchronized(new Hashtable()));

                raiseError = false// all seems to be OK

              }

            }

          }

        }

      } catch (Exception ex) {

        throw new InvalidOperationException("Failed to reset .NET internal remoting state.", ex);

      }

 

      if (raiseError)

        throw new InvalidOperationException("Failed to reset .NET internal remoting state.");

    }

Technorati tags:  | 
Tuesday, July 05, 2005 9:21:19 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [2]  | 
# Friday, June 03, 2005
Google doodles
You ever missed one of the cool modified Google logos like me? Have a look here and just wonder about - like me :-)
Technorati tags:  | 
Friday, June 03, 2005 12:14:39 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
# Tuesday, May 31, 2005
Cool shell extension for .NET assemblies
Back from vacations today I found the article Shell Extensions for .NET Assemblies at codeproject.com: really useful tool (must have) to get our projects organized (old VB6 stuff vs. newer .NET stuff). It visually distinguish between normal windows DLL's and .NET assemblies and shows if the assembly is signed via a public key token column.
Technorati tags:  |  |  | 
Tuesday, May 31, 2005 10:20:00 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [4]  | 
# Friday, May 13, 2005
Happy Birthday, Dare Obasanjo
Dare Obasanjo, you are not as old as you feel now (remember our chat) :) compared to myself. Hopefully you will be part of the project as long as it lives.
Technorati tags:  | 
Friday, May 13, 2005 7:45:38 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [1]  | 
# Sunday, May 08, 2005
The very nice day...

is: Mother's Day:

Panorama Bodensee/Panorama Lake of Constance

The Canon PhotoStitch software isn't quite good enough (you may notice the shadow stripes where the images stitches together) but you should get the idea.

Yesterday it was raining the whole day, but we had a nice birthday party anyway - Maike is now 7 years old (young?). Unpleasant it is only that the Digital Dance Revolution did not arrive yet from the US, but the kids also had much fun without it...

Technorati tags:
Sunday, May 08, 2005 3:49:38 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [1]  | 
# Tuesday, May 03, 2005
Very useful: single sign-on simplified
Technorati tags:  |  | 
Tuesday, May 03, 2005 8:07:00 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [1]  | 
Serious issues in .NET that may affect my work

Today there was a flood of fixed isses (12) for .NET 1.1 published via the Most Recent KB for MS .NET Framework 1.1 article feed. Some that that may affect me at work are

Is there any deadline known for SP2?

Technorati tags:  |  | 
Tuesday, May 03, 2005 7:21:17 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
# Tuesday, April 26, 2005
Les Blogs

I wished I would have earlier experienced that a conference like Les Blogs takes place. So for now I only can read the short review Les Blogs: "Profi-Sex ist auch nicht besser als Amateur-Sex" [german, heise.de] or Vive le Blogs [wired news] (covered to late).

France is for now the number two in the blog world (overall count of web logs, "...half of all schoolchildren are bloggers..."): so I'm happy we are able to support also a french transation of my favorite RSS Reader:

"The French have a long tradition of speaking loudly," said Loïc Le Meur, a Frenchman and Six Apart's European vice president. "We are the people who made the French Revolution, (the national uprising of) May '68 -- and just look at all our strikes! We always want to debate. Perhaps blogs are the ultimate tool for us to express ourselves."

Technorati tags:  |  | 
Tuesday, April 26, 2005 8:37:57 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [1]  | 
# Saturday, April 23, 2005
Technorati profile
Somehow technorati requires to get a link somewhere on my blog, to claim it. So here it is: my my technorati profile.
Technorati tags:
Saturday, April 23, 2005 5:02:30 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
Alternative download locations

There are much positive responses meanwhile about the Bandit 1.3 version, much more than we get back for version 1.2. And it spreads the web:

Also mentioned at various sites offering feeds, e.g. some uncommon Bad Vilbeler Golfclub Lindenhof e.V or Deutsche Bundesbank (did not even know they offer feeds!)

Technorati tags:  | 
Saturday, April 23, 2005 4:54:58 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
# Wednesday, April 06, 2005
define:google. Or: a good source for our language contributors
Very often they have the problem to find a good equivalent term/translation to a specific english one. There are allready good sources that may help like wikipedia.org, or simple online translation services like BabelFish. But often the language needed isn't supported there, or the required term. Now google offers a good extension to all the services: define:'s [via google blog]. So you can find out e.g. for RSS also some non-geek definitions (like 'Repetitive stress syndrome').
Technorati tags:
Wednesday, April 06, 2005 9:31:24 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
Navigation

Like RSS Bandit? Make a donation to help support its development and maintenance. As little as 1€ will help.

Make payments with PayPal - it's fast, free and secure!
On this page....
<July 2005>
SunMonTueWedThuFriSat
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456

SUBSCRIBE RSS GeoURL e-mail

Search
Categories
Blogroll
[Feed] Dare Obasanjo
Dare Obasanjo aka Carnage4Life
[Feed] Clemens Vasters
[Feed] Omar Shahine
[Feed] Tom Mertens

newtelligence dasBlog 2.1.8102.813

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

WOT Notar

Join WebHost4Life.com