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 7812759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:37:05+00:00 2026-06-02T04:37:05+00:00

I recently got the following error in my web application. The page ‘ControlName.ascx’ cannot

  • 0

I recently got the following error in my web application.

The page ‘ControlName.ascx’ cannot use the user
control ‘OtherControl.ascx’, because it is registered in
web.config and lives in the same directory as the page.

Whilst I was able to fix the error by moving the control and registering it in the page I’m curious as to why this raises an error.

This is apparently by design as design as described here (3/4 down in yellow block) but my question is why? What problem might you face by registering the control in the Web.Config and placing it the same directory?

  • 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-02T04:37:07+00:00Added an answer on June 2, 2026 at 4:37 am

    Maybe it is a matter of dynamic compilation.
    By default the “batch” attribute of the “compilation” element in your web.config is true. Something like this :

    <compilation defaultLanguage="c#" debug="false" batch="true" targetFramework="4.0" />
    

    With batch=”true”, whenever a control has to be compiled in a directory, the server compiles all controls (everything?) in its directory.

    I would say that web.config declared controls are not compiled the same way as other controls (in another dll, another directory ?) So, mixing web.config declared controls and other controls in the same directory, some referencing the others would result in duplicate compilation and dll conflicts.

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

Sidebar

Related Questions

I recently acquired Crap4j, and ran it but got the following error: No test
I recently went to backup a database and got the following error #1007 -
Recently I got IE7 crashed on Vista on jar loading (presumably) with the following
Recently I've spotted a very disturbing issue. I've got the following python code: for
I got the following error in Delphi 2007. What does it mean? [DCC Error]
I don't use C that much and I recently got confused about 2d array
Recently, I switched to Xcode4 and when I compile my project I got following
I recently converted a website project to a web application project in Visual Studio
I have got an old site that has recently been displaying an error which
I recently got confused by the following c++ snippet: #include <cstdio> int lol(int *k){

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.