Base solution for your next web application

Activities of "Leonardo.Willrich"

Hi Guys,

I am getting a strange exception in the deployed release, in my development environment, it doesn't happen.

Does anyone have an idea what is wrong?

It is leaving my logs file full. However, seems that there is no interference in the application functionalities.

I tought maybe it would be some data in the database that was getting error. But even using exactly the same database from deployed version, it doesn't happen in development environment.

Exception: ERROR 2019-04-04 21:14:06,728 [35 ] 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, Func2 factory)

Resolved. I added to redis connection string the parameter syncTimeout=10000.

Changing the culture, I got some erros parsing date from parameters and database. So, I left the original culture, I just added one more language in the AbpLanguages table with name = 'en'.

Resolved.

I changed the culture from "en-GB" to "en" and filename to "Avalanche-en.xml".'

Changed the settings to "en" be the default language.

I am not sure. I have to spend some time doing that. I'll do it and let you know as soon as possible!

@maliming Do you have a contact? email or skype? The project is quite complex, it is logged in two different databases and for security reason I am not able to allow outside connections. But, maybe you can connect in my enrironment remotly using Team Viewer or something like that.

@maliming

Yes, always. It is leaving my log file full. It isn't a production environment, it is a non-production, but it is quite similar to a production environment. My application isn't realease to production so far. I am really worried if it can be a issue or not, that is the reason I am trying to tidy it up.

At this moment, there are only 2 users using the application, in 3 hours the log has more than 1 mb only with this Redis Cache error.

I don't have. I have only appsettings.json. I always delete the others appsettings files. Should I have it? Others parameters are being reading from appsettings.json normally.

Hi ryancyq

The most strange is in my local machine, development environment, it works fine. Only when it is running in our non-production environment with the application published in a ISS server it happens.

Some idea what is going on? Any configuration maybe I am missing?

In additional,

I realized that in my appsettings.json I have these configuration:

"Abp": { "RedisCache": { "ConnectionString": "localhost", "DatabaseId": -1 } },

And in my preInitialize() method I have these lines:

        //Uncomment this line to use Redis cache instead of in-memory cache.
        //See app.config for Redis configuration and connection string
        Configuration.Caching.UseRedis(options =>
        {
            options.ConnectionString = _appConfiguration["Abp:RedisCache:ConnectionString"];
            options.DatabaseId = _appConfiguration.GetValue<int>("Abp:RedisCache:DatabaseId");
        });
        

Maybe is there something wrong with that?

Showing 61 to 70 of 78 entries