nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #03329
[Bug 1084181] [NEW] TestExecutaionContext SerializationException
Public bug reported:
Nunit v 2.6.2.12296 throws a SerializationException because
TestExecutaionContext is not marked as Serializable.
Looks like TestExecutaionContext is calling CallContext.LogicalSetData("Nunit.Framework.TestContext",current.contextDictionary)
however contextDictionary=> TestExecutaionContext is not Serializable. This prevents remote calls. You will get a
System.Runtime.Serialization.SerializationException : Type 'NUnit.Core.TestExecutionContext' in Assembly 'nunit.core, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' is not marked as serializable
exception.
You can work around this by calling
CallContext.FreeNamedDataSlot("NUnit.Framework.TestContext");
but is ugly and might break your expectation about what is in the context?
-Erik
** Affects: nunitv2
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1084181
Title:
TestExecutaionContext SerializationException
Status in NUnit V2 Test Framework:
New
Bug description:
Nunit v 2.6.2.12296 throws a SerializationException because
TestExecutaionContext is not marked as Serializable.
Looks like TestExecutaionContext is calling CallContext.LogicalSetData("Nunit.Framework.TestContext",current.contextDictionary)
however contextDictionary=> TestExecutaionContext is not Serializable. This prevents remote calls. You will get a
System.Runtime.Serialization.SerializationException : Type 'NUnit.Core.TestExecutionContext' in Assembly 'nunit.core, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' is not marked as serializable
exception.
You can work around this by calling
CallContext.FreeNamedDataSlot("NUnit.Framework.TestContext");
but is ugly and might break your expectation about what is in the context?
-Erik
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1084181/+subscriptions
Follow ups
-
[Bug 1084181] Re: TestExecutionContext SerializationException
From: Charlie Poole, 2013-10-11
-
[Bug 1084181] Re: TestExecutionContext SerializationException
From: Charlie Poole, 2013-10-11
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: Charlie Poole, 2013-10-06
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: Charlie Poole, 2013-10-06
-
[Bug 1084181] [NEW] TestExecutaionContext SerializationException
From: Launchpad Bug Tracker, 2013-10-05
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: erik hooper, 2013-02-13
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: erik hooper, 2012-12-07
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: Simone Busoli, 2012-12-07
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: erik hooper, 2012-11-29
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: erik hooper, 2012-11-28
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: Charlie Poole, 2012-11-28
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: erik hooper, 2012-11-28
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: Simone Busoli, 2012-11-28
-
[Bug 1084181] Re: TestExecutaionContext SerializationException
From: erik hooper, 2012-11-28
-
[Bug 1084181] [NEW] TestExecutaionContext SerializationException
From: erik hooper, 2012-11-28
References