Subscribe

Archive June 2010:

How to solve the android.process.acore error

If you get the dreaded android.process.acore error, then you can find the solution here. First: Wipe out all your contacts data. Then restore all your contacts. Just follow the steps below.

This Android OS acore error seems to lie within contacts synchronization going wrong. Because of that we need to clear all contacts (and restore them). This is how to do it:

Step 1 - clearing all contacts information

  1. First of all, make a backup of all your contacts. You can do this easily by downloading ExportContacts from Market, fire up the app and export contacts to a csv file on your phone memory card. To be sure, copy the csv file to your hard drive too.
  2. Then go to Menu -> Settings -> Data synchronization and turn of all synchronization.
  3. Go to Settings -> Applications and tap Manage Applications. The list of applications will now take a while to load. When it's finished, find Contacts Storage, tap Clear data and tap Clear cache.
    Note: all your contacts information will now be wiped out - but you're safe - you've already exported the contacts.
  4. Turn on synchronization again (Menu -> Settings -> Data synchronization).

Step 2 - restore contacts information

Now we just need to restore the contacts information, which is saved in the csv file we created before. We will do this by importing the csv file to Gmail and let Gmail synchronize with the Android phone.

Note: You can import csv files to almost any email program or service, preferably Outlook or Gmail.

  1. Login to your Gmail account -> Go to Contacts -> Click Import (top right corner).
  2. Click Choose File -> Choose your csv file -> Click Import.
  3. Done!

Now it might take a short while (a minute or so) for the phone to synchronize your Gmail contacts. When the synchronization is finished you've got your contacts in Gmail and in the phone - and the initial android.process.acore error is solved!

My experience with HTC Hero

I got this error on a HTC Hero running Android 1.5. The phone was kind of slow at times and I got the acore error at least a dozen times a day. Up until now (June 29th 2010), I haven't heard anything about HTC addressing this issue.

Until further notice, what's suggested here should solve the problem, and let's hope HTC will give us Android 2.1 soon!

Make Forms Authentication work in IIS 7

When experiencing Forms Authentication problems in IIS 7, step through this list to make sure everythings in place for Forms Authentication to work:

  1. Make sure Forms Authentication is enabled for your website in IIS.
    In IIS 7, browse to your website, go to Authentication and make sure Forms Authentication is set to Enabled, like this:

    Forms Authentication set to enabled in IIS 7

  2. Make sure your Web.Config settings looks something like this:

    <authentication mode="Forms">
    	<forms name="aspxFormsAuth" defaultUrl="/Admin"
    		   loginUrl="/Admin/Signin.aspx" protection="All" timeout="90" />
    </authentication>

    Also, make sure you've not missed the location element:

    <location path="admin">
    	<system.web>
    		<authorization>
    			<deny users="?"/>
    		</authorization>
    	</system.web>
    </location>
  3. Make sure <modules> in <system.webServer> has the runAllManagedModulesForAllRequests attribute set to true:

    <system.webServer>
    	<modules runAllManagedModulesForAllRequests="true" />
    </system.webServer>

    If you got the 403.14 error, this might solve it.

  4. Finally, you could try the ordinary iisreset or aspnet_regiis -i command. Make sure you run aspnet_regiis -i on c:\Windows\Microsoft.NET\Framework\v4.0.30319 (or Framework64 if you're running a 64 bit OS).

How to sort EPiServer categories

Every once in a while you might want to sort your EPiServer categories. First thing that comes to mind is that the order in which the categories appear in admin mode, is the order by which the categories are sorted when displaying them. Actually, it's not always that way!

EPiServer categories seems to have no built-in sorting when retrieving them as a list when using CategoryList.

Luckily, each and one of the specific categories do have a SortOrder property which is really useful.

You can use that SortOrder property and the generic SortedList class to sort the categories, like this:

SortedList<int, ListItem> sortedCategories = new SortedList<int, ListItem>();
CategoryList cats = CurrentPage.Category;

foreach (int c in cats)
{
Category cat = Category.Find(c);
string catName = Category.Find(cats.GetCategoryName(c)).Name;

ListItem li = new ListItem(catName, catName);
sortedCategories.Add(cat.SortOrder, li);
}

ddCategories.Items.AddRange(sortedCategories.Values.ToArray());

To the top