Errors encountered with WebGL

Hello,

I am trying to build my asset bundle in WebGL but i am encountering the error messages below when i test my asset bundle on my web server.

  1. Error while downloading Asset
    Bundle: Failed to decompress data
    for the AssetBundle

  2. InvalidOperationException: Received
    no data in response at
    UnityEngine.Networking.DownloadHandler.GetCheckedDownloader[T]
    (UnityEngine.Networking.UnityWebRequest
    www) [0x00000] in
    <00000000000000000000000000000000>:0

  3. (Filename: currently not available
    on il2cpp Line: -1)

  4. Refused to get unsafe header “ETag”

  5. The file can not be loaded because
    it was created for another build
    target that is not compatible with
    this platform. Please make sure to
    build AssetBundles using the build
    target platform that it is used by.
    File’s Build target is: 19
    (Filename: Line: 1348)

Mention below are the steps i have taken

  1. switch Platform from PC,
    MAC & Linux Standalone to WebGL

  2. delete existing asset bundles from
    …\source\UnityBuildPipeline\AssetBundles

  3. delete old prefabs and created new
    ones

  4. build asset bundles in Unity >
    Assets > Build AssetBundles

Any idea if there is something i may have missed out?

I have tried to rebuild the asset bundle by going to Windows > AssetBundleBrowser and im not sure if its working but im a getting this error message

ArgumentException: The Object you want to instantiate is null.
at UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) [0x00000] in <00000000000000000000000000000000>:0

(Filename: currently not available on il2cpp Line: -1)