Base solution for your next web application

Activities of "benjamim"

I had put * to work on all domains, but need to put domains

wrong!!!

"App": { "ServerRootAddress": "http://localhost:9901/", "ClientRootAddress": "http://localhost:4200/", "CorsOrigins": "*" }

Right!!

"App": { "ServerRootAddress": "http://localhost:9901/", "ClientRootAddress": "http://localhost:4200/", "CorsOrigins": "http://domain1.com,http://domain2.com" }

<cite>aaron: </cite> Have you configured DbContextEfTransactionStrategy? https://aspnetboilerplate.com/Pages/Documents/EntityFramework-Integration#transaction-management

No, how do I do ?

I need insert into another database, with another connection string, like this print

<a class="postlink" href="https://goo.gl/CLeC5N">https://goo.gl/CLeC5N</a>

<cite>aaron: </cite> Show the error log in *.Web.Mvc\App_Data\Logs instead of what you think the error is.

ERROR 2017-11-09 14:41:04,062 [18 ] nHandling.AbpApiExceptionFilterAttribute - The underlying provider failed on Open. System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Transactions.TransactionManagerCommunicationException: Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC for network access in the security configuration for MSDTC using the Component Services Administrative tool. ---> System.Runtime.InteropServices.COMException: The transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D024) at System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim) at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken) --- End of inner exception stack trace --- at System.Transactions.Oletx.OletxTransactionManager.ProxyException(COMException comException) at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken) at System.Transactions.TransactionStatePSPEOperation.PSPEPromote(InternalTransaction tx) at System.Transactions.TransactionStateDelegatedBase.EnterState(InternalTransaction tx) at System.Transactions.EnlistableStates.Promote(InternalTransaction tx) at System.Transactions.Transaction.Promote() at System.Transactions.TransactionInterop.ConvertToOletxTransaction(Transaction transaction) at System.Transactions.TransactionInterop.GetExportCookie(Transaction transaction, Byte[] whereabouts) at System.Data.SqlClient.SqlInternalConnection.GetTransactionCookie(Transaction transaction, Byte[] whereAbouts) at System.Data.SqlClient.SqlInternalConnection.EnlistNonNull(Transaction tx) at System.Data.SqlClient.SqlInternalConnection.Enlist(Transaction tx) at System.Data.SqlClient.SqlInternalConnectionTds.Activate(Transaction transaction) at System.Data.ProviderBase.DbConnectionInternal.ActivateConnection(Transaction transaction) at System.Data.ProviderBase.DbConnectionPool.PrepareConnection(DbConnection owningObject, DbConnectionInternal obj, Transaction transaction) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource1 retry) at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 retry) at System.Data.SqlClient.SqlConnection.OpenAsync(CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass4.<<ExecuteAsync>b__3>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__91.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Data.Entity.Core.EntityClient.EntityConnection.<OpenAsync>d__8.MoveNext() --- End of inner exception stack trace --- at System.Data.Entity.Core.EntityClient.EntityConnection.<OpenAsync>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Data.Entity.Core.Objects.ObjectContext.<EnsureConnectionAsync>d__9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Data.Entity.Core.Objects.ObjectContext.<ExecuteInTransactionAsync>d__3d1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Data.Entity.Core.Objects.ObjectContext.

<cite>aaron: </cite> The video might help, but it just says InternalServerError.

Can you show the error log in *.Web.Mvc\App_Data\Logs?

I think it may be the format of the call. I need to call a static class to do an insert into another database using ADO, I think the problem is being in another context. How do I do a synch insert?

<cite>aaron: </cite> Can you show the error?

Print error website: <a class="postlink" href="https://drive.google.com/file/d/1_a5yegOD2_LUAOStifZyh43VhWXnX6hq/view">https://drive.google.com/file/d/1_a5yeg ... nX6hq/view</a>

<cite>aaron: </cite> Can you show the error?

See this video: <a class="postlink" href="https://drive.google.com/file/d/1MpGXStLw8pexkT4rttOgSWl7e57O55U8/view">https://drive.google.com/file/d/1MpGXSt ... O55U8/view</a>

Yes, but dont set primary node

.AddItem(new MenuItemDefinition(
                    "Frontend.Solucao1",
                    new FixedLocalizableString("Solução")
                    ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao2",
                                    new FixedLocalizableString("Guarda Móveis"),
                                    url: "/self-storage/guarda-moveis")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao3",
                                    new FixedLocalizableString("Guarda Documentos"),
                                    url: "/self-storage/guarda-documentos")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao4",
                                    new FixedLocalizableString("Guarda Estoque"),
                                    url: "/self-storage/guarda-estoque-para-empresas")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao5",
                                    new FixedLocalizableString("Guarda Volumes"),
                                    url: "/self-storage/guarda-volumes")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao6",
                                    new FixedLocalizableString("Depósito Privativo"),
                                    url: "/self-storage/deposito-privativo")
                                ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao7",
                                    new FixedLocalizableString("Galpões Modulares"),
                                    url: "/self-storage/galpoes-modulares")
                                 ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao8",
                                    new FixedLocalizableString("Guarda Volumes"),
                                    url: "/self-storage/guarde-objetos-reformas-ampliacoes")
                                 ).AddItem(new MenuItemDefinition(
                                    "Frontend.Solucao9",
                                    new FixedLocalizableString("Guarda Volumes 2"),
                                    url: "/self-storage/startups-pme")
                                 ))

I can create with a <a class="postlink" href="http://www.mydomain.com/br/url-to-Brazil">www.mydomain.com/br/url-to-Brazil</a> and <a class="postlink" href="http://www.mydomain.com/en/url-USA">www.mydomain.com/en/url-USA</a> for multi language? to have the same content in different languages?

Showing 1 to 10 of 14 entries