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

Activities of "mahendra"

  • What is your product version?
  • 5.2
  • What is your product type (Angular or MVC)?
  • Angular
  • What is product framework type (.net framework or .net core)?
  • .netCore
  • What is ABP Framework version?
  • 5.2

Hi Expert,

I have to add new Column in AbpAuditLog. like APIRequest, APIResponse in the API var auditInfo = new AuditInfo { TenantId = AbpSession.TenantId, UserId = AbpSession.UserId, ImpersonatorUserId = AbpSession.ImpersonatorUserId, ImpersonatorTenantId = AbpSession.ImpersonatorTenantId, ServiceName = typeObject != null ? typeObject.FullName : "", MethodName = methodName, Parameters = paramerters, ExecutionTime = DateTime.Now, CustomData = paramerters, // New Column that needs to be added APIResponse = "", APIRequest ="" }

 How can we modify the table. Can you guides us step step process for this.
 I want to use this in my method. There is two more property in this 
 1) Browserinfo
 2) ClientIPAddress
 How we can add value in thes property dynamically. Called in API Method.
 
3) Is there any way by which we can Change the datatype of the column (CustomData) ?
 
 Any help will be appreciated.
 
 Thanks 
 Ashish Mohan 
  • What is your product version?
  • 5.3.0
  • What is your product type (Angular or MVC)? -** Angular**
  • What is product framework type (.net framework or .net core)?
  • .Net Core

Hi Experts,

All the public methods and Exceptions are being logged automatically in the AbpAuditLogs Table. Could you please let us know, How can we insert the record programmatically in the AbpAuditLogs Table.

Thanks,

  • What is your product version?
  • What is your product type (Angular or MVC)?
  • ANGULAR
  • What is product framework type (.net framework or .net core)?
  • .NET CORE

Hi Experts,

We are using Postgres as a database server We are getting below error randomly for any service method.

System.InvalidOperationException: An exception has been raised that is likely due to a transient failure. ---> Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Npgsql.NpgsqlException (0x80004005): Exception while reading from stream ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream. at Npgsql.NpgsqlReadBuffer.<>c__DisplayClass34_0.<<Ensure>g__EnsureLong|0>d.MoveNext() at Npgsql.NpgsqlReadBuffer.<>c__DisplayClass34_0.<<Ensure>g__EnsureLong|0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Npgsql.NpgsqlConnector.<>c__DisplayClass160_0.<<DoReadMessage>g__ReadMessageLong|0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Npgsql.NpgsqlConnector.<>c__DisplayClass160_0.<<DoReadMessage>g__ReadMessageLong|0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming) at Npgsql.NpgsqlCommand.ExecuteReaderAsync(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken) at Npgsql.NpgsqlCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken...

Could you please help us in resolving this issue.

Best Regards

Question

Hi,

I saw some support thread regarding angular universal for server side rendering. you had mentioned that ASPNetZero has not been tested for angular universal. I am not sure for which version of ASPNetZero you had replied as being not tested.

My question is "Is latest version of ASPNetzero has been tested for angular universal". Also could you please provide some link where some of the component of existing angular application has been converted for server side rendering using angular universal.

Regards, Mahendra

  • What is your product version?
  • 5.2
  • What is your product type (Angular or MVC)?
  • Angular
  • What is product framework type (.net framework or .net core)?
  • .net Core

If issue related with ABP Framework

  • What is ABP Framework version?
  • 5.2

Issue: I am using Code First approach for creating the database. My Database is in postgres as backend and i am using asp.net core for API development. I have modidifed my table as Following Added Following column in the table structure

public virtual int? OEMarketplaceProviderId​ { get; set; }
    [ForeignKey("OEMarketplaceProviderId​​")]
    public virtual OEMarketPlaceProvider OEMarketplaceProviderId​FK { get; set; }
    public virtual string LongDescription​ { get; set; }
    public virtual int? OEEnumNotificationStatus​Id { get; set; }

    [ForeignKey("OEEnumNotificationStatus​Id​")]
    public OEEnumMaster OEEnumNotificationStatus​Fk { get; set; }

    // inplace of OESystemStatusMasterId
    public virtual int? Status { get; set; }
    [ForeignKey("Status​​")]
    public OEEnumMaster StatusFk { get; set; }

Migration Generated

migrationBuilder.AddColumn&lt;int&gt;(
                name: "OEEnumNotificationStatusId",
                table: "OESystem",
                nullable: true);

            migrationBuilder.AddColumn&lt;int&gt;(
                name: "OEEnumNotificationStatus​Id​",
                table: "OESystem",
                nullable: true);

            migrationBuilder.AddColumn&lt;int&gt;(
                name: "OEMarketplaceProviderId",
                table: "OESystem",
                nullable: true);

            migrationBuilder.AddColumn&lt;int&gt;(
                name: "OEMarketplaceProviderId​​",
                table: "OESystem",
                nullable: true);
 

 -

Snapshot Generated

b.HasOne("OneEnterprise.iHUB.OEEnumMasters.OEEnumMaster", "OEEnvironmentMasterFk")
                        .WithMany()
                        .HasForeignKey("OEEnvironmentMasterId");

                    b.HasOne("OneEnterprise.iHUB.OEMarketPlaceProviders.OEMarketPlaceProvider", "OEMarketplaceProviderIdFK")
                        .WithMany()
                        .HasForeignKey("OEMarketplaceProviderId​​");

                    b.HasOne("OneEnterprise.iHUB.OEEnumMasters.OEEnumMaster", "OESystemStatusMasterFk")
                        .WithMany()
                        .HasForeignKey("OESystemStatusMasterId");

                    b.HasOne("OneEnterprise.iHUB.OEEnumMasters.OEEnumMaster", "StatusFk")
                        .WithMany()
                        .HasForeignKey("Status​​");

                    b.HasOne("OneEnterprise.iHUB.SystemSpecification.SystemInfo", "SystemInfoFk")
                        .WithMany()
                        .HasForeignKey("SystemInfoId");

