Problem with Picturebox image in Visual Studio 2008 Windows Form

In Visual Sudio 2008 I have added a picturebox control to a Windows form and then, in the picturebox properties added a small .gif image to the control. When I debug the solution I get an error message:

"An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "PMWdataUpload.Resources.resources" was correctly embedded or linked into assembly "PMWdataUpload" at compile time, or that all the satellite assemblies required are loadable and fully signed."

Any idea what this means?
Al230762Asked:
Who is Participating?
 
Al230762Connect With a Mentor Author Commented:
This seems quite tough so I've increased points to maximum. I also get an indentical message after adding an icon to a form. I have supplied the full exception message.
System.InvalidOperationException was unhandled
  Message="An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure \"PMWdataUpload.UploadOptions.resources\" was correctly embedded or linked into assembly \"PMWdataUpload\" at compile time, or that all the satellite assemblies required are loadable and fully signed."
  Source="PMWdataUpload"
  StackTrace:
       at PMWdataUpload.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
       at PMWdataUpload.My.MyProject.MyForms.get_UploadOptions()
       at PMWdataUpload.My.MyApplication.OnCreateMainForm() in C:\Software_development\PMWonlineSIMS_link\PMWdataUpload\My Project\Application.Designer.vb:line 35
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       at PMWdataUpload.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.Resources.MissingManifestResourceException
       Message="Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure \"PMWdataUpload.UploadOptions.resources\" was correctly embedded or linked into assembly \"PMWdataUpload\" at compile time, or that all the satellite assemblies required are loadable and fully signed."
       Source="mscorlib"
       StackTrace:
            at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
            at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
            at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
            at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
            at System.Resources.ResourceManager.GetObject(String name)
            at PMWdataUpload.UploadOptions.InitializeComponent() in C:\Software_development\PMWonlineSIMS_link\PMWdataUpload\UploadOptions.Designer.vb:line 586
            at PMWdataUpload.UploadOptions..ctor()
       InnerException: {"Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure \"PMWdataUpload.Resources.resources\" was correctly embedded or linked into assembly \"PMWdataUpload\" at compile time, or that all the satellite assemblies required are loadable and fully signed."}

Open in new window

0
 
MidaniCommented:
the little art file you created needs to be packaged with the application?
0
 
Al230762Author Commented:
Miidani, in the Solutuion Explorer the image file has been included in the project. The solution was then rebuilt.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.