Custom Smart Date Picker Control not building in Nant

Custom Smart Date Picker Control not building in Nant

Old forum URL: forums.lhotka.net/forums/t/5589.aspx


dlabar posted on Tuesday, October 14, 2008

I have a Smart Date Time Picker that is causing issues when my app is compiling with Nant, although it works fine in Visual Studio.  This is the error I'm getting:

[resgen] c:\Perforce_WS\NextGen\main\Development\DotNet\Configurator\CMS.G2.Configurator.Organizations\InsurerEditor.resx : error RG0000: Type  could not be read from the data in line 149, position 5.  The type's internal structure may have changed.  Either implement ISerializable on the type or provide a type converter that can provide a more reliable conversion format, such as text or an array of bytes.  The conversion exception was: Unable to find assembly 'Csla, Version=3.0.3.0, Culture=neutral, PublicKeyToken=93be5fdc093e4c30'.

When I look at line 149, it is the end of the data element for the SmartDate Time value

  <data name="formationDateDateTimePicker.Value" mimetype="application/x-microsoft.net.object.binary.base64">
    <value>
        AAEAAAD/////AQAAAAAAAAAMAgAAAEdDc2xhLCBWZXJzaW9uPTMuMC4zLjAsIEN1bHR1cmU9bmV1dHJh
        bCwgUHVibGljS2V5VG9rZW49OTNiZTVmZGMwOTNlNGMzMAUBAAAADkNzbGEuU21hcnREYXRlBAAAAAVf
        ZGF0ZQxfaW5pdGlhbGl6ZWQLX2VtcHR5VmFsdWUHX2Zvcm1hdAAABAENARlDc2xhLlNtYXJ0RGF0ZStF
        bXB0eVZhbHVlAgAAAAIAAAAAAAAAAAAAAAEF/f///xlDc2xhLlNtYXJ0RGF0ZStFbXB0eVZhbHVlAQAA
        AAd2YWx1ZV9fAAgCAAAAAAAAAAoL
</value>
  </data>}

If I explicitly exclude including the .resx files in my Nant build script, it builds fine, but doesn't work since it doesn't have any resource file information.

Any ideas as to what to try to get this to build in Nant? 

 

dlabar replied on Wednesday, October 15, 2008

I've discovered more information on this error. Apparently NAnt is having issues converting the object.binary.base64. I've been able to over come this by hiding my SmartDate from the winforms Designer and deleting the value. Does anyone know how I can get this base type converted into an actual date format?

Copyright (c) Marimer LLC