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
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,
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
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
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 OEMarketplaceProviderIdFK { get; set; }
public virtual string LongDescription { get; set; }
public virtual int? OEEnumNotificationStatusId { get; set; }
[ForeignKey("OEEnumNotificationStatusId")]
public OEEnumMaster OEEnumNotificationStatusFk { get; set; }
// inplace of OESystemStatusMasterId
public virtual int? Status { get; set; }
[ForeignKey("Status")]
public OEEnumMaster StatusFk { get; set; }
Migration Generated
migrationBuilder.AddColumn<int>(
name: "OEEnumNotificationStatusId",
table: "OESystem",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "OEEnumNotificationStatusId",
table: "OESystem",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "OEMarketplaceProviderId",
table: "OESystem",
nullable: true);
migrationBuilder.AddColumn<int>(
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
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
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
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
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
Hi Team, I have following question