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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:10:36+00:00 2026-05-13T15:10:36+00:00

I have a C# library that gets built and gets placed into my website’s

  • 0

I have a C# library that gets built and gets placed into my website’s bin folder. In my C# library I have a .ascx file and I’m trying to put another .ascx control in there. But I get this error:

Could not resolve type for tag
“fb:FormBuilder”. Make sure the proper
namespace is registered.

This is in the top of my user control that I want to add to others:

<%@ Control Language="C#" Inherits="System.Web.UI.UserControl, ITextControl" %>

In my parent control, I have this:

<%@ Control Language="C#" %>
<%@ Register TagPrefix="fb" TagName="FormBuilder" Src="~/Resources/ControlTemplates/Backend/FormBuilder.ascx" %>
....
<fb:FormBuilder runat="server" id="FormCode"></fb:FormBuilder>

All my files are set as the Build Option as being “Embedded Resource” (.NET 3.5). Any ideas on how to solve 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-05-13T15:10:36+00:00Added an answer on May 13, 2026 at 3:10 pm

    The declarative syntax of doing this in the actual ascx file itself expects there to be a file at the location you specify in your register declaration. If that file does not exist, then the compiler doesn’t know how to resolve the reference.

    Generally, if you author controls that are designed for re-use within other web applications, then your should create them as custom server controls; not as user controls. The server control framework and base classes is designed for reuse and packaging. Authoring a server controls takes a tad bit more time and effort initially, but not much and after you do it once or twice it gets fairly easy.

    The only other solution I can think of is to make sure your build/compile is dropping the actual ascx files into a fixed location within the consuming web project. That way your consuming pages will have a valid path to use in the register directive and the file can be located by the compiler. You could use code-behind to dynamically load the controls using Page.LoadControl(). The ascx file still needs to exist physically, but using code-behind to add the control to the page allows you to add some intelligence to the process by reading the path from configuration and the like.

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

Sidebar

Related Questions

I have a dynamic library that gets a different name depending on configuration, specified
I have a library that interacts with our phone system, ie, Hey phone, call
I have a library that does I/O. There are a couple of external knobs
I have a library that I created with some business logic that includes writing
I have a library that has several options defined as this: #define shouldShowToolbar YES
Common scenario: I have a library that uses other libraries. For example, a math
Using non-thread safe libraries with threads. Say I have a library that makes a
I have a custom library that can pick mulitple images from the camera roll,
I have a cache library that stores cached data in normal php files, with
I have a library project that should be the base for several web applications.

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.