My images are gone (c#)
-
I have a problem with images in my application, I cant build them in.. it allways says: ************************************************************************************************ Eine nicht behandelte Ausnahme des Typs 'System.Resources.MissingManifestResourceException' ist in mscorlib.dll aufgetreten. Zusätzliche Informationen: Für die angegebene Kultur (oder die neutrale Kultur) in der Assembly konnten keine Ressourcen gefunden werden. Stellen Sie sicher, dass 'Form1.resources' richtig in die Assembly 'NeckingRa' eingebettet wurde. baseName: Form1 locationInfo: NeckingRa.Form1 resource file name: Form1.resources assembly: NeckingRa, Version=1.0.1706.20859, Culture=neutral, PublicKeyToken=null ************************************************************************************************* Its in German, but someone maybe knews what is this about??? What should I do now? Please help me. I am beginer so please explane it so I can understand :)
-
I have a problem with images in my application, I cant build them in.. it allways says: ************************************************************************************************ Eine nicht behandelte Ausnahme des Typs 'System.Resources.MissingManifestResourceException' ist in mscorlib.dll aufgetreten. Zusätzliche Informationen: Für die angegebene Kultur (oder die neutrale Kultur) in der Assembly konnten keine Ressourcen gefunden werden. Stellen Sie sicher, dass 'Form1.resources' richtig in die Assembly 'NeckingRa' eingebettet wurde. baseName: Form1 locationInfo: NeckingRa.Form1 resource file name: Form1.resources assembly: NeckingRa, Version=1.0.1706.20859, Culture=neutral, PublicKeyToken=null ************************************************************************************************* Its in German, but someone maybe knews what is this about??? What should I do now? Please help me. I am beginer so please explane it so I can understand :)
-
Are you using a setup project to deploy your app? if so just add the files to your setup project and tell it where to put them when you project gets installed. If not then you'll have to add them as resources. Kev Pearman MCAD
-
No, I am not creating a Setup.. Im still working on app.. I changed my code and added public struct PointD { public double x; public double y; } public struct node { public string Name; public ArrayList Lstates; } and my images were gone.. :sigh:
-
No, I am not creating a Setup.. Im still working on app.. I changed my code and added public struct PointD { public double x; public double y; } public struct node { public string Name; public ArrayList Lstates; } and my images were gone.. :sigh:
Adnan, try putting your structs into separate files or after your class, this might help. mav
-
Adnan, try putting your structs into separate files or after your class, this might help. mav
-
Adnan, try putting your structs into separate files or after your class, this might help. mav
-
I guess that as long as it works i doesn't matter but why would putting your structs inside a class throw the above exception? Kev Pearman MCAD
Well, I've seen some strange things happen when I've added private classes to some of my form-derived classes. X| Basically, the visual designer stores some resources in .resx files (for example image data). These XML-based files hold serialized data that can be retrieved by an object name (just add a picture box to a form and than look at what's generated in
InitializeComponent()
). If, by which means ever, such a resource cannot be found than the visual designer will choke and running the application will create an exception similar to what adnan wrote. I think that he had introduced some naming conflicts, so removing the offending struct declarations from the .cs file fixed the way .NET accesses its embedded resource streams. mav