|
-
Feb 26th, 2008, 12:35 PM
#1
Thread Starter
Fanatic Member
[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
-
Feb 26th, 2008, 12:41 PM
#2
Thread Starter
Fanatic Member
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
-
Feb 26th, 2008, 12:46 PM
#3
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
-
Feb 26th, 2008, 12:48 PM
#4
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.
-
Feb 26th, 2008, 03:38 PM
#5
Thread Starter
Fanatic Member
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
-
Feb 27th, 2008, 04:27 AM
#6
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.
-
Feb 27th, 2008, 04:28 AM
#7
Re: [2008] Application vs Project
I just realized what an ambiguous answer that was.
-
Feb 27th, 2008, 11:44 AM
#8
Thread Starter
Fanatic Member
Re: [2008] Application vs Project
 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
-
Feb 27th, 2008, 05:15 PM
#9
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.
-
Feb 27th, 2008, 08:03 PM
#10
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|