Base solution for your next web application

Activities of "nenjamio"

Hi guys.

I am having errors running the application in my development environment. I downloaded the ASP.NET Core MVC & jQuery version and I followed the installation guide, but when executing the command "npm run create-bundles" the following error appears:

C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc>npm run create-bundles

[email protected] create-bundles C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc gulp buildDev

[11:35:27] Using gulpfile ~\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc\gulpfile.js [11:35:27] Starting 'buildDev'... [11:35:27] 'buildDev' errored after 276 ms [11:35:27] Error: Invalid glob argument: at Gulp.src (C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc\node_modules\vinyl-fs\lib\src\index.js:20:11) at createScriptBundle (C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc\gulpfile.js:146:23) at createScriptBundles (C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc\gulpfile.js:135:13) at buildDev (C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc\gulpfile.js:277:23) at taskWrapper (C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc\node_modules\undertaker\lib\set-task.js:13:15) at bound (domain.js:415:14) at runBound (domain.js:428:12) at asyncRunner (C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc\node_modules\async-done\index.js:55:18) at processTicksAndRejections (internal/process/task_queues.js:75:11) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] create-bundles: gulp buildDev npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] create-bundles script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\carlo\AppData\Roaming\npm-cache_logs\2019-07-29T14_35_27_446Z-debug.log

The log is:

0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'create-bundles' 1 verbose cli ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'precreate-bundles', 'create-bundles', 'postcreate-bundles' ] 5 info lifecycle [email protected]~precreate-bundles: [email protected] 6 info lifecycle [email protected]~create-bundles: [email protected] 7 verbose lifecycle [email protected]~create-bundles: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~create-bundles: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc\node_modules.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn;C:\Program Files\Microsoft SQL Server\140\Tools\Binn;C:\Program Files\Microsoft SQL Server\140\DTS\Binn;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\nodejs;C:\Program Files (x86)\Yarn\bin;C:\Users\carlo\AppData\Local\Microsoft\WindowsApps;C:\Users\carlo\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\carlo\AppData\Roaming\npm;C:\Users\carlo\AppData\Local\Yarn\bin 9 verbose lifecycle [email protected]~create-bundles: CWD: C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc 10 silly lifecycle [email protected]~create-bundles: Args: [ '/d /s /c', 'gulp buildDev' ] 11 silly lifecycle [email protected]~create-bundles: Returned: code: 1 signal: null 12 info lifecycle [email protected]~create-bundles: Failed to exec create-bundles script 13 verbose stack Error: [email protected] create-bundles: gulp buildDev 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:203:13) 13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:203:13) 13 verbose stack at maybeClose (internal/child_process.js:1021:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) 14 verbose pkgid [email protected] 15 verbose cwd C:\Users\carlo\Dropbox (Personal)\Work\SmartReportingDemo\src\SmartReportingDemo.Web.Mvc 16 verbose Windows_NT 10.0.17763 17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "create-bundles" 18 verbose node v12.7.0 19 verbose npm v6.10.0 20 error code ELIFECYCLE 21 error errno 1 22 error [email protected] create-bundles: gulp buildDev 22 error Exit status 1 23 error Failed at the [email protected] create-bundles script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

Can you help me please?

Best regards,

Nicolas.

only create views, components and add reference into providers array inside service-proxy-modules.ts

but NO CODE is generated at the service-proxies-ts file.

And this seems to be missing based on the web tutorial...

WHAT IF NEED to create a collection inside my dto?

Auto Code Generation from existing database tables,...

same question here, go from db to audited aspnet zero framework .... (back and front)

can you send us a sample code to add collections coming from another entity (one to many reletaion in the DB)

after the execution of a the basic rapid tool crud extension....

quick sample


name, surname, age

and then extend same class by adding a telephone collection.


name, surname, age, PHONES[]

Question

whats the procedure in order to replace the logo with a custom one?

i get failed request when calling AbpUserConfiguration-getall or GetCurrentLoginInformations.....sometimes if a refresh the page like 10 ten time, it get fixed,

when running on a local computer (localhost) this never happen.

this is really frustating, the client is expecting the final release and i dont know what to say,

please, help me out here.

i can send you the code if it helps

Hi team, we have a problem on setInterval() implementation. We use this function from the frontend in order to update a number every 30 seconds. This makes that when the core connects to database, the sql connections were taken and not released at time.

I think it could be the async function, because the sql connection is opened and closed correctly. Its a very simple function but we canĀ“t detect why this is happenning.

Could you help me about this?

Example: FRONTEND TS

this.balanceTimer = setInterval(() => {
            this._serviceProxy.updateNumber(this.appSession.user.id).subscribe((aux) =>
            {
            }); 
        }, 30000); 

CORE

Task<decimal> UpdateNumber(int userId);

