Web Application in Subdirectory

Discussion in 'ASP.NET / ASP.NET Core' started by igavemybest, Nov 23, 2008.

  1. Hello, I apologize for bothering you with this, I just needed clarification below that the Web Application tool on your site takes care of the problems mentioned below, correct? This is an email I got from one of my programmers and I am not 100% sure what he is talking about. Any help would be great.

    EMAIL-
    ok I have uploaded my local working application into /job/ folder.

    one note that /job directory db has aso asp.net membership and dailyosh.com db has also membership We must have to consider one membership.

    if /job folder is mapped as different application then it must be retrived with different url than dailyosh.com/jobs because accessing it from dailyosh.com/jobs will apply appication setting(web.config) of dailyosh.com and /job folder is no longer working.

    Send your suggestion.

    I am still working to setting up two database membership dynamically. although its a longer task let me know is it valuable to you or not.
    note that i am not sure I can do it because in one application there must be only one form authentication.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    The web application tool should setup the directory as an app root which should fit your needs.
     
  3. Directory is setup as web application now but it seems root directory web.config setting creating problem.







    Code:
    [b]
    Line 90: 			</providers>
    Line 91: 		</roleManager>
    Line 92: 		<profile enabled="true" automaticSaveEnabled="false" defaultProvider="DashboardProfileSqlProvider" inherits="Dropthings.Web.Framework.UserProfile">
    Line 93: 			<providers>
    Line 94: 				<clear/>
    above line is the error for my appplication directory which isnot have any concern with this file setting "Droptings." etc..
     
  4. Code:
    [b]
    Line 90: 			</providers>
    Line 91: 		</roleManager>
    Line 92: 		<profile enabled="true" automaticSaveEnabled="false" defaultProvider="DashboardProfileSqlProvider" inherits="Dropthings.Web.Framework.UserProfile">
    Line 93: 			<providers>
    Line 94: 				<clear/>

    above error comes for the directory which i configued as webapplication. Note that directory application has not concernt with this root web.config thn why it showing this error.
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    web.config WILL inherit down to your child app. You will need to explicitly undo those inherited attribute by using the <remove> tag.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page