'CreateResourceBasedLiteralControl' is not a member of 'ASP.homemasterpage_master'.

Last post 08-24-2007 10:09 AM by SStorhaug. 2 replies.

Sort Posts:

  • 'CreateResourceBasedLiteralControl' is not a member of 'ASP.homemasterpage_master'.

    05-28-2007, 7:52 PM

    Hi there,

     

    I have been working on a website for a while, I didn't change any code on my home masterpage and them randomly I get this error message, ?

      'CreateResourceBasedLiteralControl' is not a member of 'ASP.homemasterpage_master'.

    Any ideas what   'CreateResourceBasedLiteralControl'  means??

     

    Cheers :) 

    Success comes to those who prepare well and put in effort.
  • Re: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.homemasterpage_master'.

    05-31-2007, 2:21 AM
    Answer

    Hi,

    The CreateResourceBasedLiteralControl method is used to access literal strings that are stored in a resource and is not intended for use from within your code.(http://msdn2.microsoft.com/en-us/library/system.web.ui.templatecontrol.createresourcebasedliteralcontrol.aspx)

     

    Are you using keywords as your class name or namespace name?

    Would you please post home masterpage code behind If this could not help?

    Amanda Wang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.homemasterpage_master'.

    08-24-2007, 10:09 AM
    • Member
      4 point Member
    • SStorhaug
    • Member since 08-24-2007, 9:56 AM
    • Posts 9

    Ok, I think your reply has put me on the right track, but I need some assistance finding a solution.

     I recently made several changes to a project that I had previously upgraded from .NET 1.1 to .NET 2.0.  The upgrade itself created several resource files that were empty.  During the last batch of updates to the project, I deleted the resource files to try to make the project more readable.

     I didn't have any issues with removing these files until I tried to deploy the site from my development workstation to another server (using Publish Web, updatable).  After I moved the site to the target server, it does nothing but show me a blank page.  This behavior happens on any page I type in the browser.  I have the project writing any errors to the Windows event log, and occasionally I get the error that is in the title of this post.  More specifically, it is referencing a Master page that I recently added to the project (which never had a resource file).

     Now, it looks like I have stumbled on the problem..  But since I have deleted all of the resource files and I don't know which one specifically broke my project deployment, what do I need to do to recreate the broken resources? Or actually, I would rather not use the resource files for my project, so how do I remove the dependencies to them from my project?

    TIA

Page 1 of 1 (3 items)