MissingManifestResourceException after renaming namespace

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shawnn@gmail.com

    MissingManifestResourceException after renaming namespace

    Hello,

    I started a project in VS and chose a stupid default name like
    WindowsApplicat ion11. I'm finished coding and I want to rename my
    namespace to something more descriptive. When I change all instances of
    "namespace WindowsApplicat ion11" to something else, I get a runtime
    error MissingManifest ResourceExcepti on in mscorlib.dll saying that it
    isn't able to find my old namespace.

    How can I rename my namespace without errors?

  • Dmytro Lapshyn [MVP]

    #2
    Re: MissingManifest ResourceExcepti on after renaming namespace

    Hello,

    Examine your RESX files. Usually Visual Studio names a form's or a
    component's resources it stores to the RESX files with the namespace name
    included (because it uses quite a specific way of loading resources based by
    the type name of the class to which the resource relates). Therefore, after
    you have renamed the namespace, you should check the resource names and make
    necessary edits manually.

    P.S. Be sure to back up all files you are going to change!

    --
    Sincerely,
    Dmytro Lapshyn [Visual Developer - Visual C# MVP]


    <shawnn@gmail.c om> wrote in message
    news:1135041597 .455045.60890@f 14g2000cwb.goog legroups.com...[color=blue]
    > Hello,
    >
    > I started a project in VS and chose a stupid default name like
    > WindowsApplicat ion11. I'm finished coding and I want to rename my
    > namespace to something more descriptive. When I change all instances of
    > "namespace WindowsApplicat ion11" to something else, I get a runtime
    > error MissingManifest ResourceExcepti on in mscorlib.dll saying that it
    > isn't able to find my old namespace.
    >
    > How can I rename my namespace without errors?
    >[/color]

    Comment

    Working...