Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "soonjoo"

Hello team,

After posting TokenAuth/Authenticate to log in, one of the returned parameters is userId, but it is always 0, is it supposed to be 0?

Thanks

Thank you for the help, I will try to maintain a boolean dictionary on another table

Hello team,

How do I use EventBus Domains Events and to update the entity itself? For example, I have Task Entity, and whenever Task is updated/created/delete, besides adding a record to another table, I also need to update a column on the Task entity itself. However, when I do it, it goes into an infinite loop because the update on the Task Entity will trigger another Update Event.

I am building a revision tracker so I'm using Domain Events to keep revisions of any change to the Task Entity, and I need to update the main Task Entity with the latest revision Id.

Thanks.

There would be 2 or more packages generated because there will be one for UI and another for API, and maybe public. so u need to specify it. not sure what CI u using, but you could probably do a more specific wildcard search on the package like $(System.DefaultWorkingDirectory)/**/*.Host.zip if you want to deploy the API?

Hello team,

I have implemented IPagedResultDto for a listing, and I have used it for my datatables with paging and sorting without issues.. Can I reuse the endpoint for a dropdown list? Meaning I want to retrieve all the records, instead of the default 10 per page? Thanks

I got this issue when i upgraded the framework version from 4.4 to 4.5... I fixed it by going to the database, and running this command.

DELETE FROM [AbpSettings] WHERE Name = 'Abp.Net.Mail.Smtp.Password'

then log in to the website as host and set the email password again.

The reason is because in the newer version, Abp.Net.Mail.Smtp.Password is being hashed.

Hello team,

How do I create API like the recommended: <a class="postlink" href="http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#restful">http://www.vinaysahni.com/best-practice ... pi#restful</a>

GET /tickets - Retrieves a list of tickets GET /tickets/12 - Retrieves a specific ticket POST /tickets - Creates a new ticket PUT /tickets/12 - Updates ticket #12 PATCH /tickets/12 - Partially updates ticket #12 DELETE /tickets/12 - Deletes ticket #12

I see these are the best practices, so is it possible to do it with this abp framework and how should I do it?

Thank you.

Hello, I am trying out MVC + .Net Core. I have 4 environments, Local, Development, Staging, and Production and 4 appsettings.json files that corresponds to each.

However, I cannot get it to run on my local environment. Currently when first run the project, ASPNETCORE_ENVIRONMENT is set as Development and it run fine. When I set ASPNETCORE_ENVIRONMENT to Local or delete it entirely, it cannot connect to the database.But, I can successfully call the Update-Database command on Package Manager Console, which means it can connect to the database manually

I have connection strings in all 4 appsettings.json files, appsettings.json and appsettings.Development.json is using the same connection string for testing purposes.

sometimes i get this:

System.InvalidOperationException occurred HResult=0x80131509 Message=Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. Source=<Cannot evaluate the exception source> StackTrace: 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.TryOpen(TaskCompletionSource1 retry) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransaction(IsolationLevel isolationLevel) at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.<>c__DisplayClass18_0.<BeginTransaction>b__0(DatabaseFacade database) at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.<>c__DisplayClass12_02.<Execute>b__0(DbContext c, TState s) at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded) at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, Func2 operation, Func2 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, TState state, Func2 operation) at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.BeginTransaction(DatabaseFacade databaseFacade, IsolationLevel isolationLevel) at Abp.EntityFrameworkCore.Uow.DbContextEfCoreTransactionStrategy.CreateDbContext[TDbContext](String connectionString, IDbContextResolver dbContextResolver) at Abp.EntityFrameworkCore.Uow.EfCoreUnitOfWork.GetOrCreateDbContext[TDbContext](Nullable`1 multiTenancySide)

sometimes i get this:

System.Data.SqlClient.SqlException occurred HResult=0x80131904 Message=A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Source=Core .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) 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.TryOpen(TaskCompletionSource1 retry) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransaction(IsolationLevel isolationLevel) at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.&lt;&gt;c__DisplayClass18_0.&lt;BeginTransaction&gt;b__0(DatabaseFacade database) at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.&lt;&gt;c__DisplayClass12_02.

Inner Exception 1: Win32Exception: The network path was not found

Hi team, How do I auto update the database to the latest migration files after deploying?

Currently, I have local, development, staging, and production environments each with their own databases. When I deploy to these, i need to manually change the appsettings.json to the target environment, then run the update-database command. I need to do this even when i have appsettings.Development.json, appsettings.Staging.json and appsettings.Production.json set up.

I think it would be a nice feature to add in so it auto updates the database to the latest automatically.

<cite>DFIELEC: </cite> Thank you very much aaroon, it works.

Now, how to add multiple attributes?

var children = await _childRepository
.GetAllIncluding(c => c.FirstParent)
.Include(c => c.SecondParent)
.ToListAsync();
Showing 31 to 40 of 59 entries