Feeds:
Posts
Comments

Archive for the ‘C#’ Category

Whenever using Databound server controls with Sitecore need to be aware that Sitecore  meddles with some controls. This nasty issue which can have you banging your head against the wall for hours (days?) has been previously blogged by Mark Cassidy but I guess it depends on what symptom you’re having first, and wether you relate it back to this [...]

Read Full Post »

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 with the following line in web.config: <!– AUTOMATIC DATA BIND Indicates if the data bind function [...]

Read Full Post »

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 with an incorrect format. This is actually detailed in page 20 of the sitecore troubleshooting [...]

Read Full Post »

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 the application. If you run debugger with the silverlight project (containing your page.xaml) selected, you [...]

Read Full Post »

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 constructor simply takes the connection string from web.config rather than requiring one to be passed [...]

Read Full Post »