2006-06-29

"Specified Service Already Exists"

I ran into this problem when creating a setup in .NET and choosed "Repair" at a later stage. The problem was due to that I was creating my own Custom Actions. When doing a "Repair" the custom install action is run as well. To prevent this you need to add: "Not Installed" at the Condition property of the Custom Action.

2006-06-12

Problem - loop through a repeater for controls

I was using ASP.NET, C#, and wanted to auto translate some controls on a Page. I had no problems looping through controls like the GridView but when I tried the Repeater control I ran into problems. No controls or items were found when looping through it.

The problem was that the controls/items were created at a later stage than Page_Load where my function was executed.

I moved my function to Page_PreRender and everything went just fine..