Hi
I am having problems regenerating my subsonic classes now i have changed my database structure. I have deleted a column called AssetName and I am now getting this error
Unable to set column value for AssetName
[Exception: Unable to set column value for AssetName]
SubSonic.AbstractRecord`1.Load(IDataReader rdr) in C:\SVN\Subsonic\SubSonic\ActiveRecord\AbstractRecord.cs:467
SubSonic.AbstractList`2.Load(IDataReader rdr) in C:\SVN\Subsonic\SubSonic\ActiveRecord\AbstractList.cs:154
SubSonic.AbstractList`2.LoadAndCloseReader(IDataReader rdr) in C:\SVN\Subsonic\SubSonic\ActiveRecord\AbstractList.cs:179
SubSonic.AbstractList`2.Load() in C:\SVN\Subsonic\SubSonic\ActiveRecord\AbstractList.cs:310
Tracking_TrackingMap.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\SureTrack2\Tracking\TrackingMap.aspx.vb:17
System.Web.UI.Control.OnLoad(EventArgs e) +80
System.Web.UI.Control.LoadRecursive() +49
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3745
|
This is what i did to try and regenerate the code
Firstly i went to my subsonic project and re-ran the subcommander tool. This didnt seem to work properly as i looked at my classes and they did not reflect the fact the column name has been deleted in the class properties. So i deleted all the generated classes and ran the sub commander again. This time the classes seemed to reflect the changes. Then i went to the website to try and update the new subsonicgenerated.dll. There was no 'update reference' which i'm used to seeing so I deleted the reference to try and add it again. Once i deleted it i could not add the reference from the projects tab and i had to add the reference by browsing to it. Then i ran my page and got the error above suggesting the assetName column is still in the code.
thanks in advance for your help
andrea