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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:17:26+00:00 2026-05-15T04:17:26+00:00

I get this message at runtime of ASP.NET 2 page : The page ‘MyFolder/blabla.aspx’

  • 0

I get this message at runtime of ASP.NET 2 page :

The page ‘MyFolder/blabla.aspx’ cannot use the user control ‘MyFolder/MyControl.ascx’, because it is registered in web.config and lives in the same directory as the page.

Of course I can separate them to 2 different folders and thus solve the problem, but the question is :

WTF !?!?! Why I can’t put them in the same folder ?!
Why can’t they all .. get along !?! 🙂

Thanks

  • 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-05-15T04:17:26+00:00Added an answer on May 15, 2026 at 4:17 am

    This limitation is by design due to an internal design consideration re: performance.

    See here for further info.

    Remarks

    The TagPrefixInfo class allows you to programmatically access and
    modify tag-prefix information stored in a configuration file. It
    provides the same functionality as the ASP.NET @Register
    directive. Tag prefixes associate a “namespace” in ASP.NET to the
    assemblies and namespaces that must be included for custom controls
    and user controls to work properly. TagPrefixInfo objects are stored
    as members of a TagPrefixCollection object. The
    TagPrefixCollection class allows you to programmatically access
    and modify the controls subsection of the pages section of a
    configuration file.

    TagPrefixInfo objects are added to the collection using the add
    element and specifying a value for the tagPrefix attribute along
    with values for other relevant attributes. The other required
    information varies based on the kind of control you will use with the
    specified tag prefix:

    • If it is a user control, you must define the TagPrefix, TagName, and Source properties.
    • If it is a custom control, you must define the TagPrefix, Namespace, and Assembly properties. The Assembly
      property is not required if the control is in the application code
      directory. The same tagPrefix value can be used to map to multiple
      assemblies or namespaces.

    Note When a source is specified, the user control itself must not be in the same directory as the page. If it is, you get a run-time
    error when you attempt to load the page.

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

Sidebar

Related Questions

I get this message: Cannot find the X.509 certificate using the following search criteria:
when I use MySQLdb get this message: /var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
I try to use the boolean in my class and get this message reference
I have ASP.NET set up to use the CustomErrors functionality: <customErrors mode=On defaultRedirect=~/ErrorPages/500.aspx redirectMode=ResponseRewrite>
I have created a blank asp.net website consisting of a blank default.aspx page, its
I'm using a RegExp to validate some user input on an ASP.NET web page.
I added the ModalPopupExtender to an existing ASP.NET application. At runtime I get the
I get this message when trying to communicate with software that communicates with SOAP?
When my IronPython program gets to the line import wx I get this message:
When loading up a solution in VS2008 I get this message: An error was

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.