M100681: Unable to generate a temporary class (result=1). CS1519: Invalid token '{' in class, struct, or interface

If you have .NET 1.1 and MS05-004 installed, you may see the following error when performing a remote execution through the administration server console: 
Unable to generate a temporary class (result=1). error CS1519: Invalid token '{'

Problem and Symptoms

The following error may occur when using remote execution through the administration server console: 
(s0m0): An error occurred while accessing the command file. Click More… 
to see the system exception message for more information. 
Please try again once the problem has been rectified.

System exception

Unable to generate a temporary class (result=1). 
error CS1514: { expected 
error CS1001: Identifier expected 
error CS1031: Type expected 
error CS1519: Invalid token '{' in class, struct, or interface member declaration 
error CS1514: { expected error CS1001: Identifier expected error CS1031: Type 
expected error CS1519: Invalid token '{' in class, struct, or interface member declaration

Source

System.Xml

Stack trace

at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence) 
at System.Xml.Serialization.TempAssembly. GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies) 
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) 
at System.Xml.Serialization.XmlSerializer. GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace) 
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) 
at System.Xml.Serialization.XmlSerializer..ctor(Type type) 
at ManageSoft.Scheduling.RemoteExecution.ArbitraryCommandWizard. 
ArbitraryCommandPage.readCommandFile(FileInfo file) 
at ManageSoft.Scheduling.RemoteExecut

Your administration server also has the following configuration:

  1. .NET Framework 1.1
  2. Security bulletin MS05-004 (KB886904) - ASP .NET Path Validation Vulnerability
 
This problem is caused by a conflict between MS05-004 and .NET 1.1 affecting the system.xml.dll.

To resolve this issue you may follow the steps outlined in the following Microsoft knowledge base article:

"You receive an error message in SQL Server 2000 Reporting Services after you install security update MS05-004 for the .NET Framework 1.1" 
http://support.microsoft.com/?kbid=895242&SD=tech

Comments

Powered by Zendesk