Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 187695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:52:09+00:00 2026-05-11T15:52:09+00:00

Since all files in a web project are compiled into single assembly, then does

  • 0
  1. Since all files in a web project are compiled into single assembly, then does this assembly maintain a directory structure? For example, if a file in a root directory references a file in a subdirectory, then how could this reference still be valid when the two files get compiled into same assembly?

  2. Assume a web project has the directory structure shown below. Since all of web project’s ASPX files get compiled into a single assembly WebProject1.dll, how is this assembly able to record/memorize the directory structure? Thus, when you deploy WebProject1.dll to a web server and user makes a request for http://WebProject1/some_SubDir/default.aspx, how will WebProject1.dll be able to figure out which Page to render?

    WebProject1\SubDir (where WebProject1 is a root directory) WebProject1 — contains several ASPX files WebProject1\SubDir — contains a file default1.aspx.

  3. When we deploy the Web project, must we create the same directory structure on a web server (WebProject1\SubDir), even though we won’t put any ASPX files into those directories?

  4. I assume that on Web server WebProject1.dll should be placed into the Bin directory?

thanx

EDIT:

Only the sourcecode is compiled into the assembly, you still need to upload the aspx files into a matching directory on the server.

My book says that when using Web project all web code is compiled into single assembly. I thought “all code” includes aspx files?!

Links are maintained between the page and it’s code behind file through a class declaration which by default is in a namespace that matches the directory structure

So if I add a new aspx page via Project –> Add New Item, and store this aspx page in a subdirectory named Hey, then this page will reside in namespace WebProject1.Hey?!

But how do I do add new item into a subdirectory, since Project –> Add New Item doesn’t give me an option to browse and choose a directory I wish to save it in, but instead automatically creates aspx file in a root directory?

The relative path is kept when the compiler generate the dll.

I’m not sure I know what relative path you’re referring to?

thanx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:52:09+00:00Added an answer on May 11, 2026 at 3:52 pm

    Only the sourcecode is compiled into the assembly, you still need to upload the aspx files into a matching directory on the server. For example you project in Visual Studio may look like the following:

    WebProject1 (The root project)   |   |- some_SubDir (A physical directory inside the project)       |       |-default1.aspx       |-default1.aspx.cs (assuming a C# project) 

    Once you have compiled the web app you’ll need to upload the following to the server:

    WebProject1 (The root directory for your website)  |  |-bin (The binary directory created by the build)     |     |-WebProject1.dll (The compiled source code of the web app)  |-some_SubDir     |     |-default1.aspx (The file that will map to the URL www.websitename.com/some_subdir/default1.aspx) 

    Compiled resources (non-sourcecode files that are compiled and stored inside the assembly) are different issue that are addressed in your other question


    Edited to add direct answers to the questions:

    1. Not all files are compiled into the assembly, only source code files are. Links are maintained between the page and it’s code behind file through a class declaration which by default is in a namespace that matches the directory structure, but it doesn’t have to be.

    2. Your default1.aspx file will have in the header something like:

    The inherits line tells the webserver that when a user requests this page it should be processed in conjunction with the source code that defines that class, which it will find inside the compiled assembly. The combination of the physical aspx file and the compiled class will generate standard html which is then passed back to the client.

    1. Yes, you need to create the same directory structure, but you are required to put the aspx files in there.

    2. Yes

    (can someone please edit this if they know how to get the list items to number correctly, please?)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 127k
  • Answers 127k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I believe you want to use xml.*.hasOwnProperty('opt_out_flag') rather than what… May 12, 2026 at 5:36 am
  • Editorial Team
    Editorial Team added an answer Is it actually just a Rails app you want to… May 12, 2026 at 5:36 am
  • Editorial Team
    Editorial Team added an answer I downloaded Microsoft's project real. They do not include all… May 12, 2026 at 5:36 am

Related Questions

Summary Hi All, OK, further into my adventures with custom controls... In summary, here
I have a maven POM file for a web service. For one of the
Forgive me coder for I have sinned. I put some code into a dll
This question is a follow up to my question about sharing resources between web

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.