Event ID 36 IIS Error 
When u Facing
Event ID 36
The server failed to load application '/LM/W3SVC'. The error was 'The specified metadata was not found.

1. Delete IIS related package in Component Services MMC
- IIS In-Process Applications.
- IIS Out-of-Process Pooled Applications.
- IIS Utilities.
If you get ''Item cannot be deleted'' go into the Properties, Advanced, and clear the ''Disable deletion'' tickbox.
2. Open command prompt, navigate to %windir%\system32\inetsrv folder, and enter (case sensitive):
c:\winnt\system32\inetsrv\>rundll32 wamreg.dll, CreateIISPackage
then
c:\winnt\system32\inetsrv\>regsvr32 asptxn.dll

3. Enter IISRESET at the command prompt to restart IIS services, and then re-open Component Services MMC to verify that the IIS packages are recreated.



[ add comment ]   |  permalink  |  related link  |   ( 3 / 4466 )
From server Test Client speed, C# 
using System.Management;
#region //ping
/// <summary>
/// Get client speed by ping bytes/million second, bytes/ms
/// </summary>
/// <param name="Target"></param>
/// <returns></returns>
public static int Ping(string Target)
{
int Time=10;

try
{
Time=0;
SelectQuery query = new SelectQuery("Win32_PingStatus", string.Format("Address='{0}'", Target));
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);

foreach (ManagementObject result in searcher.Get())
{

for(int i=0;i<20;i++)
{
if (result["StatusCode"] != null && (0 == (UInt32)result["StatusCode"])&&result["ResponseTime"]!=null)//connected
{
Time=Time+Convert.ToInt32(result["ResponseTime"]);
}
}
}

Time=Time/20;
}
catch{}

if (Time==0)
Time=10;

return 32/Time;
}
#endregion

[ 1 comment ] ( 134 views )   |  permalink  |  related link  |   ( 2.9 / 3966 )
Expression Validation 
Float
(\+|-)?([0-9]+\.?[0-9]*|\.[0-9]+)([eE](\+|-)?[0-9]+)?

Number:
\d{1,}

[ add comment ]   |  permalink  |  related link  |   ( 3 / 3925 )
Add Confirmbox in C# .NET 
Me.BtnDelete.Attributes.Add("onclick", _
"return confirm('Are you sure you want to delete?');")

[ add comment ]   |  permalink  |  related link  |   ( 3 / 1592 )
How to remove recent projects from Visual Studio Start Page 
1. Close Visual Studio if it is running.
2. Start the Registry Editor (run regedit).
Registry Editor
3. Navigate to this registry key:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList
Registry Editor 2
4. Then delete the key that has the project you do not want to keep in the list.


[ 1 comment ] ( 91 views )   |  permalink  |  related link  |   ( 3 / 9993 )

NextNext