SoapFormatter problem

M

Mark Oliver

Hi,

What's causing this error when I try to Deserialize class ccpl?

Parse Error: No assembly associated with Xml Key
a:http://schemas.microsoft.com/clr/nsassem/ev/ev, Version=.1.0.0.0,%
20Culture%3Dneutral%2C%20PublicKeyToken%2Dcd70ec999356f744
formCopySystem+ccpl.

I havn't changed formCopySystem.cs in over a month; here is it's class ccpl

[Serializable]
public class ccpl
{
[Serializable]
public struct A
{
public int L,c;
public string s;
public A(int L,int c,string s)
{
this.L=L;
this.c=c;
this.s=s.Substring(1,s.Length-2);
}
}
public A [] pl;
public void setA(int i,int L,int c,string s)
{
pl=new A(L,c,s);
}
const int plSize=64;
public string ccfName;
public A this[int i]
{
get
{
return pl;
}
set
{
pl=value;
}
}
public ccpl(bool make)
{
pl=new A[plSize];
if (make)
{
for (int i=0;i<plSize;i++)
pl=new A(1,2,"abc");
ccfName="default";
}
}
} // class ccpl
here is the XML file I am trying to Deserialize:

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<a1:formCopySystem_x002B_ccpl id="ref-1"
xmlns:a1="http://schemas.microsoft.com/clr/nsassem/eV/eV, Version=1.0.
0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dcd70ec999359f744">
<pl href="#ref-3"/>
<ccfName id="ref-4">DEFAULTC.CCF</ccfName>
</a1:formCopySystem_x002B_ccpl>
<SOAP-ENC:Array id="ref-3" SOAP-ENC:arrayType="a1:formCopySystem+ccpl+A[64]"
xmlns:a1="http://schemas.microsoft.com/clr/nsassem/eV/eV, Version=1.0.
0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dcd70ec999359f744">
<item>
<L>1</L>
<c>1</c>
<s id="ref-5">cpl index 0 is Reserved, substract 5 from line # for cpl
index</s>
</item>
<item>
<L>14</L>
<c>8</c>
<s id="ref-6">File Appears to be in Check Number Order, Use SCEN Anyway</s>
</item>
<item>
<L>14</L>
<c>8</c>
<s id="ref-7">File Appears to be OUT of Check Number Order, Use SCEN</s>
</item>
<item>
<L>10</L>
<c>8</c>
<s id="ref-8">PH
<BEL><BEL><GFN><FNT>RWARNING - EXISTING
OUTPUT FILE DATA WILL BE
DESTROYED<GFN><FNT>N<BEL><BEL></s>
</item>
<item>
<L>3</L>
<c>31</c>
<s id="ref-9">PH Reject Verification</s>
</item>
<item>
<L>7</L>
<c>39</c>
<s id="ref-10">PH Left</s>
</item>
<item>
<L>7</L>
<c>55</c>
<s id="ref-11">PH Right</s>
</item>
<item>
<L>9</L>
<c>17</c>
<s id="ref-12">PH Document Number:</s>
</item>
<item>
<L>11</L>
<c>20</c>
<s id="ref-13">PH Match Number:</s>
</item>
<item>
<L>13</L>
<c>21</c>
<s id="ref-14">PH Bond Number:</s>
</item>
<item>
<L>16</L>
<c>25</c>
<s id="ref-15">PH * Fields in error are starred</s>
</item>
<item>
<L>19</L>
<c>29</c>
<s id="ref-16">PH Reject pair</s>
</item>
<item>
<L>12</L>
<c>40</c>
<s id="ref-17">Confirm Abort Job</s>
</item>
<item>
<L>1</L>
<c>1</c>
<s id="ref-18">Reserved</s>
</item>
<item>
<L>1</L>
<c>1</c>
<s id="ref-19">Reserved</s>
</item>
<item>
<L>1</L>
<c>1</c>
<s id="ref-20">Reserved</s>
</item>
<item>
<L>1</L>
<c>1</c>
<s id="ref-21">Reserved</s>
</item>
<item>
<L>77</L>
<c>80</c>
<s id="ref-22"> - - ";Left and Right Cutter Mark Columns and marks (^
for Blob Delete</s>
</item>
<item>
<L>78</L>
<c>81</c>
<s id="ref-23"> - - ";Left and Right Cutter Mark Columns and mark</s>
</item>
<item>
<L>14</L>
<c>8</c>
<s id="ref-24">Print {0:D} Extra Void Pairs to Flush Last Checks through
Bowe</s>
</item>
<item>
<L>1</L>
<c>1</c>
<s id="ref-25">Reserved</s>
</item>
<item>
<L>3</L>
<c>77</c>
<s id="ref-26"> - - ";Left and Right Cutter Mark Columns and marks (^
for Blob Delete</s>
</item>
<item>
<L>8</L>
<c>30</c>
<s id="ref-27">Print Remakes</s>
</item>
<item>
<L>8</L>
<c>8</c>
<s id="ref-28">WARNING - Print Remake (check for Check Duplication)</s>
</item>
<item>
<L>8</L>
<c>30</c>
<s id="ref-29">Save Reject Queue</s>
</item>
<item>
<L>8</L>
<c>8</c>
<s id="ref-30">Print Remake Immediate (don't Queue Remake for next
Job)</s>
</item>
<item>
<L>8</L>
<c>28</c>
<s id="ref-31">Save Job Queues</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-32">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-33">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-34">Abort Job</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-35">Reject Already Queued</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-36">Job End Operations</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-37">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-38">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-39">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-40">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-41">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-42">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-43">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-44">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-45">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-46">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-47">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-48">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-49">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-50">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-51">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-52">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-53">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-54">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-55">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-56">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-57">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-58">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-59">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-60">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-61">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-62">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-63">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-64">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-65">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-66">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-67">b</s>
</item>
<item>
<L>1</L>
<c>2</c>
<s id="ref-68">b</s>
</item>
</SOAP-ENC:Array>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Thanks,
Mark
 
