M100680: Unable to generate a temporary class

The error: Unable to generate a temporary class (result=1). error CS0011 may be encountered after installing Service Pack 1 on Windows 2003 Server.

Symptoms

  • Your administration server is running Windows 2003 Server with Service Pack 1
  • You are using the ManageSoft operations portal to:
    "Deploy patches below to managed devices targeted by the selected policy"
    (Security Patch Deployment -> Accept patches -> Accept patches approved in bulletins checked below OR Accept patches from all bulletins shown -> Deploy patches below to managed devices targeted by the selected policy)

    OR

    "Apply policy now to managed devices"
    (Security Patch Deployment -> Synchronize policy -> Apply policy now to managed devices targeted by:)
  • After trying to accept patches or apply policy you see the following error in the portal:

    Unable to generate a temporary class (result=1). error CS0011: Referenced class '_ASP.SecurityBulletinAccept_ascx' has base class or interface 'ManageSoft.Web.UI.UserControl' defined in an assembly that is not referenced. You must add a reference to assembly 'ManageSoft.Web.UI'

    OR

    Unable to generate a temporary class (result=1). error CS0011: Referenced class '_ASP.SecurityBulletinSynchronizePolicy_ascx' has base class or interface 'ManageSoft.Web.UI.UserControl' defined in an assembly that is not referenced. You must add a reference to assembly 'ManageSoft.Web.UI'
This problem is caused by changes to the .NET compiler that have been introduced in Windows 2003 Server Service Pack 1.

This issue may be resolved by using the remote execution subsystem that is available through the administration console to update policy on managed devices or by applying the fix in the attached ZIP file to your administrator server as follows:

  1. Close any web browsers that are using the ManageSoft operations portal.
  2. Backup <Program Files>\ManageSoft\Portal\Web\Modules\SecurityBulletinManagement\Web References\localhost\Reference.cs.
  3. Unzip the Reference.zip that is attached to this knowledge base article.
  4. Do one of the following:
    • If you are running ManageSoft 7.0[.x] or 7.2[.x], copy Reference70-72.cs to <Program Files>\ManageSoft\Portal\Web\Modules\SecurityBulletinManagement\Web References\localhost\Reference.cs.
    • If you are running ManageSoft 7.5, copy Reference75.cs to <Program Files>\ManageSoft\Portal\Web\Modules\SecurityBulletinManagement\Web References\localhost\Reference.cs.
  5. Stop and start the IIS server and the application pool that is associated with the ManageSoftOP application (DefaultAppPool or ManageSoftAppPool).

Open a web browser and navigate to the ManageSoft operations portal. Try to "Deploy patches below to managed devices targeted by the selected policy" OR "Apply policy now to managed devices".

You should now be able to perform these operations successfully.

 
This issue is present in Security Patch Management 7.0, 7.2, and 7.5.  It will be fixed in the following patch releases: Security Patch Management 7.2.4, 7.5.2, and 7.6.

Comments

Powered by Zendesk