• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1582
  • Last Modified:

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?
0
Al230762
Asked:
Al230762
  • 2
1 Solution
 
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
 
Al230762Author 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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now