Follow @Lusse3 (279 followers)

Flickr Recent Photos

Soluppgången i KnivstaEn vacker morgonPalt palt i stora lass! Sara lyckades magnifikt med sin första palt sats #bArkham horrorDe gjorde bättre tidningar förr :) "gör det själv" från 1970 talet #fbPlanterar litePotatistävlingDragkampDragkampPotatistävlingMini DragkampKapten Liam

Kategorier

Visual Studio 2008 System.Runtime.InteropServices.COMException

I had to make a clean Vista install on my machine and all of a sudden I was getting System.Runtime.InteropServices.COMException when opening old solutions. The error says very little to the user but what it really want’s to say is:

Install IIS 6 WMI Compatibility by going to Control Panel, Programs, Turn windows features [...]

EPiServer CMS5 Softlinks. How to find a documents linking pages

Using EPiServers softlink can really come in handy in different situations.  Mostly of course when you need to gather information from the linked pages of a document.

Here’s an example on how to use this:

Example in VB.Net

Dim f As EPiServer.Web.Hosting.UnifiedFile = TryCast(System.Web.Hosting.HostingEnvironment.VirtualPathProvider.GetFile(filename), EPiServer.Web.Hosting.UnifiedFile) Dim filecollection As EPiServer.DataAbstraction.SoftLinkCollection = EPiServer.DataAbstraction.SoftLink.Load(f) For Each file [...]

* % & : Special Characters in URL and files causing HTTP 400 Bad Request

One of our customers have a lot of PDF that are linked to their site. Some of these PDF files have % in the filename and this causes a HTTP 400 Bad Request and yes they are encoded correctly. The same error happened with other characters such &, * and :

Finally, the solution [...]

SQL converting datetime to shortdate

I’ve a table where I need to select the posts with the latest date. Problem is that when you get the latest date it also gets it by the hour, meaning that it will try to fetch everything older or equal to the date + time, which is nothing. There for, I need to [...]

Unexpected Provider error! This may be caused by invalid combination of Role and Membership providers. EPiServer

This error happens after a migration to EPiServer CMS 5 r2 when you try to change the password of a user or possibly create a user. The error is very missleading and has nothing to do at all with the role nor membershipprovider. The error is actually a very simple one.

Another user is [...]

Flashdeveloping in AS3

An ex colleague of mine has started up a blog regarding flashdeveloping in AS3. Robert is a very talented flash developer with a huge portfolio on his back. If you fancy Flash developing, then head over to his blog and bookmark it. The link can also be found on the right column of the page

Comparison of Strict and Transitional XHTML

During a makeover of a site I ran into a great site which puts up what that  has been removed from strict xhtml and also a very good overview of all elements and attributes for different doctypes. You can search or browse all elements and see which attributes that are allowed which is of [...]

EPiServer CMS 5 Wrong culture language

So during an upgrade to EPiServer 5, I ran into this problem where the culture was wrong and all translations were being translated to English instead of Swedish, this even though the web.config was correctly changed to ”sv-SE”.

After som trial and error I got to set the culture in onpreinit in the [...]

Workaround for = EPiServer:Property renders an extra Div

It’s comfortable to just use properties directly in the page. i.e

<EPiServer:Property ID="MainBody" runat="server" PropertyName="MainBody" />

Problem with this, is that it will render an extra div which feels really unnecessary. I’ve tried to look around for a setting of some sort to turn this off but not wanting to waste too much of [...]

Customizing the PasswordRecovery Control .Net

The PasswordRecovery control is very handy and you can pretty much use it out of the box. But the design might not fit in your site and the styles provided by the control itself might not be what you need. But it’s rather easy to customize the way you want it too. I posted [...]