Error downloading ordered digital assets
Posted: Fri Jul 10, 2009 6:39 pm
I receive the following SQL error when downloading ordered digital assets:
String or binary data would be truncated. The statement has been terminated.
The stack trace is:
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteScalar() at Microsoft.Practices.EnterpriseLibrary.Data.Database.DoExecuteScalar(DbCommand command) at Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteScalar(DbCommand command) at CommerceBuilder.Data.Database.ExecuteScalar(DbCommand command) at CommerceBuilder.DigitalDelivery.Download.Save() at CommerceBuilder.Common.PersistentCollection`1.Save() at CommerceBuilder.Orders.OrderItemDigitalGood.SaveChildren() at CommerceBuilder.Orders.OrderItemDigitalGood.Save() at CommerceBuilder.Orders.OrderItemDigitalGood.RecordDownload(String remoteIP, String userAgent, String referrer) at Download.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Creating/setting up the store/digital assets and product all works fine. Ordering the product, capturing the payment, and fulfilling the download license all works. The customer can log into their account/recent order, and see the ordered digital goods. But the moment you click the link to do the download, the server error occurs, and the download cannot start. This occurs with digital products of any size, even ones 1k in size. This is on a test store on our internal evaluation network. Any help would be appreciated.
This is on Windows 2008 Enterprise, SQL Server 2008 Standard Edition. Network Service, which the online store is running under, has ddladmin, securityadmin, accessadmin, datareader, datawriter, public roles in the database. Web server and SQL server are on the same machine. Client is a remote Windows XP machine with IE8.
Claudio Friederich
CICClaudio@aol.com
String or binary data would be truncated. The statement has been terminated.
The stack trace is:
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteScalar() at Microsoft.Practices.EnterpriseLibrary.Data.Database.DoExecuteScalar(DbCommand command) at Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteScalar(DbCommand command) at CommerceBuilder.Data.Database.ExecuteScalar(DbCommand command) at CommerceBuilder.DigitalDelivery.Download.Save() at CommerceBuilder.Common.PersistentCollection`1.Save() at CommerceBuilder.Orders.OrderItemDigitalGood.SaveChildren() at CommerceBuilder.Orders.OrderItemDigitalGood.Save() at CommerceBuilder.Orders.OrderItemDigitalGood.RecordDownload(String remoteIP, String userAgent, String referrer) at Download.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Creating/setting up the store/digital assets and product all works fine. Ordering the product, capturing the payment, and fulfilling the download license all works. The customer can log into their account/recent order, and see the ordered digital goods. But the moment you click the link to do the download, the server error occurs, and the download cannot start. This occurs with digital products of any size, even ones 1k in size. This is on a test store on our internal evaluation network. Any help would be appreciated.
This is on Windows 2008 Enterprise, SQL Server 2008 Standard Edition. Network Service, which the online store is running under, has ddladmin, securityadmin, accessadmin, datareader, datawriter, public roles in the database. Web server and SQL server are on the same machine. Client is a remote Windows XP machine with IE8.
Claudio Friederich
CICClaudio@aol.com