Archive for the ‘.Net’ Category
Friday, June 27th, 2008 |
If you are using Windows Update to periodically download and install latest patch, you might encountered an annoying window that prompts you to restart your computer once new updates installed. It will keep on bugging you until your computer is restarted. Clicking Restart Later is only good for a few minutes before the restart window pops up again.

(more…)
Popularity: 15% [?]
Share This
If you like this post, you may want to subscribe to my RSS feed.
Posted in Development, Tools, .Net, Workaround | No Comments »
Wednesday, March 26th, 2008 |
After completed testing of my ASP.Net in test server, I deployed the same application to client’s server. However, I was hit with following error:
HTTP 500 - Internal Error Server
On further testing, I can’t even connect to localhost (that’s weird!). It gives the same error as above. My client’s system has the following:
- Windows XP SP2
- IIS 5.1
- Microsoft .Net Framework 1.1 (v 1.1.4322)
I tried the following but still couldn’t work:
- Reinstall IIS
- Reinstall Microsoft .Net Framework
- Run aspnet_regiis.exe -i
Solution:
- First of all I need to ensure that IE will not suppress any error messages. In order to do that, open Internet Explorer go to Tools-> Internet Options -> Advanced Tab. Check option Show Friendly HTTP Error Messages.
- Install IIS
- Install Microsoft .Net Framework
- Make sure Distributed Transaction Coordinator service is installed and running!
- open up your services panel or enter "services.msc"
- look for Distributed Transaction Coordinator (DTC)
- If it is not there, that means it is not installed.
- To install DTC, open up command prompt,
- go to your %windir/system32
- run msdtc.exe -install
- Once installed, you should be able to see DTC in your service panel.
- Start it
- Run aspnet_regiis.exe -i to complete installation.
- And voila! My ASP.Net application works!
For guides to reinstall DTC, click here http://support.microsoft.com/kb/891801
Popularity: 46% [?]
Share This
Posted in Development, .Net, General, Workaround, Internet Explorer | No Comments »
Thursday, October 11th, 2007 |
You misplace your Visual Studio 2005 serial key? Don’t worry. As long as you already have it installed in your PC, you can retrieve the key yourself.
You can retrieved the installed Visual Studio 2005 serial key in Windows Registry. Follow the instruction below:
- Open registry window. (Start-> Run -> Regedit)
- Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Registration
- Look for PIDKEY value
- The value is the serial key string. Just add a ‘-’ on every 5 characters and you will get your full serial key which you can use later.
By the way, if you are looking for a cracked serial key, sorry, you came to the wrong place.
Popularity: 59% [?]
Share This
Posted in Development, .Net, Tips and Tricks, General, Workaround | 2 Comments »
Thursday, October 11th, 2007 |

“Error 25007.Error occurred while initializing fusion. Setup could not load fusion with LoadLibraryShim(). The handle is invalid.”
When you encountered this error, you cannot continue to install Microsoft .Net Framework 2.0. Even if you tried to uninstall .Net Framework 2.0, it won’t allow you too! Now, you found yourself stuck in the situation and thinking of reformat your PC for a clean fresh installation.
Don’t do that just yet. There is one simple solution to this problem. Just remove the following folder
%windir\WinSXS\Policies
where %windir is your Windows directory and reinstall .Net Framework 2.0.
Now, you should be able to get the Framework installed.
Updated :
Below are links to other method to solve the same issue. Will keep on updating if I found any new workaround.
1) MSDN
Popularity: 100% [?]
Share This
Posted in Development, .Net, Tips and Tricks, General, Workaround | 19 Comments »
Thursday, September 27th, 2007 |
If you are developing mobile application for Windows PocketPC and Windows Mobile using Microsoft Compact Framework, you may need to deploy Compact Framework to targeted mobile device in order to run your application.
It is crucial to determine what version is currently installed on targeted device and if the installed version fits your application requirement. Different builds may work differently and thus may break your application if installed wrong version.
How to Check If Compact Framework Already Installed on Mobile Device
There are few ways to check if any compact framework has been installed. However, I will show you the basic ways to determine compact framework installation.
- On your device, go to My Device -> Windows and run cgacutil.exe. The version will be displayed on screen.
- Check if \Windows\mscoree.dll file exists. If this file is exists, that means the compact framework has been installed.
Now you know Compact Framework already installed on the mobile device and want to know which revision and builds is being installed.
How to Determine Compact Framework Version
In order to check the version installed, you can access the registry key on targeted mobile. The registry key that you want to look at is
HKLM\SOFTWARE\Microsoft\.NetCompactFramework
All versions of Compact Framework installed will be listed in this key. Take not that all Compact Framework 1,2 and 3.5 (beta) can co-exists at the same time on the same mobile device. Thus, you may see both versions on the list if both versions already installed. For more information on what the revision number means, please refer to table below.
Compact Framework Version List
There are 2 tables below that list out all builds and revisions for Compact Framework 1.0 , Compact Framework 2.0 and Compact Framework 3.5. (There won’t be a CF 3.0).
| Compact Framework 1.0 |
|
| 1.0.2268.00 |
RTM |
| 1.0.3111.00 |
SP1 |
| 1.0.3226.00 |
SP2 Recall |
| 1.0.3227.00 |
SP2 Beta |
| 1.0.3316.00 |
SP2 Final |
| 1.0.4292.0 |
SP3 |
| Compact Framework 2.0 |
|
| 2.0.5238.00 |
RTM |
| 2.0.6129.0 |
SP1 |
| 2.0.7045.0 |
SP2 |
| Compact Framework 3.5 |
|
| 3.5.7066.0 |
Beta 1 |
| 3.5.7121.0 |
Beta 2 |
Watch out for this space as it will be updated regularly. Subscribe my feed to keep updated.
Popularity: 15% [?]
Share This
Posted in Development, .Net, Tips and Tricks, General | No Comments »
Monday, March 5th, 2007 |
Below is the VB.Net snippet to retrieve MAC address available on your machine.
‘Add reference to system.management
Imports System.Management
Private Sub GetMACAddress()
Dim oMClass As ManagementClass = New _ ManagementClass(”Win32_NetworkAdapterConfiguration”)
Dim colMObj As ManagementObjectCollection = oMClass.GetInstances()
For Each objMO As ManagementObject In colMObj
console.WriteLine (objMO(”MacAddress”).ToString)
Next
End Sub
Popularity: 20% [?]
Share This
Posted in Development, .Net, Code Snippets | No Comments »
Wednesday, November 8th, 2006 |
Ever since Microsoft released Microsoft SQL Server 2005 Everywhere Edition to replaced Microsoft SQLCE database, a lot of confusion arises from the name itself. Most users complaint that the name is very similar to another database software, SQL Anyhere.

You can download a copy of Microsoft Compact Edition here.
Popularity: 12% [?]
Share This
Posted in Development, .Net, General | No Comments »