Inetpub or App folder?

  • Thread starter Thread starter Jim Little
  • Start date Start date
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
 
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!
**********************************************************************
 
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?
 
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!
**********************************************************************
 
Back
Top