Recently I got next error when executing application on remote server:
Message=Could not load file or assembly 'System.Net.Http, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
On local PC all worked fine. Same version of .net framework was installed on local development pc and remote. There are huge amount of posts about this topic in internet. The root issue of issue was found out soon – full framework… Read More »
In previous post we looked briefly How to Fix the Collation and Character Set of a MySQL Database , this time we will have look what had to be done with text files what were also in wrong encoding. The site was over 15 years old, php and plain text files were in Nordic encoding ASCII files. For… Read More »
Recently I came across with issue where migrating website from one hosting to another resulted on text encoding issues. Site was very old and lot of time had passed, so on new server all texts coming from database had cryptic signs instead of Nordic characters. All you can find below is from article on page https://confluence.atlassian.com/kb/how-to-fix-the-collation-and-character-set-of-a-mysql-database-744326173.html… Read More »
With this short article we will start series of blockchain related topics. Mostly we cover questions for beginners, but eventually we will also look into more complex themes. So today we start with simple Ethereum address/account generator. First we create small Windows form application with button to generate address and two edit boxes to… Read More »
Often it is enough to show on chart axis label general indicative number instead of full precision figure. Also long figures take a lot of precious space. So instead 890 152 000 the 890M would do fine. So how to do it in case of DevExpress Chart control MVC extension. Unlike in case of Windows… Read More »
Getting last inserted Id value is quite common needed task. When using SqlCommand it is not part of the class. Things are getting even trickier if the value must be Int64. But have no fear, it is not tricky. Just define in SqlCommand two sql statements:- first of insert and second for selecting back inserted… Read More »
If you need looping between date range then there are many ways to solve this task. Here is one simple code snippet
DateTime startDate = new DateTime(2017, 1, 1);
DateTime endDate = DateTime.Today;
// looping between date range
while (startDate < endDate)
// ... to the "thing"
startDate = startDate.AddDays(1);
If you are just starting to experiment with MVC and DevExpress then it might happen that for your surprise you can not see model class fields in Extension insert wizard screen. First thing to do is ensure that project has been rebuilt rebuilt before using wizard. Second thing to do is check that Module class properties have defined… Read More »
Sometimes, for example in case of updating MVC 4 projetc to MVC 5, some nuget packages will have wrong versions or might be missing from references. In this case command Update-Package -reinstall come handy. In Visual Studio open from menu Tools -> NuGet Package Manager -> Package Manager Console. In console execute next command for for… Read More »
if you ever need to split text file lines or other strings by tab delimiter then it it is easy :
// 9 ==> \t
// 10 ==> \n
// 13 ==> \r
char sep = Convert.ToChar(9);
string splitContent = line.Split(sep);
and done !