Thanks!

FeatureUpgrading not firing in Sharepoint 2010 Sandbox

So,

you create a sandboxed solution in in Visual Studio 2010 for Sharepoint 2010, and you use a feature receiver to handle upgrades. You add a CustomUpgradeAction to your feature.xml file to fire some code when feature is upgraded.

You forget that you cannot simply write to the event log or the Sharepoint (ULS) logs in a sandboxed solution, and add some code like this:

SPSecurity.RunWithElevatedPrivileges(delegate()
{
        System.Diagnostics.EventLog.WriteEntry("My Company, solution x", ex.Message);
});

in the FeatureUpgrade method to write something to the event log, maybe to check what went wrong if you have some errors in your code.

You will see that the FeatureUpgrade method is not firing when upgrading. You won’t get any errors either, and attaching to the SPUCWorkerProcess.exe for debugging won’t help either – nothing happens.

To make things work, you have to remove the statement writing to the log, this prevents the event receiver to function properly.

P.S. If you add a statement like the one above to the FeatureActivated method, you will at least get an error message so you know what’s happening.

Review of LG GD880 Mini (No chocolate)

I have written a review of LG’s GD880 Mini. This is a nice looking LG without the Chocolate name. Although it’s not as extreme as BL40, I wouldn’t say it justifies the “Mini” name. However, it’s still a very elegant phone both in looks, screen and menus. Also, it’s also a bit cumbersome and has flaws in some areas.

Read the review (in Norwegian) in VG here.

Read the full review (in Norwegian) here.