Errors and Bugs

Upgrading to subtext 2.0-fail

It's been a long time in between updates for subtext, but, has it actually been worth it? Well, kinda. Compared to the 1.9.5 release this one seems a little rough around the edges. If you're on a shared host WITHOUT full trust, beware! Things will break in multiple places, including: DTP.aspx (The homepage) (tag "st" undefined, needed to add back 'Register TagPrefix="st" Namespace="Subtext.Web.UI.WebControls"') (My web.config merge error) /admin/Posts/  (EnclosureMimetypes config section missing requirePermission="false" attribute) /admin/Feedback/ ("FeedbackStatusFlag" undeclared, needed to prefix with the namespace) Subtext.Framework.UrlManager.UrlReWriteHandlerFactory.GetHandlerForUrl(string url) also breaks...

posted @ Friday, August 15, 2008 11:55 PM | Feedback (4)

ERROR: 42601: a column definition list is only allowed for functions returning record

Since the postgres forums appear to be a little quite, I'll post my error here as well.  This error is in regards to the postgres .net npgsql driver and seemed to only occur when using stored procs. The Error The behavior I experienced happens when using stored procedures started out with me getting the following error: ERROR: 42601: a column definition list is only allowed for functions returning "record" After checking and double checking the stored proc and the parameters I was sending in I turned Npgsql's debugging on. The error appears to be coming from a statement that looks like the following: select * from...

posted @ Thursday, March 15, 2007 9:30 PM | Feedback (0)

ASP.NET 2.0 Mozilla Browser Detection Hole

It has recently come to my attention that there is something drastically wrong with the way search engines have been indexing my ASP.NET 2.0 blog. As I've started to explain previously, this is because of the way the browser detection is set up. To give a brief rundown ASP.NET 2.0 has a default browser definition which seems to assume that the default browser is fairly capable and supports common things such as javascript and cookies. A browser definition can get inherited into other definitions which can then override specific properties to update it for that specific browser or browser version. Apparently in...

posted @ Monday, December 11, 2006 12:58 PM | Feedback (11)

Cleaning Up ASP.NET Sessions in Google

ASP.NET and Dirty Urls There are two things that have been bothering me about pages that are getting indexed in Google from an ASP.NET application. The first is somehow there are ASP.NET Session Urls ending up in the Google index. This is bad because searchers that actually do click these links are likely to get a 500 error (internal server error) because they will be trying to access a page of an expired session. How is Google finding all these 'bad' urls? Well apparently there is no browser definition in ASP.NET 2.0 for the Googlebot's useragent string, so when the spider...

posted @ Wednesday, December 06, 2006 11:49 PM | Feedback (3)

'TextBox' cannot have children of type 'DataBoundLiteralControl'.

From what I've seen this particular error is already pretty well documented, however it is one of the things that Visual Studio is a little misleading about. Seems this is a lesson why you can't always rely on intellisense to tell you what to type. In a datagrid, the following code will error: Error: <EDITITEMTEMPLATE> <asp:TextBox id=TextBox1 runat="server"> <%# TimeZoneInformation.ToLocalShortDateString( (DateTime)DataBinder.Eval(Container.DataItem, "FromDate")) %></asp:TextBox> </EDITITEMTEMPLATE> This will land you with a "'TextBox' cannot have children of type 'DataBoundLiteralControl'." error. Solution.<EDITITEMTEMPLATE><asp:TextBox id="TextBox1" runat="server" value='<%# TimeZoneInformation.ToLocalShortDateString( (DateTime)DataBinder.Eval(Container.DataItem, "FromDate")) %>'> </asp:TextBox> </EditItemTemplate>In this case the "value" tag is valid, even though intellisense doesn't think...

posted @ Monday, March 13, 2006 5:14 AM | Feedback (12)