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

Activities of "manojreddy"

I have taken the latest code based on 2.0 and tried to merge it with old code.

I'm getting too many errors on build solution, please help.

Severity Code Description Project File Line Suppression State Error CS0117 'AppSettings' does not contain a definition for 'HostManagement' Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 169 Active Error CS0117 'AppSettings' does not contain a definition for 'HostManagement' Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 170 Active Error CS1061 'IModuleConfigurations' does not contain a definition for 'AspNetZero' and no extension method 'AspNetZero' accepting a first argument of type 'IModuleConfigurations' could be found (are you missing a using directive or an assembly reference?) Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\Startup\ABCDWebFrontEndModule.cs 28 Active Error CS0006 Metadata file 'C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\bin\Debug\netcoreapp1.1\Test.ABCD.Application.dll' could not be found Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\CSC 1 Active Error CS0006 Metadata file 'C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Data\bin\Debug\netcoreapp1.1\Test.ABCD.Business.Repositories.dll' could not be found Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\CSC 1 Active Error CS0006 Metadata file 'C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Dto\bin\Debug\netcoreapp1.1\Test.ABCD.Business.Dto.dll' could not be found Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\CSC 1 Active Error CS0006 Metadata file 'C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Services\bin\Debug\netcoreapp1.1\Test.ABCD.Business.Services.dll' could not be found Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\CSC 1 Active Error CS0006 Metadata file 'C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Core\bin\Debug\netcoreapp1.1\Test.ABCD.Web.Core.dll' could not be found Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\CSC 1 Active Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Test.ABCD.Application.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.ConsoleApiClient C:\Users\myname\source\repos\ABCD\aspnet-core\test\Test.ABCD.ConsoleApiClient\Test.ABCD.ConsoleApiClient.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Business.Dto C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Dto\Test.ABCD.Business.Dto.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Business.Repositories C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Data\Test.ABCD.Business.Repositories.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Business.Services C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Services\Test.ABCD.Business.Services.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Web.Core C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Core\Test.ABCD.Web.Core.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Tests C:\Users\myname\source\repos\ABCD\aspnet-core\test\Test.ABCD.Tests\Test.ABCD.Tests.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Web.Host C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Host\Test.ABCD.Web.Host.csproj 1 Error CS0103 The name 'DatabaseCheckHelper' does not exist in the current context Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 112 Active Error CS0103 The name 'DefaultLanguagesCreator' does not exist in the current context Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 86 Active Error CS0103 The name 'SeedHelper' does not exist in the current context Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 56 Active Error CS0234 The type or namespace name 'AspNetZeroCore' does not exist in the namespace 'Abp' (are you missing an assembly reference?) Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\Startup\ABCDWebFrontEndModule.cs 1 Active Error CS0234 The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 20 Active Error CS0234 The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 20 Active Error CS0246 The type or namespace name 'HostBillingSettingsEditDto' could not be found (are you missing a using directive or an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 167 Active Error CS0234 The type or namespace name 'Migrations' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 23 Active Error CS0234 The type or namespace name 'Migrations' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 23 Active Error CS0234 The type or namespace name 'Migrations' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 24 Active Error CS0234 The type or namespace name 'Migrations' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 24 Active Error CS0246 The type or namespace name 'ABCDDbContext' could not be found (are you missing a using directive or an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 34 Active Error CS0305 Using the generic type 'AbpZeroDbMigrator<TDbContext>' requires 1 type arguments Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 38 Active

Hi,

Following code is useful in only to retrieve the deleted records. Not to hard delete the records from the table.

If let's say I implement hard delete using SQL in custom repository.

But Do we have some mechanism to implement audit tables? So for example, If I want to get the information of deleted rows from the table. So If I have some audit table and I make an entry for every action like insert, update and delete in this audit table. Then I can easily get all the history of respective table.

Question

Hi in abp When I delete record its soft delete by default, because it FullAuditedEntity inherits from ISoftDelete, Is it possible to implement hard deleted anyway?

One solution I thought that not to use FullAuditedEntity in the model class, but I will lose AuditedEntity<TPrimaryKey>, IFullAudited, IAudited, ICreationAudited, IHasCreationTime, IModificationAudited, IHasModificationTime, IDeletionAudited feature.

Or shall I have an abstract class similar to abstract class FullAuditedEntity<TPrimaryKey> and not inherit from, IHasDeletionTime, ISoftDelete?

Please provide your suggestions.

Thanks

Thanks for your response :)

Hi,

I was working on the previous version, I have just started upgradation to .net core 2.0. So I have two projects now old one and the new one. We have already started development on previous version 3-4 months back. So now to upgrade the old working project to the new framework I have to make changes in the existing project.

I 'm thinking to manually compare files by files by some comparator tool and It's taking too much time and it could to error-prone too.

So could you please suggest some good and easy way to do the same.

Thanks in advance.

Hi,

Thanks for the quick fix.

Shall I apply this fix in my local file or shall I wait for the next upgrade of the framework?

I'm getting the error while trying to acces web application on browser. npm start is not giving any error

I have download .net core 2.0 and followed [https://aspnetzero.com/Documents/Getting-Started-Angular]) .

core.js:1350 ERROR Error: Cannot find module './en-US.js'. at webpackAsyncContext (eval at ../../../common/locales lazy recursive ^./..js$ (main.bundle.js:797), <anonymous>:4134:25) at eval (root.module.ts:63) at ZoneDelegate.invoke (zone.js:392) at Object.onInvoke (core.js:4629) at ZoneDelegate.invoke (zone.js:391) at Zone.run (zone.js:142) at eval (zone.js:844) at ZoneDelegate.invokeTask (zone.js:425) at Object.onInvokeTask (core.js:4620) at ZoneDelegate.invokeTask (zone.js:424) defaultErrorLogger @ core.js:1350 ErrorHandler.handleError @ core.js:1411 (anonymous) @ core.js:5561 ZoneDelegate.invoke @ zone.js:392 Zone.run @ zone.js:142 NgZone.runOutsideAngular @ core.js:4577 (anonymous) @ core.js:5561 ZoneDelegate.invoke @ zone.js:392 onInvoke @ core.js:4629 ZoneDelegate.invoke @ zone.js:391 Zone.run @ zone.js:142 (anonymous) @ zone.js:844 ZoneDelegate.invokeTask @ zone.js:425 onInvokeTask @ core.js:4620 ZoneDelegate.invokeTask @ zone.js:424 Zone.runTask @ zone.js:192 drainMicroTaskQueue @ zone.js:602 ZoneTask.invokeTask @ zone.js:503 invokeTask @ zone.js:1427 globalZoneAwareCallback @ zone.js:1445 XMLHttpRequest.send (async) scheduleTask @ zone.js:2744 ZoneDelegate.scheduleTask @ zone.js:411 onScheduleTask @ zone.js:301 ZoneDelegate.scheduleTask @ zone.js:405 Zone.scheduleTask @ zone.js:236 Zone.scheduleMacroTask @ zone.js:259 (anonymous) @ zone.js:2769 proto.(anonymous function) @ zone.js:1274 (anonymous) @ http.js:1605 Observable._trySubscribe @ Observable.js:172 Observable.subscribe @ Observable.js:160 MapOperator.call @ map.js:57 Observable.subscribe @ Observable.js:157 CatchOperator.call @ catchError.js:80 Observable.subscribe @ Observable.js:157 MergeMapOperator.call @ mergeMap.js:92 Observable.subscribe @ Observable.js:157 CatchOperator.call @ catchError.js:80 Observable.subscribe @ Observable.js:157 (anonymous) @ Observable.js:286 ZoneAwarePromise @ zone.js:861 Observable.toPromise @ Observable.js:284 (anonymous) @ app-session.service.ts:52 ZoneAwarePromise @ zone.js:861 AppSessionService.init @ app-session.service.ts:51 (anonymous) @ root.module.ts:36 (anonymous) @ LocalizedResourcesHelper.ts:8 fire @ index.js:3 fireWith @ index.js:3 (anonymous) @ index.js:3 fire @ index.js:3 fireWith @ index.js:3 (anonymous) @ index.js:3 fire @ index.js:3 fireWith @ index.js:3 done @ index.js:3 (anonymous) @ index.js:3 wrapFn @ zone.js:1075 ZoneDelegate.invokeTask @ zone.js:425 onInvokeTask @ core.js:4620 ZoneDelegate.invokeTask @ zone.js:424 Zone.runTask @ zone.js:192 ZoneTask.invokeTask @ zone.js:499 invokeTask @ zone.js:1427 globalZoneAwareCallback @ zone.js:1445 XMLHttpRequest.send (async) scheduleTask @ zone.js:2744 ZoneDelegate.scheduleTask @ zone.js:411 onScheduleTask @ zone.js:301 ZoneDelegate.scheduleTask @ zone.js:405 Zone.scheduleTask @ zone.js:236 Zone.scheduleMacroTask @ zone.js:259 (anonymous) @ zone.js:2769 proto.(anonymous function) @ zone.js:1274 send @ index.js:3 ajax @ index.js:3 jQuery.(anonymous function) @ index.js:3 getScript @ index.js:3 LocalizedResourcesHelper.loadLocalizedScripts @ LocalizedResourcesHelper.ts:44 LocalizedResourcesHelper.loadResources @ LocalizedResourcesHelper.ts:7 (anonymous) @ AppPreBootstrap.ts:148 fire @ index.js:3 fireWith @ index.js:3 deferred.(anonymous function) @ index.js:3 handleResponse @ index.js:3 (anonymous) @ index.js:3 fire @ index.js:3 fireWith @ index.js:3 done @ index.js:3 (anonymous) @ index.js:3 wrapFn @ zone.js:1075 ZoneDelegate.invokeTask @ zone.js:425 onInvokeTask @ core.js:4620 ZoneDelegate.invokeTask @ zone.js:424 Zone.runTask @ zone.js:192 ZoneTask.invokeTask @ zone.js:499 invokeTask @ zone.js:1427 globalZoneAwareCallback @ zone.js:1445 XMLHttpRequest.send (async) scheduleTask @ zone.js:2744 ZoneDelegate.scheduleTask @ zone.js:411 onScheduleTask @ zone.js:301 ZoneDelegate.scheduleTask @ zone.js:405 Zone.scheduleTask @ zone.js:236 Zone.scheduleMacroTask @ zone.js:259 (anonymous) @ zone.js:2769 proto.(anonymous function) @ zone.js:1274 send @ index.js:3 ajax @ index.js:3 (anonymous) @ index.js:3 Deferred @ index.js:3 abp.ajax @ index.js:3 AppPreBootstrap.getUserConfiguration @ AppPreBootstrap.ts:122 (anonymous) @ AppPreBootstrap.ts:35 (anonymous) @ AppPreBootstrap.ts:68 fire @ index.js:3 fireWith @ index.js:3 deferred.(anonymous function) @ index.js:3 (anonymous) @ index.js:3 fire @ index.js:3 fireWith @ index.js:3 done @ index.js:3 (anonymous) @ index.js:3 wrapFn @ zone.js:1075 ZoneDelegate.invokeTask @ zone.js:425 onInvokeTask @ core.js:4620 ZoneDelegate.invokeTask @ zone.js:424 Zone.runTask @ zone.js:192 ZoneTask.invokeTask @ zone.js:499 invokeTask @ zone.js:1427 globalZoneAwareCallback @ zone.js:1445 XMLHttpRequest.send (async) scheduleTask @ zone.js:2744 ZoneDelegate.scheduleTask @ zone.js:411 onScheduleTask @ zone.js:301 ZoneDelegate.scheduleTask @ zone.js:405 Zone.scheduleTask @ zone.js:236 Zone.scheduleMacroTask @ zone.js:259 (anonymous) @ zone.js:2769 proto.(anonymous function) @ zone.js:1274 send @ index.js:3 ajax @ index.js:3 (anonymous) @ index.js:3 Deferred @ index.js:3 abp.ajax @ index.js:3 AppPreBootstrap.getApplicationConfig @ AppPreBootstrap.ts:45 AppPreBootstrap.run @ AppPreBootstrap.ts:15 (anonymous) @ root.module.ts:33 ZoneAwarePromise @ zone.js:861 (anonymous) @ root.module.ts:32 ApplicationInitStatus.runInitializers @ core.js:3451 (anonymous) @ core.js:5379 _callAndReportToErrorHandler @ core.js:5558 (anonymous) @ core.js:5377 ZoneDelegate.invoke @ zone.js:392 onInvoke @ core.js:4629 ZoneDelegate.invoke @ zone.js:391 Zone.run @ zone.js:142 NgZone.run @ core.js:4446 PlatformRef.bootstrapModuleFactory @ core.js:5368 (anonymous) @ core.js:5447 ZoneDelegate.invoke @ zone.js:392 Zone.run @ zone.js:142 (anonymous) @ zone.js:844 ZoneDelegate.invokeTask @ zone.js:425 Zone.runTask @ zone.js:192 drainMicroTaskQueue @ zone.js:602 Promise resolved (async) scheduleMicroTask @ zone.js:585 ZoneDelegate.scheduleTask @ zone.js:414 Zone.scheduleTask @ zone.js:236 Zone.scheduleMicroTask @ zone.js:256 scheduleResolveOrReject @ zone.js:842 ZoneAwarePromise.then @ zone.js:932 setDriver @ localforage.js:2360 LocalForage @ localforage.js:2173 4.3 @ localforage.js:2422 s @ localforage.js:7 e @ localforage.js:7 (anonymous) @ localforage.js:7 i @ localforage.js:7 (anonymous) @ localforage.js:7 (anonymous) @ localforage.js:2428 ../../../../localforage/dist/localforage.js @ vendor.bundle.js:2051 webpack_require @ inline.bundle.js:55 (anonymous) @ local-storage.service.ts:3 ../../../../../src/shared/utils/local-storage.service.ts @ main.bundle.js:728 webpack_require @ inline.bundle.js:55 (anonymous) @ utils.module.ts:10 ../../../../../src/shared/utils/utils.module.ts @ main.bundle.js:752 webpack_require @ inline.bundle.js:55 (anonymous) @ app.module.ts:22 ../../../../../src/app/app.module.ts @ main.bundle.js:60 webpack_require @ inline.bundle.js:55 (anonymous) @ root.module.ts:11 ../../../../../src/root.module.ts @ main.bundle.js:536 webpack_require @ inline.bundle.js:55 (anonymous) @ main.ts:6 ../../../../../src/main.ts @ main.bundle.js:504 webpack_require @ inline.bundle.js:55 0 @ main.bundle.js:805 webpack_require @ inline.bundle.js:55 webpackJsonpCallback @ inline.bundle.js:26 (anonymous) @ main.bundle.js:1 zone.js:661 Unhandled Promise rejection: Cannot find module './en-US.js'. ; Zone: <root> ; Task: Promise.then ; Value: Error: Cannot find module './en-US.js'. at webpackAsyncContext (eval at ../../../common/locales lazy recursive ^./..js$ (main.bundle.js:797), <anonymous>:4134:25) at eval (root.module.ts:63) at ZoneDelegate.invoke (zone.js:392) at Object.onInvoke (core.js:4629) at ZoneDelegate.invoke (zone.js:391) at Zone.run (zone.js:142) at eval (zone.js:844) at ZoneDelegate.invokeTask (zone.js:425) at Object.onInvokeTask (core.js:4620) at ZoneDelegate.invokeTask (zone.js:424) Error: Cannot find module './en-US.js'. at webpackAsyncContext (eval at ../../../common/locales lazy recursive ^./.*.js$ (<a class="postlink" href="http://localhost:4200/main.bundle.js:797:1">http://localhost:4200/main.bundle.js:797:1</a>), <anonymous>:4134:25) at eval (webpack-internal:///../../../../../src/root.module.ts:80:102) at ZoneDelegate.invoke (webpack-internal:///../../../../zone.js/dist/zone.js:392:26) at Object.onInvoke (webpack-internal:///../../../core/esm5/core.js:4825:33) at ZoneDelegate.invoke (webpack-internal:///../../../../zone.js/dist/zone.js:391:32) at Zone.run (webpack-internal:///../../../../zone.js/dist/zone.js:142:43) at eval (webpack-internal:///../../../../zone.js/dist/zone.js:844:57) at ZoneDelegate.invokeTask (webpack-internal:///../../../../zone.js/dist/zone.js:425:31) at Object.onInvokeTask (webpack-internal:///../../../core/esm5/core.js:4816:33) at ZoneDelegate.invokeTask (webpack-internal:///../../../../zone.js/dist/zone.js:424:36)

Thanks for your response, I will keep this in mind :)

Despite being a premium member, I'm asking for support on StackOverflow.

[https://stackoverflow.com/questions/47648086/how-to-use-caching-in-asp-net-boilerplate])

Whats next to be done?

using System.Linq;
using System.Threading.Tasks;
using Abp.Application.Services.Dto;
using Abp.Authorization;
using Abp.Runtime.Caching;
using Test.Authorization;
using Test.Caching.Dto;

namespace Test.Caching
{
    [AbpAuthorize(AppPermissions.Pages_Administration_Host_Maintenance)]
    public class CachingAppService : TestAppServiceBase, ICachingAppService
    {
        private readonly ICacheManager _cacheManager;

        public CachingAppService(ICacheManager cacheManager)
        {
            _cacheManager = cacheManager;
        }

        public ListResultDto<CacheDto> GetAllCaches()
        {
            var caches = _cacheManager.GetAllCaches()
                                        .Select(cache => new CacheDto
                                        {
                                            Name = cache.Name
                                        })
                                        .ToList();

            return new ListResultDto<CacheDto>(caches);
        }

        public async Task ClearCache(EntityDto<string> input)
        {
            var cache = _cacheManager.GetCache(input.Id);
            await cache.ClearAsync();
        }

        public async Task ClearAllCaches()
        {
            var caches = _cacheManager.GetAllCaches();
            foreach (var cache in caches)
            {
                await cache.ClearAsync();
            }
        }
    }
}
public IServiceProvider ConfigureServices(IServiceCollection services)
{
	services.AddMemoryCache();
}
Showing 211 to 220 of 267 entries