Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. My images are gone (c#)

My images are gone (c#)

Scheduled Pinned Locked Moved C#
helpquestioncsharpannouncementlearning
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adnanh75
    wrote on last edited by
    #1

    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 :)

    E 1 Reply Last reply
    0
    • A adnanh75

      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 :)

      E Offline
      E Offline
      exhaulted
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • E exhaulted

        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

        A Offline
        A Offline
        adnanh75
        wrote on last edited by
        #3

        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:

        E M 2 Replies Last reply
        0
        • A adnanh75

          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:

          E Offline
          E Offline
          exhaulted
          wrote on last edited by
          #4

          What images, you haven't shown any code with references to any images? Show the code that references the images. Kev Pearman MCAD

          1 Reply Last reply
          0
          • A adnanh75

            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:

            M Offline
            M Offline
            mav northwind
            wrote on last edited by
            #5

            Adnan, try putting your structs into separate files or after your class, this might help. mav

            A E 2 Replies Last reply
            0
            • M mav northwind

              Adnan, try putting your structs into separate files or after your class, this might help. mav

              A Offline
              A Offline
              adnanh75
              wrote on last edited by
              #6

              Done, it works, thanks mav :) thanks

              1 Reply Last reply
              0
              • M mav northwind

                Adnan, try putting your structs into separate files or after your class, this might help. mav

                E Offline
                E Offline
                exhaulted
                wrote on last edited by
                #7

                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

                M 1 Reply Last reply
                0
                • E exhaulted

                  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

                  M Offline
                  M Offline
                  mav northwind
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups