.NET
When we recently upgraded our project from VS 2008 to VS 2010 everything went just fine. The project was converted and the conversion log didn't report any errors. Two days ago we deployed our web application to the production servers, that's when the problems started to show up. The application couldn't connect to several services. The error was that the Web Reference URL to the services had been changed from https to http. We hadn’t caught this error in our test environment because the https restriction was not there in that environment. ...
Yesterday we ran into an odd problem with our load balancers. To give you some history, we use EPiServer Community to handle users and store user attributes. The application works in both http and https depending on where on the site you are at the moment. You can imagine the look on our faces We had just deployed our application to a load balanced test environment when the application started to act strange. The problem was that when we saved attributes to a users profile in http the attributes where not updated when going into a...
@rewdboy a coworker had a small problem earlier today, he just couldn't find the good old Create GUID application that is packaged with Visual Studio. The tool has not been removed from the IDE it’s still there. It depends on what development type you have chosen. You may remember the first time you start Visual Studio after installing it prompts you asking what type of development you are planning to do. There are six choices, the one that I know has the Create GUID tool is the Visual C"# Development Settings, If you went with Web Development Settings you...
A nice feature of ReSharper, besides all refactoring goodness, is the ability to highlight the current line. That is the line where the caret is, is highlighted. This makes it so much easier to get back and find where you last left off or where the search result is when searching around in Visual Studio. If you have ReSharper it’s easy to do this. Just go to ReSharper’s options menu ReSharper –> Options. And from there go to the Editor menu and select “Highlight current line” If you have a customized color theme like I...
After I reinstalled my computer to use Windows 7 my Visual Studio 2008 began to start the Cassini development server included in Visual Studio 2008. This has been annoying me for quite some time, not that it’s any problem just that it gets started by default without me asking for it. So I went and disabled it. I did it by formatting the ProjectName.csproj.user file. This file is meant to work as the web.config and machine.config files, where the machine.config has all settings but they are overridden by the settings that match in the web.config file,...
I’m writing an account registering control. This control needs to show the user how to register for a new account. But when modifying this control the pages editors must be able to see the hole flow. So I went looking for a smart way to display the control in two ways depending on the context it’s being viewed in. I found Jacob Khan’s blog post in EPiServer labs that seemed nice but I didn’t get it to work. The thing I ended doing was to get the id from the query string, and parsing it to a PageReference to...
A common task is to take an array of strings or a List<string> and parse it to a comma separated value string for use in some sort of light weight media like a cookie or an url. The way that this is usually done is to loop the array and concatenate the strings with a trailing comma “ , “ to then remove the last one. Yesterday I was on my way in doing just this procedure when I thought that there’s got to be a better way to do this. After doing some research with...
Now a days no one uses arrays any more, the reason why, because they are a pain to work with and seriously, why would you when we have the generic List<T> collection. If you are using object collections that implement IEnumerable like List<T>, List(Of T) in VB, you are in a world of joy. And if you are using Linq then you are in a world of joy in Christmas!If there is one technology that have had an impact on my coding then it would be Linq. Things that where a pain to do like parsing an XML file and...
Yesterday Scott Gu announced the finishing and release of the new book for ASP.NET MVC 1.0, This book was written by Scott Hanselman, Rob Conery, and Phil Haack. Scott Gu’s contribution to the book is a 185 pages long startup project Walkthrough that he is releasing free of charge and with a Creative Commons with no derivatives! You can also download the source code from CodePlex. The book is just printing so you will have to wait some time. Hope it’s not going to be one of those lengthy I-like-my-own-voice type of book, but with a 185 pages for...
There are a many tools that makes your life as a programmer even better. For the peeps who like nice graphics and colors then DevExpress has their Refactor! Pro and CodeRush Xpress tools. Although they are nice they don’t fit in my programming style. This tools make justice for their names, Refactor! – do it now! and CodeRush. I don’t like to code in a rush. I like to put some thought to it and take the time it takes to think about the problem domain, do some coding, refactor it, tweak it and then code some more. The...