Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Colt Kwong Blog

.NET is out there

  • FindControl Failed For The Error Provider Control

    I have a User Control containing a Error Provider, and I need to find and parse it out of my Action Pane control. So, I get a reference to the parent control and then loop all children recursively (pretty common approach, right?) Once I find the Error Provider, I can cast and further work on it ideally.

    However, I can't find this control from the control tree (surprise me) because I'm able to see the parent control (ContainerControl) of the Error Provider is the User Control itself...



    What I finally did is to create a Get property on the User Control and expose the Error Provider.

    Colt Kwong

  • 2007 Office System Beta 2 and Locale Issue

    I install the latest 2007 Office System Beta 2 build in my dev machine this morning, the first dialog box make me confused immediately:


    I select English and process installation, but the title and language are displayed (as Spanish I guess) in all of the remaining steps.. so I aborted and start step 1 installation again. This time, I select the first item in the ListBox (Pay attention to the title in the diagram above) and process the installation.

    After installation, another locale problem found because I can not run my VSTO application! An error message come out:
    (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))

    I searched up and down and found this "unbelievable" fix: http://blogs.msdn.com/eric_carter/archive/2005/06/15/429515.aspx
    [Copy the Excel.EXE (Application file) and rename it as XLLEX.DLL (Application Extension) file then it work? What's the secret and logic?]

    Ok, this fix the problem, but I found the linkage of VSTO runtime and CLR runtime were lost. (Another error message come out:
    The CLR runtime could not be loaded... blah blah). Therefore, I have to manually re-register the VSTO load up runtime, done. My VSTO app run again.

    I heard lots of good feedback about 2007 Office System Beta 2 build, so I want to give it a try once I received the DVD. However, the experience of installatio make me so worry now... I can fix all problems apparently, but this blog mentioned that I may face other "unexpected" and "unknown" problem in different locale and CultureInfo environment for my VSTO solution... How can I make sure everything is alright because I'm pretty sure there're lots of combination and locale for my VSTO clients and information workers in my company. :(

    Colt Kwong

  • Remote Desktop Connection Trick

    Normally, my PC at work is always on and I connect to it via VPN even I'm at home. However, I can't use remote desktop client to control my PC at home recently.

    After authenticate with the VPN server successfully, a "black" screen come out if I try to connect to my work PC and then an error message will appear:

    ---------------------------
    Fatal Error (Error Code: 5)
    ---------------------------
    The session will be disconnected. Your computer may be low on memory.
    After closing some applications, try to reconnect the session.

    I have no idea what's happened and I try to close as many program/services as I can before I leave work. I also report this problem to a technical service IT Pro colleague and he asked me to wait for some more time as bandwidth maybe the cause of problem... well, I wait until the error message come out and... guess what? I found this trick tonight and it helps me a lot! (without solving the root of problem though)



    Colt Kwong

  • Wine Tasting and Mingling Fuse for IT Pro/Dev

    What's the relationship between wine tasting and IT Pro/Dev? I believe it's the most hippy community event locally. ;o)

    No matter you're a IT hippy or workaholic alcoholic, it's time to take a break. Drop everything and get away from it with your jo-san friends on 26th Apr 2006!

    The first offline gathering for jo-san.it/net community will be scheduled on 26th Apr, and you can taste the wine and mingle with various Microsoft Security Day speakers casually on that evening.

    Fill in the six textboxes and then you are able to taste the best wine, meet the community buddies and also win a FREE professional level support incident!
    Colt Kwong