public Class

Posted on 2005-03-18
Medium Priority
Last Modified: 2012-05-05
I'm sure this is a very easy one for an expert. :)

I've got a class in my program to allow me access to a set of variables globally.

My class is :

      public class myVariables
            private string FileURIFormat;
            private string IniFilePath;
            public string GetFileURIFormat()
                  return this.FileURIFormat;
            public void SetFileURIFormat(string myNewFileURIFormat)
                  this.FileURIFormat = myNewFileURIFormat.Trim();
            public string GetIniFilePath()
                  return this.IniFilePath;
            public void SetIniFilePath(string myNewIniFilePath)
                  this.IniFilePath = myNewIniFilePath.Trim();

However when I run this program itself I get a MissingManifestResourceException.

Any idea's?
Question by:Narusegawa
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
LVL 17

Expert Comment

by:Jesse Houwing
ID: 13576299
The error must be coming from somewhere else, as I don't see anything int his class that can cause that exception.

Expert Comment

ID: 13576434
Is this class in a namespace and are you using System; ?

Author Comment

ID: 13599007
I figured this else. I did some research and it was because my Class was declare before my Form's Class in my main application file. I moved the class to it's own namespace/file and it works.

Accepted Solution

nachiket earned 80 total points
ID: 13741605
Point 1.

This is NOT a simple problem. We are wokring on this since 2 years .. and we DID NOT got solution. We are team of "200" .NET professionals..

Any way I have some infomration which may work in your case.

1. This problem come because of Many classes in one file. Do you use this ? Microsoft has reported this as a known bug in their application. If this is the case you can think or re organizing classes. If you are using Private class. use publlic class and one class per file.

2. Do you use different cultures? if so this problem may come

However to solve this problem.

1.Make localizable of all the forms to false

2. Try following Delete all Bin, Debug, Release in your project. open all the forms in Design View (YES ALL) this will recreate culture specific resources. and run in debug(using F5)

Remember this is a reoccouring problem and u need to solve it again and again. however it is just the build problem
if this is sovled you should consider giving 500 points ;)(kidding)

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

770 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