I have just created a website for my company and chosen to install the DotNetNuke Framework into the site.
My problem comes when I try to deploy Extentions. I have just bought the "Advanced Business Directory" and "Live Blog" extensions and neither will install correctly.
When I try to deploy the "Live Blog" Extensions I get the following error:
"A critical error has occurred. Could not find a part of the path 'C:\DWASFiles\Sites\coworking-foundation\VirtualDirectory0\site\wwwroot\Install\Module\'."
When I try to deploy the "Advanced Business Directory" I get the following top level error:
Error loading files from temporary folder - see below
With the details being:
StartJob Starting Installation
Info Starting Installation - AdvancedBusinessDirectory
Info Starting Installation - Script
Info Begin Sql execution
Info Creating backup of previous version - Providers\DataProviders\SqlDataProvider\00.00.01.SqlDataProvider
Info Created - Providers\DataProviders\SqlDataProvider\00.00.01.SqlDataProvider
Info Executing 00.00.01.SqlDataProvider
Info Start Sql execution: 00.00.01.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: 'NOT FOR REPLICATION' is not supported in this version of SQL Server. 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.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) /************************************************************/ /***** SqlDataProvider *****/ /***** *****/ /***** *****/ /***** Note: To manually execute this script you must *****/ /***** perform a search and replace operation *****/ /***** for dbo. and *****/ /***** *****/ /************************************************************/ /*==============================================================*/ /* Table: dbo.ZLDNN_Business */ /*==============================================================*/ if not exists (select * from dbo.sysobjects where id = object_id(N'dbo.[ZLDNN_Business]') and OBJECTPROPERTY(id, N'IsTable') = 1) BEGIN create table dbo.ZLDNN_Business ( BusinessID int not null IDENTITY(1, 1), ModuleID int null, Name nvarchar(200) null, Address nvarchar(200) null, Description nvarchar(4000) null, Website nvarchar(200) null, Email nvarchar(100) null, Phone nvarchar(100) null, Fax nvarchar(100) null, Postal nvarchar(50) null, Logo nvarchar(200) null, Unit nvarchar(100) null, Street nvarchar(200) null, City nvarchar(100) null, Region nvarchar(100) null, Country nvarchar(100) null, Lat nvarchar(100) null, Lng nvarchar(100) null, IsApproved bit null, IsFeatured bit null, OwnerUserID int null, CreatedDate datetime null, UpdatedDate datetime null, ExpiredDate datetime null, ViewCount int null, Keywords nvarchar(200) null, ) ALTER TABLE dbo.[ZLDNN_Business] ADD CONSTRAINT [PK_ZLDNN_Business] PRIMARY KEY CLUSTERED ([BusinessID]) CREATE NONCLUSTERED INDEX [IX_ZLDNN_Business] ON dbo.[ZLDNN_Business] ([ModuleID]) ALTER TABLE dbo.[ZLDNN_Business] WITH NOCHECK ADD CONSTRAINT [FK_ZLDNN_Business_Modules] FOREIGN KEY ([ModuleID]) REFERENCES dbo.[Modules] ([ModuleID]) ON DELETE CASCADE NOT FOR REPLICATION END System.Data.SqlClient.SqlException: 'NOT FOR REPLICATION' is not supported in this version of SQL Server. 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.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) /*==============================================================*/ /* Table: dbo.ZLDNN_BusinessCategory */ /*==============================================================*/ if not exists (select * from dbo.sysobjects where id = object_id(N'dbo.[ZLDNN_BusinessCategory]') and OBJECTPROPERTY(id, N'IsTable') = 1) BEGIN create table dbo.ZLDNN_BusinessCategory ( CategoryID int not null IDENTITY(1, 1), ModuleID int null, Title nvarchar(200) null, Description nvarchar(1000) null, ImagePath nvarchar(500) null, ParentID int null, Level int null, ViewOrder int null, ) ALTER TABLE dbo.[ZLDNN_BusinessCategory] ADD CONSTRAINT [PK_ZLDNN_BusinessCategory] PRIMARY KEY CLUSTERED ([CategoryID]) CREATE NONCLUSTERED INDEX [IX_ZLDNN_BusinessCategory] ON dbo.[ZLDNN_BusinessCategory] ([ModuleID]) ALTER TABLE dbo.[ZLDNN_BusinessCategory] WITH NOCHECK ADD CONSTRAINT [FK_ZLDNN_BusinessCategory_Modules] FOREIGN KEY ([ModuleID]) REFERENCES dbo.[Modules] ([ModuleID]) ON DELETE CASCADE NOT FOR REPLICATION END System.Data.SqlClient.SqlException: 'NOT FOR REPLICATION' is not supported in this version of SQL Server. 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.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) /*==============================================================*/ /* Table: dbo.ZLDNN_BusinessAssignedCategory */ /*==============================================================*/ if not exists (select * from dbo.sysobjects where id = object_id(N'dbo.[ZLDNN_BusinessAssignedCategory]') and OBJECTPROPERTY(id, N'IsTable') = 1) BEGIN create table dbo.ZLDNN_BusinessAssignedCategory ( BusinessAssignedCategoryID int not null IDENTITY(1, 1), CategoryID int not null, BusinessID int not null, ) ALTER TABLE dbo.[ZLDNN_BusinessAssignedCategory] ADD CONSTRAINT [PK_ZLDNN_BusinessAssignedCategory] PRIMARY KEY CLUSTERED ([BusinessAssignedCategoryID]) CREATE NONCLUSTERED INDEX [IX_ZLDNN_BusinessAssignedCategory] ON dbo.[ZLDNN_BusinessAssignedCategory] ([BusinessAssignedCategoryID]) ALTER TABLE dbo.[ZLDNN_BusinessAssignedCategory] WITH NOCHECK ADD CONSTRAINT [FK_ZLDNN_BusinessAssignedCategory_ZLDNN_BusinessCategory] FOREIGN KEY ([CategoryID]) REFERENCES dbo.[ZLDNN_BusinessCategory] ([CategoryID]) ON DELETE NO ACTION ALTER TABLE dbo.[ZLDNN_BusinessAssignedCategory] WITH NOCHECK ADD CONSTRAINT [FK_ZLDNN_BusinessAssignedCategory_ZLDNN_Business] FOREIGN KEY ([BusinessID]) REFERENCES dbo.[ZLDNN_Business] ([BusinessID]) ON DELETE CASCADE NOT FOR REPLICATION END System.Data.SqlClient.SqlException: 'NOT FOR REPLICATION' is not supported in this version of SQL Server. 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.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)
There is more in the SQL error, but it's much the same for about 10 different modules in the same package.
Does anyone have these extensions working, or any idea about how I can proceed with installing them?
Thanks
Mark
Live Blog is Azure compatible. Make sure you're installing the latest version. http://www.mandeeps.com/downloads.aspx
Related
I have create a container with docker:
mssql is in docker with status up
> docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=Passw0rd!12" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
I am trying to connect to SQL server on my network with Azure Data Studio, and I am getting error:
Login failed for user 'sa'.
Details for the error:
Microsoft.Data.SqlClient.SqlException (0x80131904): Login failed for user 'sa'.
at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool)
at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at Microsoft.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at Microsoft.Data.ProviderBase.DbConnectionFactory.<>c__DisplayClass48_0.<CreateReplaceConnectionContinuation>b__0(Task`1 _)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at Microsoft.SqlTools.ServiceLayer.Connection.ReliableConnection.ReliableSqlConnection.<>c__DisplayClass30_0.<<OpenAsync>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.SqlTools.ManagedBatchParser\ReliableConnection\ReliableSqlConnection.cs:line 312
--- End of stack trace from previous location ---
at Microsoft.SqlTools.ServiceLayer.Connection.ConnectionService.TryOpenConnection(ConnectionInfo connectionInfo, ConnectParams connectionParams) in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\Connection\ConnectionService.cs:line 666
ClientConnectionId:7f82dc23-5d48-4820-9f58-4ccf08416472
Error Number:18456,State:1,Class:14
I have asked and tried to restart the container. I also type the pwd again multiple times and even try to create new container in Docker, but failed.
enter image description here
please help...and thank you.
Try: enter the pwd again and again - create new container - restart container
Expected: it will sucessfully login to localhost server
Result: still failed to log in
The first step is to see what the error logs are in the container,
docker logs [your container id]
If you see an error message like,
Error: The evaluation period has expired.
/opt/mssql/bin/sqlservr: PAL initialization failed. Error: 104
Try to pull the docker image again,
docker pull mcr.microsoft.com/mssql/server:2019-latest
I'm getting an error when I try to release an Invoice from Invoices and Memos screen (AR301000). The invoice is ready to be released, I even release the invoice manually and don't get any error.
This is the error:
System.ServiceModel.FaultException: 'PX.Data.PXInvalidOperationException: Operation failed ---> System.Data.SqlClient.SqlException: The multi-part identifier "LocationExtAddress.LocationBAccountID" could not be bound.
The multi-part identifier "LocationExtAddress.LocationCD" could not be bound.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
This is my code in VS:
using (DefaultSoapClient client = new DefaultSoapClient())
{
//Login part
//Invoice data
string invoiceType = "Invoice";
string invoiceNbr = "T3-00000018";
//Find the invoice to be released
ARInvoice invoiceToFind = new ARInvoice
{
Type = new StringSearch { Value = invoiceType },
ReferenceNbr = new StringSearch { Value = invoiceNbr },
Hold = new BooleanValue { Value = false }
};
ARInvoice invoice = (ARInvoice)client.Get(invoiceToFind);
//Release invoice
InvokeResult invokeResult = client.Invoke(invoice, new ReleaseARInvoice());
//Monitor the status of the process
ProcessResult processResult = LongRunProcessor.GetProcessResult(client, invokeResult);
//Get the confirmed shipment
invoice = (ARInvoice)client.Get(new ARInvoice { ID = processResult.EntityId });
//Display the summary of the invoice
txtType.Text = invoice.Type.Value;
txtNumber.Text = invoice.ReferenceNbr.Value;
txtStatus.Text = invoice.Status.Value;
client.Logout();
}
Specifically I get that error in "client.Invoke".
It was working then it fails all of a sudden. Try a few parsing but no luck.
Error Code: SqlException
Message Conversion failed when converting from a character string to uniqueidentifier.
Stack Trace
[SalesOrderDetailsGet: 14/08/2015 7:59:29 AM]: [REQUEST: {SalesOrderId:676b44dcb0c245a5a3191cda194b3267}] System.Data.SqlClient.SqlException (0x80131904): Conversion failed when converting from a character string to uniqueidentifier. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at ServiceStack.OrmLite.OrmLiteUtils.ConvertTo[T](IDataReader dataReader, IOrmLiteDialectProvider dialectProvider) at ServiceStack.OrmLite.OrmLiteResultsFilterExtensions.ConvertTo[T](IDbCommand dbCmd, String sql) at ServiceStack.OrmLite.OrmLiteReadCommandExtensions.SingleById[T](IDbCommand dbCmd, Object value) at ServiceStack.OrmLite.OrmLiteReadApi.<>c__DisplayClass3c1.<SingleById>b__3b(IDbCommand dbCmd) at ServiceStack.OrmLite.OrmLiteExecFilter.Exec[T](IDbConnection dbConn, Func2 filter) at ServiceStack.OrmLite.OrmLiteReadExpressionsApi.Exec[T](IDbConnection dbConn, Func2 filter) at ServiceStack.OrmLite.OrmLiteReadApi.SingleById[T](IDbConnection dbConn, Object idValue) at BookWS.ServiceLogic.Sales.SalesOrderDataProcess.GetSalesOrderById(Guid id) in C:\Users\Carl\Documents\Visual Studio 2013\Projects\BookWS\BookWS\BookWS.ServiceLogic\Sales\SalesOrderDataProcess.cs:line 38 at BookWS.ServiceInterface.SalesOrderServices.Get(SalesOrderDetailsGet request) in C:\Users\Carl\Documents\Visual Studio 2013\Projects\BookWS\BookWS\BookWS.ServiceInterface\Sales\SalesOrderServices.cs:line 40 at lambda_method(Closure , Object , Object ) at ServiceStack.Host.ServiceRunner1.Execute(IRequest request, Object instance, TRequest requestDto) ClientConnectionId:0a6a1c79-14e9-4575-9fab-21c542508a78 Error Number:8169,State:2,Class:16
GET:
public Object Get(SalesOrderDetailsGet request)
{
SalesOrderDataProcess sODP = new SalesOrderDataProcess(Db);
SalesOrder salesOrderTemp = sODP.GetSalesOrderById(request.SalesOrderId);
Data layer:
public SalesOrder GetSalesOrderById(Guid id)
{
return _dbConnection.SingleById<SalesOrder>(id);
}
The running stopped at above block's
return _dbConnection.SingleById<SalesOrder>(id);
Thank you very much.
This is a common SQL Server exception indicating that it couldn't convert the string value into a uniqueidentifier (i.e. GUID).
Go back and ensure all data in your Table has a value for the uniqueidentifier field and that the value is a valid GUID.
Every time I swap my deployments between Staging and Production, I got this kind of error :
[Wed Oct 09 18:43:51.9519 +00:00 2013] [Error] [Zappiti.BaseApi] An
error occurred while updating the entries. See the inner exception for
details.
System.Data.Entity.Infrastructure.DbUpdateException: An error
occurred while updating the entries. See the inner exception for
details. ---> System.Data.UpdateException: An error occurred while
updating the entries. See the inner exception for details. --->
System.Data.SqlClient.SqlException: A transport-level error has
occurred when receiving results from the server. (provider: Session
Provider, error: 19 - Physical connection is not usable)
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
Boolean breakConnection, Action`1 wrapCloseInAction)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at
System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject
stateObj, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior,
SqlCommand cmdHandler, SqlDataReader dataStream,
BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
stateObj, Boolean& dataReady)
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, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
method, TaskCompletionSource`1 completion, Int32 timeout, Task& task,
Boolean asyncWrite)
at
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1
completion, String methodName, Boolean sendToPipe, Int32 timeout,
Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at
System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator
translator, EntityConnection connection, Dictionary2
identifierValues, List1 generatedValues)
at
System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager
stateManager, IEntityAdapter adapter)
--- End of inner exception stack trace ---
at
System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager
stateManager, IEntityAdapter adapter)
at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)
at System.Data.Entity.Internal.InternalContext.SaveChanges()
--- End of inner exception stack trace ---
at System.Data.Entity.Internal.InternalContext.SaveChanges()
at Zappiti.BaseApi.PutVideo(PutVideo putVideo, Guid userId, String
queueName, Boolean isBeta)
I deploy my package using a standard Build Definition from TFS.
Is there a way to avoid these connection errors ?
I just found this feature in the changelog of EF 6.x :
http://msdn.microsoft.com/en-us/data/dn456835
I'll take a try.
Stay tuned.
I use Scaffold for manage my tables data, using subsonic 2.1.
just for one table I got this error message when try to view table data, i recreate related classes several times but still and just for scaffold I got this error, I can use table class and insert / edit data myself.
In my table I have both nvarchar and bigint fields.
What's wrong?
Error converting data type nvarchar to bigint.
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: Error converting data type nvarchar to bigint.
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): Error converting data type nvarchar to bigint.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1948826
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4844747
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
System.Data.SqlClient.SqlDataReader.HasMoreRows() +157
System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +197
System.Data.SqlClient.SqlDataReader.Read() +9
System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) +78
System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +164
System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +353
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +164
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +94
SubSonic.SqlDataProvider.GetDataSet(QueryCommand qry) in C:\svn\subsonicproject\trunk\SubSonic\DataProviders\SqlDataProvider.cs:428
SubSonic.DataService.GetDataSet(QueryCommand cmd) in C:\svn\subsonicproject\trunk\SubSonic\DataProviders\DataService.cs:523
SubSonic.SqlQuery.ExecuteJoinedDataSet() in C:\svn\subsonicproject\trunk\SubSonic\SqlQuery\SqlQuery.cs:1449
SubSonic.Scaffold.BindGrid(String orderBy) in C:\svn\subsonicproject\trunk\SubSonic\Controls\Scaffold.cs:1285
SubSonic.Scaffold.CreateChildControls() in C:\svn\subsonicproject\trunk\SubSonic\Controls\Scaffold.cs:706
SubSonic.Scaffold.ddlTables_SelectedIndexChanged(Object sender, EventArgs e) in C:\svn\subsonicproject\trunk\SubSonic\Controls\Scaffold.cs:750
System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +111
System.Web.UI.WebControls.DropDownList.RaisePostDataChangedEvent() +134
System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +10
System.Web.UI.Page.RaiseChangedEvents() +165
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
CREATE TABLE [dbo].[Tbl_Document]( [Code] [bigint] IDENTITY(111111111,1) NOT NULL, [DocCode] [nvarchar](20) COLLATE NULL, [FkLoginID] [nvarchar](20) COLLATE NOT NULL, [CurrentUser] [nvarchar](20) COLLATE NOT NULL, [FkStatus] [smallint] NOT NULL, [TypeWorkFlow] [nvarchar](50) COLLATE NOT NULL, [Step] [int] NOT NULL, [Note] [ntext] COLLATE NULL, [FKProvince] [smallint] NOT NULL, [NORahgiry] [nvarchar](20) COLLATE Arabic_CI_AS NULL, [IsLock] [bit] NOT NULL, [IsArchive] [bit] NOT NULL, [FKTolidUnit] [nvarchar](20) COLLATE Arabic_CI_AS NOT NULL, [OldUnitCode] [nvarchar](50) COLLATE Arabic_CI_AS NULL, CONSTRAINT [PK_Tbl_Document_1] PRIMARY KEY CLUSTERED ( [Code] ASC)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]GO
System.Data.SqlClient.SqlException: 'Error converting data type nvarchar to bigint.'
in MVC core
#sql #mvc #datatype