Category Archives: Web development and programming

GridView problem – Item has already been added. Key in dictionary: ‘Timestamp’ Key being added: ‘Timestamp’

In general ASP.net, this can be caused by calling DataBind() more than once on a databound control. Also be aware that this is influenced by automatic databind being on too. Relating this to Sitecore CMS, you should be aware that Sitecore ships … Continue reading

Posted in ASP.net, C#, Sitecore, Web development and programming | Tagged , , , , | Leave a comment

Sitecore preview bug – looking at web database

Sitecore v6 introduced another preview tool accessible from [Presentation] > [Preview] as opposed to [Publish] > [Preview]. The new preview mode opens another tab in the content editor which shows the preview of the current item. This is all fine … Continue reading

Posted in Sitecore, Web development and programming | Tagged , , , , | 2 Comments

Sitecore – Could not load file or assembly System.Data.SQLite

After installing Sitecore v6, you get the following error when viewing the website or sitecore UI: Sitecore Could not load file or assembly ‘System.Data.SQLite, Version=1.0.48.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139′ or one of its dependencies. An attempt was made to load a program … Continue reading

Posted in ASP.net, C#, Sitecore, Web development and programming | Tagged , , | 4 Comments

Sitecore ContextItem.Database.SelectItems() and languages.

While poking around in the shared source RSS module for Sitecore, I found that several aspects of the “static feeds” feature loose language context during publishing. This only effects static feeds whereby the rss.xml file(s) are written to disk and linked-too … Continue reading

Posted in ASP.net, Sitecore | Tagged , , | Leave a comment

Cannot install Sql server Express 2005 in Windows Server 2008 x64 “cannot continue because the installation package could not be opened….”

The standard lightweight version of SQL Express 2005 is missing files that are required to install on Sever 2008 x64. You cannot install the lightweight version on server 2008 / 64-bit windows OS. Instead you must simply download the full package … Continue reading

Posted in ASP.net, SQL Server 2005, Web development and programming | Tagged , , | 1 Comment

Silverlight web services cross domain warning

You get a cross-domain web services warning when debugging your silverlight application. This can be caused simply by leaving the wrong project highlighted when you hit F5. Select your .web project or the project that contains the aspx file hosting … Continue reading

Posted in ASP.net, C#, Silverlight, Web development and programming | Tagged , , , , | Leave a comment

Silverlight and LINQ problems: ‘YourDataClassesDataContext’ does not contain a constructor that takes ’0′ arguments

After rebuilding my DBML file with SQL metal, my DataContext class no longer has a parameterless constructor. This is due to differences between the was that Visual studio generates the DBML (with SQL metal) and how SQLMetal command-line does by default. The parameterless … Continue reading

Posted in ASP.net, C#, Silverlight, SQL Server 2005, Web development and programming | Tagged , , | Leave a comment

Named pipes / Connectivity error. Cannot see SQL server connection or databases from Visual studio 2008

Can be caused by the SQL server browser service being disabled.  Set to automatic and start the service. Restart the ‘add connection’ wizard from Visual studio and the local SQL server host and databases should be discoverable again.

Posted in ASP.net, SQL Server 2005, Web development and programming | Tagged , , | Leave a comment