public async Task<decimal> UpdateNumber(int userId)
        {
            decimal aux = 0;
            using (var con = new SqlConnection(_connString))
            using (var cmd = new SqlCommand("UpdateAux", con)) {
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.Add("@UserId", SqlDbType.Int).Value = userId;
                con.Open();

                using (var rd = await cmd.ExecuteReaderAsync()) {
                    while (rd.Read()) {
                        aux = Convert.ToDecimal(rd["AuxNumber"]);
                    }
                }
                con.Close();
            }
            return aux;
        }

Regards

Hi, i have a problem with open connections when i have 100 users logged in my app. The framework starts to open connections and reach the max pool connections number.

with less than 100 users the application works without problems.

Could you help me with this? anyone had a similar problem?

Thanks

Hi, i have a critical problem with sql connections when the applications starts. The application works fine but when i want to publish some new changes, y do iisreset and when starts again, the framework begins to open multiple connections, and the application takes a long time to respond. Genereating multiple errors.

Did anyone have a similar problem?

Mvc.Authorization.AbpAuthorizationFilter - [(null)] - System.InvalidOperationException: 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. 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.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 retry) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnection(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransaction(IsolationLevel isolationLevel) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded) 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](Nullable1 multiTenancySide, String name) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.<GetQueryable>b__7_0(Type key) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.GetQueryable() at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.GetAllIncluding(Expression1[] propertySelectors) at Abp.Domain.Repositories.AbpRepositoryBase2.GetAllList(Expression1 predicate) at Castle.Proxies.Invocations.IRepository2_GetAllList_43.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.IRepository2Proxy_18.GetAllList(Expression1 predicate) at Abp.Localization.MultiTenantLocalizationDictionary.GetAllValuesFromDatabase(Nullable1 tenantId) at Castle.Proxies.Invocations.MultiTenantLocalizationDictionary_GetAllValuesFromDatabase.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.MultiTenantLocalizationDictionaryProxy.GetAllValuesFromDatabase(Nullable1 tenantId) at Abp.Runtime.Caching.CacheExtensions.<>c__DisplayClass5_02.<Get>b__0(String k) at Abp.Runtime.Caching.CacheBase.Get(String key, Func2 factory) at Abp.Runtime.Caching.CacheExtensions.Get[TKey,TValue](ICache cache, TKey key, Func2 factory) at Abp.Localization.MultiTenantLocalizationDictionary.GetOrNull(Nullable1 tenantId, String name) at Castle.Proxies.Invocations.ILocalizationDictionary_GetOrNull.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.MultiTenantLocalizationDictionaryProxy.GetOrNull(String name) at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetStringOrNull(String name, CultureInfo culture, Boolean tryDefaults) at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetString(String name, CultureInfo culture) at Abp.Authorization.AuthorizationHelper.AuthorizeAsync(IEnumerable1 authorizeAttributes) at Abp.Authorization.AuthorizationHelper.CheckPermissions(MethodInfo methodInfo, Type type) at Abp.Authorization.AuthorizationHelper.AuthorizeAsync(MethodInfo methodInfo, Type type) at Abp.AspNetCore.Mvc.Authorization.AbpAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context) System.InvalidOperationException: 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. 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.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 retry) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnection(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransaction(IsolationLevel isolationLevel) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded) 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](Nullable1 multiTenancySide, String name) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.<GetQueryable>b__7_0(Type key) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.GetQueryable() at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.GetAllIncluding(Expression1[] propertySelectors) at Abp.Domain.Repositories.AbpRepositoryBase2.GetAllList(Expression1 predicate) at Castle.Proxies.Invocations.IRepository2_GetAllList_43.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.IRepository2Proxy_18.GetAllList(Expression1 predicate) at Abp.Localization.MultiTenantLocalizationDictionary.GetAllValuesFromDatabase(Nullable1 tenantId) at Castle.Proxies.Invocations.MultiTenantLocalizationDictionary_GetAllValuesFromDatabase.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.MultiTenantLocalizationDictionaryProxy.GetAllValuesFromDatabase(Nullable1 tenantId) at Abp.Runtime.Caching.CacheExtensions.<>c__DisplayClass5_02.<Get>b__0(String k) at Abp.Runtime.Caching.CacheBase.Get(String key, Func2 factory) at Abp.Runtime.Caching.CacheExtensions.Get[TKey,TValue](ICache cache, TKey key, Func2 factory) at Abp.Localization.MultiTenantLocalizationDictionary.GetOrNull(Nullable1 tenantId, String name) at Castle.Proxies.Invocations.ILocalizationDictionary_GetOrNull.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.MultiTenantLocalizationDictionaryProxy.GetOrNull(String name) at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetStringOrNull(String name, CultureInfo culture, Boolean tryDefaults) at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetString(String name, CultureInfo culture) at Abp.Authorization.AuthorizationHelper.AuthorizeAsync(IEnumerable1 authorizeAttributes) at Abp.Authorization.AuthorizationHelper.CheckPermissions(MethodInfo methodInfo, Type type) at Abp.Authorization.AuthorizationHelper.AuthorizeAsync(MethodInfo methodInfo, Type type) at Abp.AspNetCore.Mvc.Authorization.AbpAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context)

Showing 1 to 10 of 14 entries