Results 1 to 10 of 10

Thread: [RESOLVED] [2008] Application vs Project

  1. #1

    Thread Starter
    Fanatic Member space_monkey's Avatar
    Join Date
    Apr 2005
    Location
    神と歩くこと
    Posts
    573

    Resolved [RESOLVED] [2008] Application vs Project

    Is there a benefit to creating a Web Application vs a Website Project?

    As a follow up to that when i have create a web application it doesn't give me the choice to put class files in the app_code folder like I would with a project, and I can reference the classes in the codebehind. But when I go to run the project, via the play button, it gives me an error stating that the class is not defined. Am i missing something, is there something I'm supposed to be doing to get those files compiled with the rest of the application?

    ~S_M
    Using VB6 or VB.net 2008 with .net 3.5
    "Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad

  2. #2

    Thread Starter
    Fanatic Member space_monkey's Avatar
    Join Date
    Apr 2005
    Location
    神と歩くこと
    Posts
    573

    Re: [2008] Application vs Project

    Well for some reason its my class files are now working properly.... odd. The first question still remains, and if you could shed any light on the class problem it would be greatly appreciated.
    Using VB6 or VB.net 2008 with .net 3.5
    "Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2008] Application vs Project

    Read about the differences here.

    If you're going to use a version control, prefer the web application project.

    http://msdn2.microsoft.com/en-us/lib...px#wapp_topic5

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2008] Application vs Project

    Hard to tell without looking at the project files. Was it a namespace that you weren't importing? Sometimes namespaces are added based upon the folder structure you use.

  5. #5

    Thread Starter
    Fanatic Member space_monkey's Avatar
    Join Date
    Apr 2005
    Location
    神と歩くこと
    Posts
    573

    Re: [2008] Application vs Project

    Thanks for the link.

    The only change i made from the first time i messed around with the web app to the second was to drop all my code into a subfolder called "code" (for lack of a better imagination). I'm not sure if that did the trick or not. Should i be using a namespace for these classes?
    Using VB6 or VB.net 2008 with .net 3.5
    "Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2008] Application vs Project

    You don't have to, you can if you want to. It is, however, not an uncommon method to have the folders reflect the namespace structure they are under. When it comes to web site projects, it should be under app_code. In web application projects, anywhere. But this includes even the root.

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2008] Application vs Project

    I just realized what an ambiguous answer that was.

  8. #8

    Thread Starter
    Fanatic Member space_monkey's Avatar
    Join Date
    Apr 2005
    Location
    神と歩くこと
    Posts
    573

    Re: [2008] Application vs Project

    Quote Originally Posted by mendhak
    I just realized what an ambiguous answer that was.
    ummm yeah...
    Using VB6 or VB.net 2008 with .net 3.5
    "Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2008] Application vs Project

    Let me try again.

    It's useful to give a namespace to your classes as long as they are a logical separation. So you can have something like SpaceMonkey.Utilities as a namespace for some classes and SpaceMonkey.Data as another namespace for other classes.

  10. #10

    Thread Starter
    Fanatic Member space_monkey's Avatar
    Join Date
    Apr 2005
    Location
    神と歩くこと
    Posts
    573

    Re: [2008] Application vs Project

    That does make a lot of sense. Thanks
    Using VB6 or VB.net 2008 with .net 3.5
    "Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad

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