Very Frustrating.

...very.

I have been trying to upload some designs to the Library, but I continue to recieve the same problem. Anyone here know what the problem is and how to fix it?

Here's the code displayed with the error:

String or binary data would be truncated.
The statement has been terminated.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: String or binary data would be truncated.
The statement has been terminated.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): String or binary data would be truncated.
The statement has been terminated.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857418
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735030
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteScalar() +137
SDNetLib.DB.Scalar(String SQL, ArrayList Params, String ConnectString, SqlConnection& Connection) +371
MvLib.LibDB.mod_new(Object AccountID, Object Desc, Object Category, Object Version, Object MinVersion, Object Name, Object Size, Object ModFile, String ScreenFile, String FullScreenFile) +741
MvLib.editmod.ProcessAdd() +2787
MvLib.editmod.PostMod_Click(Object sender, ImageClickEventArgs e) +162
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +105
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
7,799 views 4 replies
Reply #1 Top
Looks like the file's too big to store in the library database.
Reply #2 Top
Oh, and you Stardock guys really should stop running this app in debug mode.
Reply #3 Top
The file size would not make any sense. The total size is on anly about 120kb... there are files more than twice the size of that. Any other thoughts?

Cheers.
Reply #4 Top
Generally, that error occurs when a data string for a single field is too long for the field. Like trying to put 20 characters into a field in the library that only holds 12. Or perhaps something that is 300 characters in length, but the field size is only 255 characters.