The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

System.Xml.Serialization missing on ProxyStubs under Generated.

Last post 11-12-2008, 10:24 AM by David.Parsons. 11 replies.
Sort Posts: Previous Next
  •  08-20-2008, 1:56 PM 10846

    System.Xml.Serialization missing on ProxyStubs under Generated.

    When using Generated templates, all of my classes are missing the "System.Xml.Serialization" using statement. Is there any way to correct this? Each time I rebuild the generated files, I have to add it to about 40 files, so it's a bit of a pain!

    Thanks.

     

    Edit: I am using MyGeneration 1.2 and ES 2008.


    Current ES Projects:
    iVirtualDocket - Remote engineer tracking and job assignments
    HIS - Home insurance scripting system
  •  08-20-2008, 2:41 PM 10847 in reply to 10846

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    That strange, it's never been reported before? In fact, 2+ years so far and nobody's ever mentioned this. What Options are you using and are you using VB or C#.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  08-20-2008, 2:54 PM 10848 in reply to 10847

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    Do I win a prize?

    I am using C#.Net, Vista DB 3.3, MyGeneration 1.2, Visual Studios 2008, Windows Vista 64.

    I have 3 template instances:

    • Custom.Tables
    • Generated.Tables
    • Proxy.Tables

    The error occurs in the Generated.Tables tab.

    I have the following advanced options selected:

    • Generate a single file
    • Should ignore schema
    • Should ignore catalog
    • Generate hierarchial model
    • Target the compact framework

    I have the following options selected under proxy:

    • Generate the proxy/stub
    • Include Added/deleted/modified, etc

    I have already generated the template instance once without the proxy/stub - could that be the issue? I then added the check boxes on the proxy options and I get that missing using statement.

    I'm not sure how the template generation works, but if you need me to do any further investigation, just say and I'll do my best to help. I also had this issue on a completely different project (with the same settings and program configuration) on a different computer in a different office, but that only has 10 tables, so it wasn't much of an issue.


    Current ES Projects:
    iVirtualDocket - Remote engineer tracking and job assignments
    HIS - Home insurance scripting system
  •  08-20-2008, 3:03 PM 10849 in reply to 10848

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    I've just created a new template instance of Generated.Tables (called Test.Tables) with the proxy stub options selected and it is still missing the reference. So, bang goes my theory - I'll leave it in your capable hands.


    Current ES Projects:
    iVirtualDocket - Remote engineer tracking and job assignments
    HIS - Home insurance scripting system
  •  08-20-2008, 3:05 PM 10850 in reply to 10849

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    Okay, I'll test it out tonight, could be the template restructuring we did in 2008 in order to support CodeSmith lost something.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  08-20-2008, 3:10 PM 10851 in reply to 10850

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    Much appreciated Mike, you're a life-saver! I shall wait with baited breath.

    Current ES Projects:
    iVirtualDocket - Remote engineer tracking and job assignments
    HIS - Home insurance scripting system
  •  08-20-2008, 3:21 PM 10852 in reply to 10850

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    It's the Compact Framework checkbox. About line 233 of "Entityspaces - esCollection (C#)"

    Code:
    <%if(!TargetTheCompactFramework){ %>using System.Xml.Serialization;<%}%>

    David Neal Parsons
    www.entityspaces.net
  •  08-20-2008, 3:22 PM 10853 in reply to 10852

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    So, is that something I need to fix, or is it something you're going to fix?

    Current ES Projects:
    iVirtualDocket - Remote engineer tracking and job assignments
    HIS - Home insurance scripting system
  •  08-20-2008, 8:15 PM 10856 in reply to 10853

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    Yes, we are going to fix this, it will be fixed in our next maintenance release. David is right, edit that template and remove the <%if ...%> and trailing <% %> and the next time you need to regenerate you wont have that problem.  Ctrl + L will turn the line numbers on in MyGeneration.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  08-21-2008, 1:04 AM 10859 in reply to 10856

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    Great news. I've altered the template and the issue is now sorted.

    Current ES Projects:
    iVirtualDocket - Remote engineer tracking and job assignments
    HIS - Home insurance scripting system
  •  11-12-2008, 5:47 AM 12398 in reply to 10859

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    This error is still present!
    Current ES Projects:
    iVirtualDocket - Remote engineer tracking and job assignments
    HIS - Home insurance scripting system
  •  11-12-2008, 10:24 AM 12412 in reply to 12398

    Re: System.Xml.Serialization missing on ProxyStubs under Generated.

    Unfortunately, we could not fix that in our templates by simply deleting the CF check. It would have broken older NetCF versions that do not support XmlSerialization. For us, it means another checkbox in the UI, and an additional check in the templates. That will have to come in ES2009.
    David Neal Parsons
    www.entityspaces.net
View as RSS news feed in XML