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
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 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
Last night, I slept early 10.45 PM, however wokeup @ 5.45 AM after having my regular # of sleep hours. I have tried my best to sleep for next couple of hours, as there is yet another long work day is awaiting me.
I stopped by work 8 AM this morning and started to work on my issues with code getting work on Visual Studio 2005 IDE. The following errors from yesterday’s port pissed me off.
- Compiler Error Message: BC30456: ‘InitializeCulture’ is not a member of ‘ASP.login_aspx’.
- ASPNET: Make sure that the class defined in this code file matches the ‘inherits’ attribute, and that it extends the correct base class (e.g. Page or UserControl).
- Login is ambiguous in the namespace MyNameSpace.MyApplication
I had a source code with .aspx file containing
<%@ Page Language="VB" AutoEventWireup="false"
So, for some reason I changed CodeFile to CodeBehind and voila all the above problems fixed. Now, I need to figure out how in the hell I had CodeFile instead of CodeBehind and whatz the difference between them.
Shyam K. Arjarapu
Today, I am very much pissed of Visual Studio 2005 wasting me 4 hours of worthful time and headache by the end of the day. I thought of making use of Source Safe features that comes with Team Suite for Database Developers and ported my current application from .NET 1.0 to 2.0. At first, the migration was smooth and never had any errors. All of a sudden stupid errors crept in from nowhere. The following errors in my UserControls and Login page have made me go crazy with inconsistent errors thrown by the .NET compilers
1) Compiler Error Message: BC30456: ‘InitializeCulture’ is not a member of ‘ASP.login_aspx’.
2) ASPNET: Make sure that the class defined in this code file matches the ‘inherits’ attribute, and that it extends the correct base class (e.g. Page or UserControl).
3) Login is ambiguous in the namespace MyNameSpace.MyApplication
At the end of the day, I gave up for the good. I am very much frustated with the schedule, I had week. Hopefully, some sound sleep and getting rid of .NET 2.0 framework would leave some peace of mind for the time being.
Shyam K. Arjarapu