Hi,
No, it doesn't have. Should it be there?
Hi,
Even publishing using dotnet command with --self-contained parameter it doesn't work.
I have tried this command line, but not working as well:
dotnet publish -r win-x64 --self-contained true -p:PublishSingleFile=true --configuration Release
Hi zony,
We have migrated this version and hosted it for tests around one week ago. That was the first time on this environment that it happened.
Have you seen it before or are there other topics related to this issue?
I have cleaned the tables below and it seems to be working:
AbpBackgroundJobs AbpNotifications AbpUserNotifications AbpTenantNotifications
I have tried to use a UnitOfWork transaction context and have changed the Sync method to Async, but, I am still getting the same exception.
Using UnitOfWorkManager to start a transaction.
Logger.Debug("Notification Rules - Processing Tenant: " + tenantProcessTime.Key.ToString() + " - startTime: " + startTime.ToString("HH:mm"));
using (var uow = UnitOfWorkManager.Begin())
{
using (CurrentUnitOfWork.SetTenantId(tenantId))
using (_session.Use(tenantId, null))
using (CurrentUnitOfWork.EnableFilter(AbpDataFilters.MustHaveTenant))
using (CurrentUnitOfWork.SetFilterParameter(AbpDataFilters.MustHaveTenant, AbpDataFilters.Parameters.TenantId, tenantId))
{
_notificationRulesManager.ProcessTenant(startTime, tenantId);
//CurrentUnitOfWork.SaveChanges();
uow.Complete();
}
}
Running the PulishAsync() instead of Publish():
AsyncHelper.RunSync(() => _notificationPublisher.PublishAsync(
AppNotificationNames.NotificationRules,
notificationData,
severity: NotificationSeverity.Info));
Thank you @ismcagdas
Items 2 and 3 are well explained. But, for item 1, it is still a mistery for me. Definitely, there is something different when using template 5.5 and 9.0.1. Maybe it is a parameters in the project that changes the HTML version or something like that. But, any way, as per W3C especification TextArea and Select are not self-closing tags, then we've changed all of them.
Is there any update on plans to incorporate React?
Hi@ ismcagdas
I have implemented your sugestion and it is working fine. Now, I have my own class to Serializer. However, the error is still happening, but now, with the exception in my new class. Any idea how to resolve that?
ERROR 2019-04-10 21:32:01,450 [3 ] Abp.Runtime.Caching.Redis.AbpRedisCache - Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: S. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at TVD_Holdings_Ltd.Avalanche.Web.Core.Cache.RedisCacheSerializerEx.Deserialize(RedisValue objbyte) in D:\Source\AvalancheDashboard\AvalancheDashboard6.0\src\TVD_Holdings_Ltd.Avalanche.Web.Core\Cache\RedisCacheSerializerEx.cs:line 24
at Abp.Runtime.Caching.Redis.AbpRedisCache.Deserialize(RedisValue objbyte)
at Abp.Runtime.Caching.Redis.AbpRedisCache.GetOrDefault(String key)
at Abp.Runtime.Caching.CacheBase.GetOrDefaultAsync(String key)
at Abp.Runtime.Caching.CacheBase.GetAsync(String key, Func2 factory) Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: S. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at TVD_Holdings_Ltd.Avalanche.Web.Core.Cache.RedisCacheSerializerEx.Deserialize(RedisValue objbyte) in D:\Source\AvalancheDashboard\AvalancheDashboard6.0\src\TVD_Holdings_Ltd.Avalanche.Web.Core\Cache\RedisCacheSerializerEx.cs:line 24 at Abp.Runtime.Caching.Redis.AbpRedisCache.Deserialize(RedisValue objbyte) at Abp.Runtime.Caching.Redis.AbpRedisCache.GetOrDefault(String key) at Abp.Runtime.Caching.CacheBase.GetOrDefaultAsync(String key) at Abp.Runtime.Caching.CacheBase.GetAsync(String key, Func
2 factory)
Hi @ismcagdas, thank you for your help. I had a read in that item, however, I was not able to implement something like that. Reasons:
I am using AspNetZero version 6.0 with .NET Core 2.1 MVC, maybe it is an important information.
Adding information.
I got the error, in sequence I run the TestAllCaches routine, but it seems be ok. So, It looks like if there is some exception retrieving information from cache, it is automatically cleaned. Does it make sense?
Exception:
ERROR 2019-04-05 02:00:16,431 [39 ] Abp.Runtime.Caching.Redis.AbpRedisCache - Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: S. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Abp.Runtime.Caching.Redis.DefaultRedisCacheSerializer.Deserialize(RedisValue objbyte)
at Abp.Runtime.Caching.Redis.AbpRedisCache.Deserialize(RedisValue objbyte)
at Abp.Runtime.Caching.Redis.AbpRedisCache.GetOrDefault(String key)
at Abp.Runtime.Caching.CacheBase.GetOrDefaultAsync(String key)
at Abp.Runtime.Caching.CacheBase.GetAsync(String key, Func2 factory) Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: S. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Abp.Runtime.Caching.Redis.DefaultRedisCacheSerializer.Deserialize(RedisValue objbyte) at Abp.Runtime.Caching.Redis.AbpRedisCache.Deserialize(RedisValue objbyte) at Abp.Runtime.Caching.Redis.AbpRedisCache.GetOrDefault(String key) at Abp.Runtime.Caching.CacheBase.GetOrDefaultAsync(String key) at Abp.Runtime.Caching.CacheBase.GetAsync(String key, Func
2 factory)
Cache test: DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - *** Testing Caches *** DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AppImpersonationCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AppImpersonationCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AbpZeroUserPermissions DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AbpZeroUserPermissions DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetLocalityList1nodeGRA02region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetLocalityList1nodeGRA02region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetLocalityList1nodeGRA04region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetLocalityList1nodeGRA04region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetStreetList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetStreetList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetLocalityList1nodeHAY03region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetLocalityList1nodeHAY03region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetLocalityList1nodeHAY02region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetLocalityList1nodeHAY02region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AbpUserSettingsCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AbpUserSettingsCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AbpTenantSettingsCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AbpTenantSettingsCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AbpZeroTenantFeatures DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AbpZeroTenantFeatures DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AbpZeroMultiTenantLocalizationDictionaryCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AbpZeroMultiTenantLocalizationDictionaryCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetLocalityList1nodeGRA08region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetLocalityList1nodeGRA08region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetNodesForTree1 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetNodesForTree1 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetScadaParserSettingsList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetScadaParserSettingsList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetUserOptionsforOutageMap_1_user_10080 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetUserOptionsforOutageMap_1_user_10080 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetDefaultNodeValues_siteId_1_user_10080 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetDefaultNodeValues_siteId_1_user_10080 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetAvenueList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetAvenueList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AbpZeroLanguages DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AbpZeroLanguages DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetMessageLinkList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetMessageLinkList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetDefaultNodeValues_siteId_1_user_10016 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetDefaultNodeValues_siteId_1_user_10016 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetSiteOptionsForOutageMap_1 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetSiteOptionsForOutageMap_1 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AbpApplicationSettingsCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AbpApplicationSettingsCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetNodeLocality DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetNodeLocality DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetRegionTypeOutage1regionCode19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetRegionTypeOutage1regionCode19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AbpZeroTenantCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AbpZeroTenantCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetNodeTypes DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetNodeTypes DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetUserOptionsforOutageMap_64_user_10010 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetUserOptionsforOutageMap_64_user_10010 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetLocalityList1node1GEN99region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetLocalityList1node1GEN99region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetLocalityList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetLocalityList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AbpZeroRolePermissions DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AbpZeroRolePermissions DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetLanguageMessageList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetLanguageMessageList DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetSiteOptionsForOutageMap_64 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetSiteOptionsForOutageMap_64 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: OCPNode_GetMessageAttributesPerLanguage DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : OCPNode_GetMessageAttributesPerLanguage DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetTimeAndCauseLists1 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetTimeAndCauseLists1 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetLocalityList1nodeGRA03region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetLocalityList1nodeGRA03region19 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: GetUserOptionsforOutageMap_1_user_10016 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : GetUserOptionsforOutageMap_1_user_10016 DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AppUserFriendCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AppUserFriendCache DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Reading Cache: AbpZeroEditionFeatures DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - Cache Read : AbpZeroEditionFeatures DEBUG 2019-04-05 02:00:18,323 [39 ] _Ltd.Avalanche.Caching.CachingAppService - *** Testing Caches Finished ***