Error with System.Runtime.Serialization

Thursday, February 7, 2013 2:56:25 PM
Hello!

I'm developing a class in which I need to use the reference
"System.Runtime.Serialization".

We've included the references, but I still get the following error:

Error CS0234: The type or namespace name `ExtensionDataObject' does not exist in the namespace `System.Runtime.Serialization'. Are you missing an assembly reference?

class code is:

using System;
using UnityEngine;
using System.Runtime.Serialization;

public class SpiraClient : MonoBehaviour {

private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
public SpiraClient () 
{
}
public void mostrar()
{
Debug.Log("TEST);
}

}

3 Replies
Friday, February 8, 2013 12:04:40 PM
Avatar
re: jdurand on Thursday, February 7, 2013 2:56:25 PM

This is a bit outside of our experience, can anyone help Jose?

Regards

Adam

Friday, February 8, 2013 12:05:07 PM
Avatar
re: jdurand on Thursday, February 7, 2013 2:56:25 PM
On the surface it sounds like you need to add a reference to a missing .NET DLL.
Friday, February 8, 2013 5:06:25 PM
Avatar
re: inflectra.adam on Friday, February 8, 2013
Thanks for your response.  The reference is already added in the code (using System.Runtime.Serialization) and is also added to the list of project references.
I do not know the reason for this error
Statistics
  • Started: Thursday, February 7, 2013 2:56:25 PM
  • Last Reply: Friday, February 8, 2013 5:06:25 PM
  • Replies: 3
  • Views: 1045