Ektron: The Controls collection cannot be modified …

For the past couple of hours I have been banging my head and pulling my left over few strands of hair to figure out what’s wrong with my code causing the below exception.


The Controls collection cannot be modified because the control contains code blocks (i.e. < % ... %>)

I finally found out the solution from a least expected settings. Continue reading

Login failed for user ‘IIS APPPOOL\DefaultAppPool’.[EkSite->GetSiteVariables()]

As I have mentioned earlier, I started playing around with the Ektron 400 CMS.NET content management system. Soon after I installed starter kit websites, I got the below error.

Login failed for user 'IIS APPPOOL\DefaultAppPool'.[EkSite->GetSiteVariables()]

My system configuration is Windows 7 x64, IIS 7, .NET 3.5, SQL 2008 (with NT Authentication) and Ektron 7.6.6. If you got that error, this one could be your fix. Continue reading

How to set property of an object created using Reflection?

The VB.NET to C#.NET converter tool from Developer Fusion is awesome! It convert code from VB to C# or vice versa and primarily used by enthusiasts to learn the other language syntax. The tool does a great deal of work in trans-coding. However, not every thing is translated appropriately and you may have to clean up a little bit. Here is an example of issues I faced while using Reflection. Continue reading

.NET Reverse Stream Reader

How to read file bottom up:
Read text file bottom up:

When we process the flat files, most of the times we process it top to bottom. However, there might be only a few times situation come where you you have to read bottom up. Like the other day, I have huge flat file about 250 MB and I need some information could be located anywhere in last 50 lines. Since length, size and # of lines I might have to look into in such files vary, reading top to bottom isn’t an optimal solution. Continue reading