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

  • SEARCH
  • Home
  • 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 8254503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:12:47+00:00 2026-06-08T01:12:47+00:00

I have a .Net 4.0 project called BasicTestProject and it contains a webform called

  • 0

I have a .Net 4.0 project called BasicTestProject and it contains a webform called Default.

Default.aspx:

<%@ Page Language="C#" AutoEventWireup="true" 
         CodeBehind="Default.aspx.cs" Inherits="BasicTestProject.Default" %>

Default.aspx.cs:

namespace BasicTestProject 
{
    public partial class Default : System.Web.UI.Page 
    {
       ...
    }
}

I want to put a compiled version of this application in the subfolder of a website:

  • Website Root
    • SubFolder
      • BasicTestProject

At the Website Root I have a basic web.config:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.web>
        <compilation targetFramework="4.0" />
    </system.web>
</configuration>

I made a test of the example above and when I try to access the site within a Subfolder (http://WebsiteRoot/SubFolder/BasicTestProject/Default.aspx), this is the error I am getting:

Parser Error 

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Could not load type 'BasicTestProject.Default'.

Source Error: 

Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BasicTestProject.Default" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Source File: /*WebsiteRoot*/*SubFolder*/BasicTestProject/default.aspx    Line: 1 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 

Also, I should mention that I have tried placing my compiled BasicTestProject on its own IP address so that it sits at the root folder. That works as expected and I can access Default.aspx.

UPDATE (answer):

In IIS7 I right-clicked BasicTestProject and converted it in to an application.

  • Website Root
    • SubFolder
      • BasicTestProject

I had to also grant the Application Pool user permission to the BasicTestProject folder. It is now self-contained and running.

  • 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. Editorial Team
    Editorial Team
    2026-06-08T01:12:49+00:00Added an answer on June 8, 2026 at 1:12 am

    I’ll elaborate on @MikeC’s answer a bit: In IIS there is the concept of “application scope” which is a sub-hierarchy of the filesystem tree which belongs to the same conceptual “application”.

    The root of every individual IIS website is also marked as the root of a new application scope. Any server-side code that is executed in a scope runs in the Application Pool that the scope belongs to (CGI and FastCGI processes are launched under the identity of the scope’s pool, for example). ASP.NET takes this further by defining the root of an application scope to be where it expects to find the bin directory as well as allowing more web.config options to be defined.

    As I said, this applies to the filesystem hierarchy, so if you’re using URL Rewriting or ASP.NET URL Routing then it complicates things.

    (This was originally a comment reply to Mike’s answer, but it overran the message length).

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

Sidebar

Related Questions

I have an ASP.NET web application project which references another project called ModusCore (or
In Visual Studio 2010 I have an ASP.NET MVC 3 project called blahblah. As
I have an ASP.NET project connecting to a database. A web page sends a
I have an ASP.NET project that contains many classes. I am thinking about creating
I have a class called MembershipHelper, which I am using in my ASP.NET project.
In my .NET 3.5 project, I have created an OracleConnection object called conn. Then
I've an ASP.NET MVC project that has a sub folder called emails. This contains
I have a .Net project called: Whatever.Web.UI: I use this project to put all
You may have heard of a website called Project Euler (projecteuler.net). I'm working through
I have a .NET project which references a DLL called ABCPDF. The version number

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.