Related Entity

[Required]
        public virtual string Name { get; set; }

        public virtual string Code { get; set; }

        public virtual string Description { get; set; }

        public virtual string NameLanguageId { get; set; }

        public virtual string DescriptionLanguageId { get; set; }

        public virtual string ToolTip { get; set; }

        public virtual string ToolTipLanguageId { get; set; }

        public virtual string HelpId { get; set; }

        public virtual EnumType EnumType { get; set; }

        public virtual bool IsDefault { get; set; }

Entity 2

 public virtual string Description { get; set; }

        public virtual string Address { get; set; }

        public virtual string Phone { get; set; }

        public virtual string Mail { get; set; }

        public virtual string Website { get; set; }

        public virtual int OEBusinessPartnerId { get; set; }

        [ForeignKey("OEBusinessPartnerId")]
        public OEBusinessPartner OEBusinessPartnerFk { get; set; }

        public virtual int? OEEnumMasterBusinessPartnerStatusId { get; set; }

        [ForeignKey("OEEnumMasterBusinessPartnerStatusId")]
        public OEEnumMaster OEEnumMasterBusinessPartnerStatusFk { get; set; }

        public virtual int? OEMarketPlaceOfferId { get; set; }

        [ForeignKey("OEMarketPlaceOfferId")]
        public OEMarketPlaceOffer OEMarketPlaceOfferFk { get; set; }

        public virtual int? OEMarketPlaceRatingId { get; set; }

        [ForeignKey("OEMarketPlaceRatingId")]
        public OEMarketPlaceRating OEMarketPlaceRatingFk { get; set; }

Please suggest what could be the reason and if is Deployed in the Testing environment. How we can fix it. In Snapshot we can easily check that duplicate column has been created in Migration and snapshot, however in entity i have placed the column name only once

thanks Ashish

  • What is your product type (Angular or MVC)?
  • Angular
  • What is product framework type (.net framework or .net core)?
  • .net core

If issue related with ABP Framework

  • What is ABP Framework version?
  • 5.2

Hi Experts,

We have hosted our application which is based on ABP Framework in the "AWS Elastic Beanstalk" enviornment. We have the below setting in log4net.config :

<?xml version="1.0" encoding="utf-8" ?> <log4net> <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender" > <file value="App_Data/Logs/Logs.txt" /> <appendToFile value="true" /> <rollingStyle value="Size" /> <maxSizeRollBackups value="10" /> <maximumFileSize value="10000KB" /> <staticLogFileName value="true" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%-5level %date [%-5.5thread] %-40.40logger - %message%newline" /> </layout> </appender> <root> <appender-ref ref="RollingFileAppender" /> <level value="DEBUG" /> </root> </log4net>

However, AppData folder is not created. Any help would be much appreciated.

Thanks

Question

Hi Expert,

We have lots of components in our angular project and similarly lots of AppSerivce created in .Net Core. It takes long to render even the login page. Whatever we could have analyze, fix, we have done that. Here is the login page URL:

https://tagrain.net/account/login

Could you please give us some hint as what could be the reason of loading the page so slow.

Appreciate your quick response on this.

Regards, Mahendra

  • What is your product version?
  • 5.2
  • What is your product type (Angular or MVC)?
  • Angular
  • What is product framework type (.net framework or .net core)?
  • .net Core

I am sending entity notification. I want to get the subcriber user against the Entity is there any method available in the Framework or otherways to get this list.

Thanks Ashish

  • What is your product type (Angular or MVC)?
  • Angular
  • What is product framework type (.net framework or .net core)?
  • .net Core

i Have CHecked the notification with the EntityIdentifier but it is not working,I have added following code in the request

await _notificationPublisher.PublishAsync(AppNotificationNames.NotificationMessageProjectCreated, notificationData
                , entityIdentifier: new Abp.Domain.Entities.EntityIdentifier(typeof(OEProject), (int)OECore.NotifictionModule.Project),
                severity:NotificationSeverity.Info, tenantIds: new[] { user.TenantId }
                );

But not working when i have set EntityIdentifier

it is working fine with the following code

await _notificationPublisher.PublishAsync(AppNotificationNames.NotificationMessageProjectCreated, notificationData
                , tenantIds: new[] { user.TenantId }
                );

i Have Checked also in google https://github.com/aspnetboilerplate/aspnetboilerplate/issues/5230

Refernce of the Table https://aspnetboilerplate.com/Pages/Documents/Notification-System

Thanks Ashish

  • What is your product type (Angular or MVC)?
  • Angular
  • What is product framework type (.net framework or .net core)?
  • .net Core

Hi Team, I have following question

  1. How abp load the language text to support multi language. As we have many datasource for language like xml file , abplanguagetext. which function is called to load this. I want to know as i am inserting dynamic text in database. (Check how it is mainting the Language Cache (Reading From XML + Database )) As per my analysis some text is Read from XML and some is Read from DB.
Showing 31 to 40 of 80 entries