Visual Studio Development Bookmark and Share   
 index > Installing and Registering Visual Studio Express Editions > System.Runtime.Serialization.SerializationException
 

System.Runtime.Serialization.SerializationException

I have developed any projects in VC# Express Beta 1 and now i try opening and compiling the projects in VC# Express Beta 2, but while compiling, happened any errors!  Any ideas why I would get this?!

Error 60 The "GenerateResource" task failed unexpectedly.
System.Runtime.Serialization.SerializationException: Type  could not be read from the data in line 129, position 5. 
The type's internal structure may have changed.  Either implement ISerializable on the type or provide a type converter
that can provide a more reliable conversion format, such as text or an array of bytes. 
The conversion exception was: Member 'm_codePage' in class 'System.Text.ASCIIEncoding' is not present in the serialized
stream and is not marked with System.Runtime.Serialization.OptionalFieldAttribute.---> System.Xml.XmlException:
Type  could not be read from the data in line 129, position 5.  The type's internal structure may have changed. 
Either implement ISerializable on the type or provide a type converter that can provide a more reliable conversion format,
such as text or an array of bytes.  The conversion exception was: Member 'm_codePage'
in class 'System.Text.ASCIIEncoding' is not present in the serialized stream and is not marked with
System.Runtime.Serialization.OptionalFieldAttribute.
Line 129, position 5. ---> System.Runtime.Serialization.SerializationException: Member 'm_codePage'
in class 'System.Text.ASCIIEncoding' is not present in the serialized stream and is not marked
with System.Runtime.Serialization.OptionalFieldAttribute.
   at System.Runtime.Serialization.Formatters.Binary.ReadObjectInfo.GetMemberTypes(String[] inMemberNames, Type objectType)

   at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName,
              String[] memberNames,
              BinaryTypeEnum[] binaryTypeEnumA,
              Object[] typeInformationA,
              Int32[] memberAssemIds,
         ObjectReader objectReader,
         Int32 objectId,
         BinaryAssemblyInfo assemblyInfo,
         SizedArray assemIdToAssemblyTable)

   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()

   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler,
          __BinaryParser serParser,
          Boolean fCheck,
          IMethodCallMessage methodCallMessage)

   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream,
          HeaderHandler handler,
          Boolean fCheck,
          IMethodCallMessage methodCallMessage)

   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
   at System.Resources.ResXDataNode.GenerateObjectFromDataNodeInfo(DataNodeInfo dataNodeInfo,
           ITypeResolutionService typeResolver)

   at System.Resources.ResXDataNode.GetValue(ITypeResolutionService typeResolver)
   at System.Resources.ResXResourceReader.ParseDataNode(XmlReader reader, Boolean isMetaData)
   at System.Resources.ResXResourceReader.ParseXml(XmlReader reader)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e)
   at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFile)

   at Microsoft.Build.Tasks.ProcessResourceFiles.Run( TaskLoggingHelper log,
       AssemblyName[] assemblies,
       ArrayList inputs,
       ArrayList outputs,
       Boolean sourcePath,
       String language,
       String namespacename,
       String filename,
       String classname)

   at Microsoft.Build.Tasks.GenerateResource.Execute()

   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask,
       Hashtable projectItemsAvailableToTask,
       BuildPropertyGroup projectPropertiesAvailableToTask)
 
C:\WINNT\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 1500 9 

Bayram0980  Tuesday, July 12, 2005 10:06 AM

Looks like it is failing on on a resource file. Due to the internal changes made from Beta 1 to Beta 2, you will need to recreate Resource Files (.resx) added to project.

David M. Kean  Tuesday, July 12, 2005 12:17 PM

Looks like it is failing on on a resource file. Due to the internal changes made from Beta 1 to Beta 2, you will need to recreate Resource Files (.resx) added to project.

David M. Kean  Tuesday, July 12, 2005 12:17 PM

You can use google to search for other answers

Custom Search

More Threads

• Error installing Visual Studio C# Express: Error 1402. Could not open key
• Microsoft SQL Server 2005 Express (Install Problem)
• Cannot install VE 2008
• Downloaded Express now all VBA files get Error 400
• Can't see the "Windows Control Library" template
• ContextSwitchDeadlock was detected - CLR unable to switch contexts
• setup.exe has stopped working
• Visual Basic 2005 Express Edition Vista 64 install problems
• UPDATING THIS VWD 2005 from the Beta
• Possible Error in Microsoft MaskedTextBox Control