Microsoft Knowledge Base Email Alertz

KBAlertz.com: The file change notifications are lost when the FTP service that is installed in Internet Information Services (IIS) 6.0 runs on MSCS

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 975306 - Last Review: October 23, 2009 - Revision: 2.0

File change notifications are lost when the FTP service that is installed in Internet Information Services (IIS) 6.0 runs on MSCS

On This Page

SYMPTOMS

Issue 1

Consider the following scenario:
  • You have the FTP service installed in Internet Information Services (IIS) 6.0.
  • You run the FTP service on Microsoft Cluster service.
  • You locate the FTP root on the physical disk resource of Microsoft Cluster service.
In this scenario, the file change notifications that are generated here are lost and the cache is never cleared or updated.

Issue 2

Consider the following scenario. You overwrite a file by using a new file in a directory that has content that you are making available through Internet Information Services (IIS) 6.0. When you access the new file in this scenario, you notice that the contents of the file are the same as the contents of the original file.

CAUSE

Cause of Issue 1

When the FTP service starts, the passive node of the service cannot access the location of the FTP root directories on the physical disk resource. Therefore, the FTP service cannot register to receive file change notifications for the physical disk.

Cause of Issue 2

When the FTP service starts, the passive node of the service cannot access the location of the FTP root directories on the physical disk resource. Therefore, the FTP service cannot be registered to receive file change notifications for the physical disk.

RESOLUTION

Method 1: Disable the file caching

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756  (http://kbalertz.com/Feedback.aspx?kbNumber=322756/ ) How to back up and restore the registry in Windows

To disable file caching in the FTP Service in IIS 6.0, change the DisableMemoryCache registry entry. To do this, follow these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:HEKY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters
  3. Right-click Parameters, point to New, and then click DWORD Value.
  4. In the New Value #1 box, type DisableMemoryCache, and then press ENTER.
  5. Right-click DisableMemoryCache, and then click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. Close Registry Editor, and then restart the computer.

Method 2: Restart the FTP Service when the resource comes online

When a physical disk resource on the FTP root is online, restart the FTP service. If you want to do this automatically, change the Online function of the Clusftp.svc file to restart the FTP service automatically.

The following is a sample script that restarts the FTP service when the resource is online.
Function Online()

        Dim objWmiProvider
        Dim objService
        Dim strServiceState

        ' Check whether the service is running
        Set objWmiProvider = GetObject("winmgmts:/root/cimv2")
        Set objService = objWmiProvider.get("win32_service='msftpsvc'")
        strServiceState = objService.state

        If ucase(strServiceState) = "RUNNING" Then
            Online = True

            response = objService.StopService()
            response = objService.StartService()

        Else

            ' If the service is not running, try to start it. If it does not, log an error
            response = objService.StartService()

            ' response = 0 or 10 indicates that the request to start was accepted
            If (response <> 0) And (response <> 10) Then
                Resource.LogInformation("The resource failed to come Online because the MSFTPSVC service is not running.")
                Online = False
            Else
                Online = True
            End If
        End If

End Function

The following is a sample script that stops the FTP service when the resource is offline.
Function Offline()

        Dim objWmiProvider
        Dim objService
        Dim strServiceState

        ' Check whether the service is running
        Set objWmiProvider = GetObject("winmgmts:/root/cimv2")
        Set objService = objWmiProvider.get("win32_service='msftpsvc'")
        strServiceState = objService.state

        If ucase(strServiceState) = "RUNNING" Then
            response = objService.StopService()
        End If

        Offline = True

End Function

APPLIES TO
  • Microsoft Internet Information Services 6.0
Keywords: 
kbtshoot kbbug kbprb KB975306
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please