locked
How to access aspx file from subfolder having web.config file RRS feed

  • Question

  • User-1837324441 posted

    Hello Experts,

    I have been hanged in one issue, please try to let me out,

    I have one project and subproject inside it.

    main folder is MainProject and subfolder is ProjectsFolder

    I am having one web.config file in MainProject and one web.config file in another subfolder i,e ProjectsFolder

    here i want to access one aspx file from Main project to subproject like below

    //MainProject

    //MainProject/ProjectFolder/Hello.aspx

    when i am trying to access this hello file from subfolder, due to web.config file in it, it wil not allowing me and giving me error,

    please help me out,

    thanks

    Monday, August 1, 2011 9:23 AM

All replies

  • User-1917713218 posted

    Hello,

    Which error you are getting?

    Monday, August 1, 2011 9:27 AM
  • User-1837324441 posted
    I am getting this error..please check it out.



    Line 55: Set explicit="true" to force declaration of all variables. Line 56: --> Line 57: <sessionState timeout="30"></sessionState> Line 58: <compilation debug="true" strict="false" explicit="true"> Line 59: <assemblies>

    Monday, August 1, 2011 9:34 AM
  • User-1917713218 posted

    OK

    Try to increase that value say "120" and where you had written code to access your aspx page.

    Monday, August 1, 2011 9:40 AM
  • User-1837324441 posted

    My folder structure is like this,

    Main project folder:

    //MainProject/Default.aspx

    //MainProject/web.config

    Sub Project Folder :

    //MainProject/SubProject/Default.aspx

    //MainProject/SubProject/web.config

    I am calling //MainProject/SubProject/Default.aspx on page //MainProject/Default.aspx by Ajax call,

    and it is not allowing me to call due to web.config in that folder.

    I know one way is iFrame but i want to know if there is another easy way to do this.

    Waiting for your reply..

    Tuesday, August 2, 2011 12:54 AM
  • User825619085 posted

    Hi

    Please comment the "session" and "authentication" section both in child application web.config file because you have subfolder application. when you hit sub folder page it's use parent application config.

    Tuesday, August 2, 2011 4:43 AM
  • User-1837324441 posted

    NO, Not worked

    Wednesday, August 3, 2011 6:34 AM