Solved

BC30456: 'CreateResourceBasedLiteralControl' is not a member of page error

Posted on 2008-09-30
5
3,666 Views
Last Modified: 2012-08-13
Hi Folks,

Any ideas what this error might be?
I am getting a compilation error intermittently. Sometimes the page loads fine and at times I get this error.

My page is created with a master page and uses User Controls (.ascx) which are dynamically loaded depending on what the user selects using the code:
            Dim AdminControl As Control
            AdminControl = Page.LoadControl(Request.ApplicationPath & "/UserControls/GroupAdmin.ascx")
            AdminPlaceHolder.Controls.Add(AdminControl)


The error is as follows:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.admin_master'.

Source Error:
Line 5:  
Line 6:  <html xmlns="http://www.w3.org/1999/xhtml" >
Line 7:  <head runat="server">
Line 8:      <title>Admin Page</title>
Line 9:      <style>

Source File: Admin.master    Line: 7

Any help would be greatly appreciated.

M.
0
Comment
Question by:blondiemc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 7

Accepted Solution

by:
ajolly earned 500 total points
ID: 22604746
In the HTML code of the page, on top there is page tag.
just below that, add this:

<%@ Reference Control="~/UserControls/GroupAdmin.ascx" %>
0
 

Author Comment

by:blondiemc
ID: 22604825
ajolly,
Thanks for that,
I will give that a go and see if it works.
0
 

Author Comment

by:blondiemc
ID: 22615347
Ajolly solution seems to work.
The problem only occurs when I copy it to the webserver.
Locally it works fine.
Difficult to test but so far that seems to have fixed it.
0
 

Author Closing Comment

by:blondiemc
ID: 31501500
That's seems to have fixed it, it's a difficult one to test as it only occurs on the webserver, not locally but so far it seems to be working.
Anyway thanks for your help.
Much appreciated.
0
 

Expert Comment

by:daquinoz
ID: 24199591
Hello, I'm not using user controls and I receive the same message, I have a Masterpage and a contentpage, I use authentication mode="forms"

The problem is when I deploy my app to a target site IIS.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
asp.net uploading picture to a temporary folder 4 32
VB.net Filesystem watcher not working 5 55
Multi-Column Repeater 3 37
Ajax calendar distorted 4 14
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question