+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Access XML file - error 404

Access XML file - error 404

6 posts, 0 answered
  1. Liviu
    Liviu avatar
    6 posts
    Registered:
    03 Aug 2012
    23 Apr 2014
    Link to this post

    Why when i am trying to access an XML file stored on a folder called "support" from site root, the browser show "404 - File or directory not found.". If i move the file on site root, everything is fine.

    Only with XML files this is happening, for text files it is working fine.

    Is there any solution to solve this? Or why is this happening?

  2. kamii47
    kamii47 avatar
    71 posts
    Registered:
    02 Mar 2007
    24 Apr 2014
    Link to this post

    Can you show us your code

  3. Liviu
    Liviu avatar
    6 posts
    Registered:
    03 Aug 2012
    24 Apr 2014 in reply to kamii47
    Link to this post

    I dont use any code, i am trying to access the file directly from browser.

  4. kamii47
    kamii47 avatar
    71 posts
    Registered:
    02 Mar 2007
    30 Apr 2014 in reply to Liviu
    Link to this post

    From visual studio click properties of that file.then there is a browse property

    Give url like ~/test.xml

  5. Liviu
    Liviu avatar
    6 posts
    Registered:
    03 Aug 2012
    30 Apr 2014
    Link to this post

    Thanks for reply kamii, i tried that but didnt work. Below is a print.

     

     

  6. kamii47
    kamii47 avatar
    71 posts
    Registered:
    02 Mar 2007
    30 Apr 2014 in reply to Liviu
    Link to this post

    I have checked the same sort of xml like your folder structure but it works fine even without mentioning browse url. looks like some configuration setting issue. which version of Sitefinity, IIS and .net framework you are using?

    We might also have to look your config file

6 posts, 0 answered