Problem while downloading assetsbundle

hi ,
I have this code to download assetsbundle from my website

using UnityEngine;
using System.Collections;

public class LoadAssets : MonoBehaviour {
	public string URL="http://www.myweb.com/game_files/KS05.unity3d";

	IEnumerator Start () {
		WWW www = WWW.LoadFromCacheOrDownload(URL,1);
		//wait for download to complete
		yield return www;
		AssetBundle bundle=www.assetBundle;
		GameObject obj = bundle.Load("KS05",typeof(GameObject)) as GameObject;
		
		Instantiate(obj);
		
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}

and I get this error

You are trying to load data from a www stream which had the following error when downloading.
Rejected because no crossdomain.xml policy file was found
UnityEngine.WWW:get_assetBundle()
<Start>c__Iterator1:MoveNext() (at Assets/Scripts/LoadAssets.cs:11)

and this error also

NullReferenceException
LoadAssets+<Start>c__Iterator1.MoveNext () (at Assets/Scripts/LoadAssets.cs:12)

I think you will get “cross domain” error only when target platform is webplayer and you are running it from local computer and it tries to access a file from other domain.

You try this with platform other than webplayer.

Check this for more information.

The second error is because bundle.Load() function fails and returns NULL, then you are
trying to instantiate from it (from null).

hi guys I put this web.config by adding .unity3d extension in MIME Types (IIS)

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".unity3d" mimeType="application/octet-stream" />
        </staticContent>
    </system.webServer>
</configuration>

I put web.config file in game_files directory