DllCanUnloadNow function isn’t invoked after using classic COM components in .NET applications

  COM Interop is a technic  for calling an unmanaged COM component from a .NET application, please refer to http://msdn.microsoft.com/en-us/magazine/dvdarchive/cc163494.aspx to learn how to implement it. DllCanUnloadNow is an important function which should be implemented and exported by the COM component. However, you may be aware that the DllCanUnloadNow function isn’t invoked with the managed…

0

How to configure shared MSDTC resource for Windows 2008 Failover Cluster

  In this document, I’d like to give you some brief ideas about how to configure MSDTC resource in Windows 2008 Failover cluster environment. I suppose you have successfully setup windows failover cluster. If you haven’t, please refer to the following articles to setup.   http://www.mssqltips.com/tip.asp?tip=1687 http://www.mssqltips.com/tip.asp?tip=1698   Environment:    Windows 2008 SP2 Failover Cluster…

2

How to configure individual MSDTC resource with SQL cluster application in SQL Server 2008 Failover Cluster

  In the Windows 2008 Failover Cluster environment, we recommend the “Incoming Caller Authentication Required” security setting for the MSDTC service. I’ll describe how to create the private MSDTC cluster resource for the SQL instance. Environment: Windows 2008 SP2 Failover Cluster SQL Server 2008 Step 1: Install the SQL Server cluster Since this step is…

6

How to Tune the ASPProcessorThreadMax and EmulateMTSBehavior

  Background Sometimes we may find the ASP requests are very slow because of too many requests queued. Then we can modify the Metabase property of ASPProcessorThreadMax to improve the performance. For more information about how to tune this property, please refer to the following articles http://support.microsoft.com/kb/238583 http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d4ed262f-11d0-4a87-b15d-57a8c800539e.mspx Analysis Based on the ASPProcessorThreadMax definition, it…

0

High CPU usage for .NET 1.1 XSL transformation

  In .NET 1.1, XSL transformation with System.Xml.XmlDataDocument may run very slowly and the CPU usage may reach 100% if you transform large data. Repro Code 1.    XSL file <?xml version=”1.0″ encoding=”ISO-8859-1″?>   <xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”>   <xsl:template match=”/”>   <html>   <body>   <h2>My CD Collection</h2>   <table border=”1″>     <tr bgcolor=”#9acd32″>       <th>Title</th>…

0

Why my DCOM service reports 10010 error

Symptom Sometimes we will get the following error message for your DCOM service in the System event log. Event Type:        Error Event Source:    DCOM Event Category:                None Event ID:              10010 Date:                     8/26/2009 Time:                     2:35:34 PM User:                     XXXX Computer:          XXXX Description: The server {61FE47D1-3474-4716-B13E-4ADC413FD4F1} did not register with DCOM within the required timeout. Root Cause This…

0

How to make IISADMPWD work in MOSS 2007 website

Backgound In IIS5.0 or IIS6.0, with the IISADMPWD feature, we can easily change an expired user’s password via several ASP pages. For more information about this feature, please refer to http://support.microsoft.com/kb/833734 Symptom If you create the IISADMPWD virtual directory under a Sharepoint website, you may find the user name is missed on the changing password…

1

Fail to send PORT command in FTP with NAT

Symptom When you connect to FTP server with Microsoft ftp command line client (ftp.exe), you may get “500 Invalid PORT Command” error message after typing “dir” command. Root Cause This problem may happen when a NAT router is introduced in the network environment, and the FTP client is using Active mode. Analysis When you type…

0

How to call COM+ remotely with anonymous user

  The purpose of this tutorial is to give you an idea on how to call the COM+ server remotely. I’m not going to go into the depths of COM+ details or how to develop COM+, this tutorial is designed to show 3 ways on how to call COM+ server with VC++. Environment: Windows 2000…

1

Web Application Memory leakage caused by XML operations – GetElementsByTagName()

  Symptom ============= In ASP.NET web application, if you do a lot of GetElementsByTagName() operations with an XML document which is stored in ASP.NET Application state, the CLR memory usage will continuously increase and finally leads to OOM(Out Of Memory).   Root Cause ============= This problem occurs because the GetElementsByTagName method returns an XmlNodeList collection…

3