can not find XML files in subdirectories

Discussion in 'ASP.NET 2.0' started by daviswcom00, Sep 13, 2005.

  1. Hi,

    I'm getting the following err msg when navigating to some of my pages.
    XML data is located in subdirectory app_data. I don't know how to use the
    Web Application Tool to view folder/directories under the Beta Hosting Account
    so I am unable to confirm that xml files are actually in folder. Any help/suggestions
    would be appreciated. You can hit my app at url http://beta-178367.server1.dotnetsandbox.net/index.aspx

    Thanks, Wayne.

    .....here is the err msg


    Server Error in '/' Application.


    Could not find file 'e:\web\beta-178367\htdocs\App_Data\executive.xml'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IO.FileNotFoundException: Could not find file 'e:\web\beta-178367\htdocs\App_Data\executive.xml'.

    Source Error:





    Code:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:





    Code:
    [FileNotFoundException: Could not find file 'e:\web\beta-178367\htdocs\App_Data\executive.xml'.]
       System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1885113
       System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +916
       System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +114
       System.Web.UI.Control.OpenFileAndGetDependency(String virtualPath, String physicalPath, CacheDependency& dependency) +133
       System.Web.UI.WebControls.XmlDataSource.GetReader(String path, String content, CacheDependency& cacheDependency) +224
       System.Web.UI.WebControls.XmlDataSource.PopulateXmlDocument(XmlDocument document, CacheDependency& dataCacheDependency, CacheDependency& transformCacheDependency) +296
       System.Web.UI.WebControls.XmlDataSource.GetXmlDocument() +216
       System.Web.UI.WebControls.XmlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +24
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +129
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
       System.Web.UI.WebControls.GridView.DataBind() +4
       System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
       System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +41
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1787
    
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. .....found the problem....when using visual studio copy website utilty I didnt copy folder contents .........


    Thanks Bruce, yes that is exactly what I did, used the ftp utility to confirm/verify that the files were in the folders.


    Thanks for the quick reply .......................





    Wayne.[​IMG]
     

Share This Page