1

Closed

Int32 to String casting errors

description

Your last version has problems with casting Int32 to String and other way around. I tracked this down to some lines in you Comment, Forum and Topic models, in the attachment you will find a patch file to solve the issue.
 
In short, your database model uses Int-fields for MemberID, AuthorID, etc. But your code tries to put Strings into them, which throws up exceptions.
 
Thanks for this awesome project.

file attachments

Closed Nov 24, 2010 at 3:27 PM by mortenbock
Could not reproduce.

comments

LennardF1989 wrote Nov 22, 2010 at 10:39 AM

It also fixes XSLT not saving due to the casting errors.

mortenbock wrote Nov 22, 2010 at 8:24 PM

Lennard, are you using a database from version 0.0.7? The database schema changed for version 1.0, and the author id fields are now stored as strings instead of int's, to allow alternative membership providers to store something like a guid.

There is an sql script here http://uforum.codeplex.com/SourceControl/changeset/view/52608#760715 that should convert your tables to the new schema. Just make sure to backup(!!!!!) your data before using it, in case it fails.

Let me know if this works out, so I can close this issue.

LennardF1989 wrote Nov 23, 2010 at 8:55 AM

No, I just downloaded the latest zip of codeplex, installed the package and was doen with it. It did threw an error when I tried to install the database, but after inspection everything seemed to be created just fine in the database. I have never used uForum before that.

LennardF1989 wrote Nov 23, 2010 at 9:00 AM

Perhaps the DLL in the zip still holds an old version of DBInstallScripts.resx, which caused the after-commit error.

mortenbock wrote Nov 23, 2010 at 12:02 PM

Ok, thanks for reporting back, will look into that.

wrote Nov 24, 2010 at 3:27 PM

wrote Feb 13, 2013 at 11:25 PM

wrote May 16, 2013 at 4:34 AM