C# String Cheat Sheet
I found this great string formatting Cheat Sheet via Twitter some days ago. Just wanted to share it.
I found this great string formatting Cheat Sheet via Twitter some days ago. Just wanted to share it.
Ever got the error “Row not found or changed” when you use Linq to sql. I get this error from time to time and i always forget what it means. But now i write it down here so that i wont forget it again. For me this error message has always been caused by a model (dbml) that do not match the real database. It can be such a small difference as a field is nullable in the physical db but it’s not in your model. So just think back what you changed in your model recently and try to find the difference. The best would probably be to upgrade to Entity Framework but i guess that is not possible all the time.
Today i decided to upgrade our site AlternativeTo to ASP.NET Framework 4.0 and naturally there where some stuff that didn’t work. Hopefully someone else who is having the same issues will find this post and get some help from it.
I started by follow this article from MSDN about upgrading from 3.5 (or lower) to 4.0. I followed the manual upgrade process in the article since my site is kind of custom and also because i need to do the same changes in my production enviroment and wanted to know what is happening under the hood.
I should point out that i am running my code in IIS and not in the built in web server to mimic the production environment as close as possible.
It was actually kind of an easy upgrade. I should point out that i haven’t tested the site that much yet and it’s not installed in my production environment but it should probably not be that big of a deal.
Recent Comments