Solved

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

Posted on 2008-09-30
5
3,560 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
  • 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now