Results 1 to 14 of 14

Thread: Web Application Location Help [Resolved]

  1. #1

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718

    Web Application Location Help [Resolved]

    When i make a web application it works fine but the only problem i got is that for some reason it wants to be in the root of the web and not a sub folder. Does anyone know how to fix this problem cause i'd rather not have them all sitting in the root web, but rather subfolders for each of their tasks. When i place it in a sub folder of the root web, the aspx form throws an error, but when in the root web, it works perfectly. Anyone know how to fix this please?
    Last edited by Ideas Man; Oct 13th, 2003 at 06:13 AM.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I haven't tried this but try setting the folders inside the project itself (including them in the project) and moving the folders (again in the project itself) inside VS IDE.

  3. #3

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    What do you mean?

    It crashes on this line of the aspx file:

    VB Code:
    1. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="EasyQ.aspx.vb" Inherits="ComputerQuiz1.EasyQ"%>

    but it's not doing it now, how very odd, but it had something to do with the "ComputerQuiz1.EasyQ" part. Unfortunatly i can't reproduct the error to tell you exactly what it said, but now it's working so hopefully it stays that way

  4. #4
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Not every folder in the web runs the ASP.NET files. In order to run a project in a folder, you should open IIS manager snap-in, find that folder, right click on it and in the properties, Directory,Application Settings, create an application for it. Alternatively you should make Virtual Directories.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  5. #5

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    Ok thanks, i'll try that if the error pops up again.

  6. #6
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Forgot to mention in the previous post that if you start a new project by VS and set the path from the start, VS create the application in that folder and you dont have to do it yourself.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  7. #7

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    Yeah, I already knew that, but I make and debug it on the local Web Server, then transport it to my proper Web Server, the problem lied there.

  8. #8
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    So the problem is that you have to use virtual directories or create application. The reason that it runs in the root folder is that the root folder has already the application created called "default Application".
    Last edited by Lunatic3; Oct 13th, 2003 at 03:02 AM.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  9. #9

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    Yeah, but doesn't the sub folders just use the application from the root folder? I checked on a sub folder and the application name is the same as the root folder, only you can't rename it.

  10. #10
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Originally posted by Ideas Man
    Yeah, but doesn't the sub folders just use the application from the root folder? I checked on a sub folder and the application name is the same as the root folder, only you can't rename it.
    No, they dont use it. Click on Create to create an application that folder.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  11. #11

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    Then what? Give it a easy to identify name and that's it?

  12. #12
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Should work. Or try creating a new virtual directory.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  13. #13

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    Ok, i'll have a go and tell you how i got on.

  14. #14

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    OK, I created a new application for the sub folder and so far, so good . Thanks for your help, very much appreciated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width