Installing MPICH2 parallel computing from package manager or Ubuntu software center, will need lot configurations of available real processors in the system environment. There for using MPICH2 from available .tar or .gz package is easier. To download MPICH2 package goto here: http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads or use here Direct link for mpich2-1.3a2.tar.gz change user to root or user super user privilege on every command sudo -i cd to the package location : #cd /location Then uncompress the package #tar xzvf filename.tar.gz go to the 'package root' : #cd filename then configure environment #./configure compile the package # make install the compiled package #make install Another small thing to do to start the mpich2 daemon: insert the following 3 lines to the /usr/local/bin/mpdlib.py as root import warnings warnings.filterwarnings('ignore', '.*the md5 module is deprecated.*', Depr...
I have this scenario where a webservice method I'm consuming in C# returns a Business object, when calling the webservice method with the following code I get the exception "Unable to cast object of type ContactInfo to type ContactInfo" in the reference.cs class of the web reference
ReplyDeleteCode:
ContactInfo contactInfo = new ContactInfo();
Contact contact = new Contact();
contactInfo = contact.Load(this.ContactID.Value);
Any help would be much appreciated.
actually this is not a bug. its a problem with the version changes of your own project! because your final run don't use the original imported references on compile!
ReplyDeletefor example,
i was making a chat server, client. i used a packet structure to transmit data on client project. then imported the same reference to server project. when casting...
Packet packet = (Packet)binaryFormatter.Deserialize(stream);
i got the same error.because the actual running reference at server project is not the reference now at client project! because i have rebuilt client project many times after!
in casting .... =()
always the new object need to be a newer or same version as the old object!
so what i did was, i build a separate project to create a dll for the Packet class and imported the dll file to both projects. if i did any change to Packet class, i have to import the reference to both client and server again.
then the casting wont give above exception!
regards!