?
Solved

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

Posted on 2008-09-30
5
Medium Priority
?
3,700 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 2000 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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.
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

771 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