[221] Bad error message


BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I started to get this message: "Argument type 'System.Xml.XmlWriter' is
not assignable to parameter type 'System.Xml.XmlWriter'" in a fully
compilable piece of code.

The method that's causing this is defined in an interface in one assembly:

public interface IXmlWritable
{
void
WriteXml(XmlWriter writer);
}

And the implementation is in a partial class defined in other assembly.

Regards,
Pablo
-


BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)

iD8DBQFED1brvooSiBfQCSoRAnfAJ9gtVvECa9weouXIo9EZSRCZjIGACghEtD
NfEwAdfeKiOOk0t5UtyDVrk=
=OcW2
-


END PGP SIGNATURE-----

2 comments
Comment actions Permalink

Hello Pablo,

could you please tell us if both assemblies (contaning the interface declaration
and
containing the implementation) reference the same version of the System.Xml
assembly?


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

---BEGIN PGP SIGNED MESSAGE---
Hash: SHA1

I started to get this message: "Argument type 'System.Xml.XmlWriter'
is not assignable to parameter type 'System.Xml.XmlWriter'" in a fully
compilable piece of code.

The method that's causing this is defined in an interface in one
assembly:

public interface IXmlWritable
{
void
WriteXml(XmlWriter writer);
}
And the implementation is in a partial class defined in other
assembly.

Regards,
Pablo
---BEGIN PGP SIGNATURE---

>> Version: GnuPG v1.2.1 (MingW32)
>>
>> iD8DBQFED1brvooSiBfQCSoRAnfAJ9gtVvECa9weouXIo9EZSRCZjIGACghEtD
>> NfEwAdfeKiOOk0t5UtyDVrk=
>> =OcW2

---END PGP SIGNATURE---



0
Comment actions Permalink

I get a similar error with build 220 in VS 2005 in a self-contained C# class:

Argument type 'System.Globalization.CultureInfo' is not assignable to parameter type 'System.Globalization.CultureInfo'

when using it in string.ToLower.
(can't try 221 because it is unusuable for me as reported in this thread: http://www.intellij.net/forums/thread.jsp?forum=59&thread=202986&tstart=0&trange=15).

I thought this might be caused by the fact that the solution contains projects for standard Windows, and projects for Mobile 5.

cheers,
Tom

0

Please sign in to leave a comment.