M

Mark Oliver

Hi,
The problem was I changed the revision # of my program, and the revision
# is 2 different places in the Soap file. Is it possible to exclude the
[assembly: AssemblyVersion("1.0.1.0")] line from AssemblyInfo.cs from the
Soap file? I don't want to have to edit all my configuration files that
load class instances every time I rev my program.

Thanks,
Mark


Mark Oliver said:
Hi,

What's causing this error when I try to Deserialize class ccpl?

Parse Error: No assembly associated with Xml Key
a:http://schemas.microsoft.com/clr/nsassem/ev/ev, Version=.1.0.0.0,%
20Culture%3Dneutral%2C%20PublicKeyToken%2Dcd70ec999356f744
formCopySystem+ccpl.

I havn't changed formCopySystem.cs in over a month; here is it's class ccpl

[Serializable]
public class ccpl
{
[Serializable]
public struct A
{
public int L,c;
public string s;
public A(int L,int c,string s)
{
this.L=L;
this.c=c;
this.s=s.Substring(1,s.Length-2);
}
}
public A [] pl;
public void setA(int i,int L,int c,string s)
{
pl=new A(L,c,s);
}
const int plSize=64;
public string ccfName;
public A this[int i]
{
get
{
return pl;
}
set
{
pl=value;
}
}
public ccpl(bool make)
{
pl=new A[plSize];
if (make)
{
for (int i=0;i<plSize;i++)
pl=new A(1,2,"abc");
ccfName="default";
}
}
} // class ccpl
here is the XML file I am trying to Deserialize:

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<a1:formCopySystem_x002B_ccpl id="ref-1"
xmlns:a1="http://schemas.microsoft.com/clr/nsassem/eV/eV, Version=1.0.
0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dcd70ec999359f744">
<pl href="#ref-3"/>
<ccfName id="ref-4">DEFAULTC.CCF</ccfName>
</a1:formCopySystem_x002B_ccpl>
<SOAP-ENC:Array id="ref-3" SOAP-ENC:arrayType="a1:formCopySystem+ccpl+A[64]"xmlns:a1="http://schemas.microsoft.com/clr/nsassem/eV/eV, Version=1.0.
0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dcd70ec999359f744">
<item>
<L>1</L>
<c>1</c>
<s id="ref-5">cpl index 0 is Reserved, substract 5 from line # for cpl
index</s>
</item>
<item>
<L>14</L>
<c>8</c>
<s id="ref-6">File Appears to be in Check Number Order, Use SCEN
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top