Loading scene from asset bundle fails in Unity 4

I used to load a level (scene) from a bundle after I it is downloaded in Unity 3.
Same code fails to run in Unity 4 throwing an exception saying that :

Level ‘name of my scene’ (-1) couldn’t be loaded because it has not
been added to the build settings. To add a level to the build settings use
the menu File->Build Settings…

Here is a code I am using:

...
stream = new WWW(url));
yield return stream;
stream.assetBundle.LoadAll();
Application.LoadLevel(levelName);
...

Even the Unity’s sample project generates the same exception and doesn’t work.

Please note that the scene is not available in the starter package and has to be loaded from a bundle.

Any idea?

The problem was that in Unity 4 when you want to load a level (scene) the name is case-sensitive. In Unity 3 this was not case-sensitive.

You can’t use Application.LoadLevel to load assets in asset bundles.

Instead you should call Instantiate(stream.assetBundle.mainAsset);