In subfolder aspx files are not working ?

Discussion in 'ASP.NET 2.0' started by Nadh Magic, Feb 25, 2007.

  1. *Mainsitefolder
    |
    |
    |____app_data (folder)
    |____admin (folder)
    |____controles (folder)
    |____images (folder)
    |
    |-web.configfile
    |-default.aspxfile
    |-login.aspxfile
    |-photo.aspxfile
    |-error.aspxfile

    Sir,
    In discountasp.net my website folders are just like above
    only one "mainsitefolder"
    and app_data,admin, controls, image are sum folders of my Main site forlders
    and web.config, default.aspx,login.aspx,photo.aspx, error.aspx files in the
    "mainsitefolder"
    now everything working fine. Thank you discountasp.net

    Now i created a sub folder in "Mainsitefolder" under the name of "testfolder"
    in this "testfolder" i developed some of my web pages and some of subfolders
    like bin,app_data,images and also some of the pages like default.aspx,web.config,
    textpage1.aspx please see below pic.

    * Mainsitefolder
    |
    |
    |____app_data (folder)
    |____admin (folder)
    |____controles (folder)
    |____images (folder)
    |
    |__* testfolder (folder)
    ||
    ||
    ||_app_data (folder)
    ||_images (folder)
    ||
    ||-web.configfile
    ||-default.aspxfile
    ||-textpage1.aspxfile
    |
    |
    |
    |-web.configfile
    |-default.aspxfile
    |-login.aspxfile
    |-photo.aspxfile
    |-error.aspxfile


    PROBLEM IS: In my "testfolder" default.aspx, and textpage1.aspx are not working
    the path is www.mysitename.com\testfolder (or) www.mysitename.com\testfolder\default.aspx
    then it goes to my error.aspx

    is there any changes in my "testfolder" - web.config file
    or in my "mainsitefolder" - web.config file

    please explain ........
    thank you.

    Nadh
     
  2. Whats the exact error message?

    Since you have the web.config in your sub-folder('testfolder '),you may need to install a web application(using web appln. tool in your Control Panel) on the sub-folder,depending on what you have in your web.config.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Vikram Sir!
    error message:
    no message sir
    its directly go to error page.
    Install web application of my "testfolder" even though not working.

    My requirement is
    how to access all my aspx files in "testfolder"
    for that any changes in web.config files in both directories?
    Please explain..

    Nadh
     
  4. If you just want treat 'testfolder' as a regular sub-folder with aspx files in it,unintall the web app. and get rid of the web.config.

    To view the error message,set customerrors mode to 'Off'
    i.e
    <customErrors mode='Off' defaultRedirect='error.aspx'> from the web.config within 'testfolder'

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page