Inetpub or App folder?

J

Jim Little

Can someone please explain to me where the files in an ASP.Net project
should be physically located? I thought they should be in an application
folder, such as C:\myapps\app01\files, but when I drag-and-drop files to the
Solution Explorer they end up in C:\inetpub\wwwroot\app01!

The solution--and all of its projects--seems to work no matter where the
underlying files are physically located.

Worse, it seems that some files exist in BOTH the "app" folder and the
"inetpub" folder. The only way to know which file is being referenced by a
project seems to be to look at the properties page for a particular file in
Solution Explorer.

All this is very confusing to me. Is there an article that discusses the
concept of physical files and virtual files in ASP.Net projects?

Thanks,
-- Jim
 
C

Cowboy \(Gregory A. Beamer\)

The folder for the solution and the folder for the project files are often
two different locations. The project, at least in pre-Whidbey projects, has
to be in a web root, so inetpub is quite common for the actual project
files, as IIS has to serve up the pages.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
J

Jim Little

I understand that the .slnI guess what I'm trying to figure out is this:
Should ALL files in the Inetpub\wwwroot path? By "All Files", I mean all
project folders in the ASP.NET solution--aspx's, code-behind files, images,
documents, etc.? If so, is the same true if these files are under Source
Control?
 
C

Cowboy \(Gregory A. Beamer\)

On the development environment, yes. In production, you only need the ASPX,
ASCX, ASMX, ASAX and config files, along with the DLL in the /bin and any
support files (images, javascript, et al). If you use Visual Studio .NET to
develop, the copy project has a setting to only copy files needed to run the
project.

Hope this helps.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,951
Messages
2,570,113
Members
46,698
Latest member
alexxx

Latest Threads

Top