Solved

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

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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 is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

919 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

21 Experts available now in Live!

Get 1:1 Help Now