In an FMStocks7 Web application, operations that use the GAM component do not work after you deploy DCOM on the remote computer (840924)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition, when used with:
    • the operating system: Microsoft Windows XP SP1
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition, when used with:
    • the operating system: Microsoft Windows XP SP1

SYMPTOMS

On a computer that is running Microsoft Windows XP Service Pack 1, when you run the Fitch & Mather Stocks 7.0 (FMStocks7) Web application, operations that use the General Accounting Module (GAM) do not work after you deploy DCOM on the computer. When this behavior occurs, the following error message may be logged in the application event log:
System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown ---> System.Runtime.InteropServices.COMException (0x8000401A): The server process could not be started because the configured identity is incorrect. Check the user name and password.

CAUSE

This behavior occurs because the GAM component on the remote computer is not started.

RESOLUTION

To resolve this behavior, you must manually restart the GAM component that is deployed on the remote computer.

Restart the GAM component

To restart the GAM component manually, follow these steps on the remote computer:
  1. Click Start, point to Settings, and then click Control Panel.
  2. In Control Panel, click Administrative Tools.
  3. In Administrative Tools, click Component Services. The Component Services window appears.
  4. In the left pane of the Component Services window, double-click Component Services.
  5. Expand Computers, expand My Computer, and then expand COM+ Applications.
  6. Right-click FMStocks7.GAM, and then click Start.

Troubleshooting

If the value of the userName attribute in the processModel tag is Machine, the following error message may be logged in the application event log:
System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown ---> System.InvalidCastException: QueryInterface for interface FMStocks7.GAM.IGAM failed.
To avoid this behavior, change the value of the userName attribute in the processModel tag to System.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to reproduce the behavior

  1. Install Microsoft Visual Studio .NET 2003, Enterprise Architect Edition, on a computer that is running Windows XP Service Pack 1.
  2. Install the FMStocks7 Web application:
    1. Locate the FMStocks7.msi file in the following folder:

      Root Drive\Program Files\Microsoft Visual Studio .NET 2003\Enterprise Samples\FMStocks7

      Note Root Drive is a placeholder for the drive where the operating system is installed.
    2. Double-click the FMStocks7.msi file, and then follow the steps in the wizard.

      Note The installation process generates a set of files that includes an executable (.exe) file that is named Fms.exe.
  3. Deploy DCOM on the remote computer:
    1. Verify that the following requirements are met on the remote computer:
      • Windows XP Service Pack 1
      • Microsoft .NET Framework 1.1
      • Microsoft Internet Information Services 5.1 or later
      • The domain user account that is used to log on to the local computer is added to the Administrators users group of the remote computer
    2. Add both the remote computer and the local computer to a single domain.
    3. Use the domain user account to log on to the local computer.
    4. At a command prompt, locate the Root Drive\Program Files\Microsoft Visual Studio .NET 2003\Enterprise Samples\FMStocks7 folder.
    5. Run the following command:

      fms Deploy_Dcom RemoteMachine=ComputerName Path=PathToDeploy Debug=true

      Note ComputerName is a placeholder for the name of the remote computer and PathToDeploy is a placeholder for the path on the remote computer to deploy DCOM.
  4. Change the value of the userName attribute:
    1. In Windows Explorer, locate the following folder:

      %WinDir%\Microsoft.NET\Framework\v1.1.4322\Config

    2. In a text editor such as Notepad, open the Machine.config file.
    3. Locate the userName attribute in the processModel tag.
    4. Change the value of the userName attribute to System, and then save the Machine.config file.
    Note If you change the userName attribute value to System, the server will be vulnerable to attack by malicious users. Therefore, after testing, change the value of the userName attribute back to Machine.
  5. Start Microsoft Internet Explorer.
  6. In the Address box, type http://localhost/fmstocks7, and then press ENTER.
  7. Use the guest user account that appears in the Web browser to log on to the application.
  8. Click View Summary.
You may notice the behavior that is mentioned in the "Symptoms" section.

Note This behavior does not occur on a computer that is running Microsoft Windows 2000 Advanced Server or Microsoft Windows Server 2003.

REFERENCES

For more information about the .NET Framework and about Fitch and Mather 7.0, visit the following Microsoft Developer Network (MSDN) Web sites:

Modification Type:MinorLast Reviewed:2/13/2006
Keywords:kbvs2005doesnotapply kbvs2005swept kbvs2005applies kbsysreq kbsetup kblogin kbEventLog kbDeployment kbConfig kbCOMPlusLCE kbprb KB840924 kbAudDeveloper