"resource not found" in VS, but is found on chrome RRS feed

  • Question

  • hi, my html file is like this:

        <p id="test"></p>

    and, my css file:

    #test {background:url(../Application2/images/logo.png) no-repeat left 0px; width:100px; margin:0 5px 0 5px; left:10px; position:relative;}

    if I run on chrome, works fine, but if I run on visual studio, I get this error

    APPHOST9623: The App Host was unable to resolve ms-appx://f88d5f74-1062-4c2f-a569-1206e9e00747-7jzg5xqeezyfr/Application2/images/logo.png due to the following error: RESOURCE_NOT_FOUND.

    Wednesday, June 20, 2012 6:58 PM


  • You should refer to your files relative to the package (project) root.  So in your case above, it should be "...url(/images/logo.png)...", not starting with Application2.

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, June 20, 2012 7:45 PM