Tuesday, December 30, 2008

SilverLight Localization

For support for more than one language, you must add related resource files and modify the project file manually to add extra culature.

ja-JP,fr-FR


1. Download fonts to client (some fonts are too big)
2. use Glyphs instead of TextBlocks
3. Use image instead of text

MSDN information:
http://msdn.microsoft.com/en-us/library/bb738082.aspx

Other info
http://silverlight.net/forums/p/4252/12713.aspx#12713

http://silverlight.net/forums/p/20327/70078.aspx#70078

Creating a localizable Silverlight 2.0 RTW Application
http://wpf-e.spaces.live.com/blog/cns!2B248D261D0E0035!381.entry

Sunday, December 28, 2008

Silverlight Error #2104 Could not download the silverlight application in IIS6

If you receive this error while trying to deploy your Silverlight application, make sure you did the following things:


1. Register MIME Types and File Extensions

You must register some MIME types and file extensions so that the browser on the client's system can load the correct handler. You need to add the following types:

Extension
MIME Type

.xap
application/octet-stream

.xaml
application/xaml+xml

The .xap needs to have that mime type, in order to be able to be downloaded.

3. Execute permissions must be Scripts Only.


Right-click your Web Site and select Properties from the context menu.

Select the Directory tab and change "Execute Permissions" to Script only.

1. Adjust the Content Expiration Setting

You should adjust the content expiration setting to 1 minute. The following procedure outlines how to do this with IIS.

Right-click your Web Site and select Properties from the context menu.

Select the HTTP Headers tab and click "Enable Content Expiration".

Set the content to expire after 1 minute.

Sunday, August 24, 2008

VBscript and DOS Command

http://www.computerperformance.co.uk/ezine/ezine80.htm

It is a good site that introduce how to manupulate DOS Command Window in VBScript

Scenario: You want to run a command prompt
Example 1 - To open a CMD or 'Dos Box'.
Example 2 - To add commands to the 'Dos Box'.
Example 3 - To pipe the Output to a text file
Summary of ComSpec

Saturday, July 12, 2008

windows update fails in Inspiron 1720

After installing XP professional pro with customized install CD(adding SATA storage driver), windows update never sucess.

Search in Internet for long time and can find a solution for my case.
so I have to install the hot fix one by one manually.

1. download the hot fix (search download by the fix name)
2. install it manually

So far no better way.

After that, I found post refered me to following URL.
I will try this out when next time I have to do update.
(All items have been installedmanually at this momoent)

http://support.microsoft.com/kb/822798

Thursday, July 10, 2008

Install XP on Insprion 1720

1. Get nLite - it lets you copy your XP cd to a local drive, and slipstream drivers into it, then make a new ISO and burn it. http://www.nliteos.com/
At the very minimum you'll need to put the SATA HD drivers in there. I got them from Dell, at http://support.dell.com and looked up the Inspiron 1720 Notebook - make sure you set the OS to XP.

2. After installation, the following errors

Windows Cannot load the Internet Configuration Library
(ICFGNT.dll) The following error occured
The specified module could not be found.


to fix it:
1. Copy icfgnt5.dll from other compuer to windows\system32
2. Remove IE then reinstall it. (Control Panel:Add Or Remove programs)

Thursday, July 3, 2008

remote desk port number

remote desk : 3389
=====================
For more see http://onlinehowto.net/Tutorials/Windows-XP/Change-Windows-remote-desktop-port-number/291/1

pcanywhere: 5631/5632
=====================

Wednesday, June 25, 2008

Authentication cookie lost

I also have some reference information for you.

1. I also found post that say the problem appeared after “reformat” the server. It looks similar to our case. Maybe can give you a hint.
http://www.velocityreviews.com/forums/t81921-forms-auth-cookie-vanishes-immediately-after-login.html

How about just remove the site and create new one with different name/description? Sometime it works.

2. The problem does not appear on FireFox that means there should be no problem with the connection between Web server and SQLServer session. It means the problem is the Authentication Cookie lost problem. We need to find out where the cookies lost (server/client).

Here is the tool (free) that can help to check the header information (include cookie) sent between browser and web server.
http://www.fiddler2.com/Fiddler2/version.asp

Here is the Microsoft Help and Desk information on cookie lost.
http://support.microsoft.com/kb/910439

3. I also checked related source code in Australia project, the only suspicious place is the “User” property of UIBase. But I don’t think it will affect “HttpContext.Current.User”. If you think it is necessary, I can change it to use something else like “Actor”. It will involve changes in almost all pages in Web project.