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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:35:59+00:00 2026-06-03T14:35:59+00:00

After converting my Web Site Project to a Web Application Project , some of

  • 0

After converting my Web Site Project to a Web Application Project, some of my custom controls are missing, and I keep getting an get unrecognized element exceptions.

I can’t figure out what’s going on. I’ve tried copying over the web.config and registering the controls in the page directive, but it’s still not working. Do I need to adjust the web.config manually, or is it possible that I’m still missing a reference somewhere?

I would appreciate some advice on how to fix this.

  • 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-03T14:36:01+00:00Added an answer on June 3, 2026 at 2:36 pm

    It most likely has something to do with the conversion, and I suspect the application namespace. I don’t know how thorough the conversion process is, but you might need to update the user control directives and code-behind files.

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyUserControl.ascx.cs" Inherits="MyNamespace.MyApplication.Controls.MyUserControl" %>
    

    Code-behind:

    namespace MyNamespace.MyApplication.Controls
    {
        public partial class MyUserControl : UserControl
        {
            ...
        }
    }
    

    Also, make sure that the user controls are mapped properly in the web.config:

    <pages>
        <controls>
            <add tagPrefix="Custom" src="~/controls/myusercontrol.ascx" tagName="MyUserControl" />
            ...
        </controls>
    </pages>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm converting an Access application to web, and need to print reports from it.
I'm having some problems with converting some JSON and I'm after some help. This
High Level Goal: Create a single Maven Web Application project that can be used
I'm developing an application, that makes use of some REST web services. It's technical
After one week searching and converting many algorithm from other language into php to
After some experience with functional languages, I'm starting to use recursion more in Java
I converted my website from asp.net mvc 1.0 to 2.0. After converting that i
I'm writing my first C# web application that connects to an XML based service.
I have a SQL Server 2005 database for a web site that stores user
Ok, so somewhere on my site is a Javascript file that after a few

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.