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

Error debugging vb.net Windows application in Visual Studio 2008

Developing a small Windows application woth vb.net in Visual Studio 2008 all was working well until I added a picturebox and then added an image to the picturebox. On debugging, the attached exception message appeared. On removing the picturebox, dubugging worked fine.

Now I'm in  a position where, even without the picturebox I am getting the same exception message on debugging. Any help on solving this would be greatly appreciated.
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.GetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
            at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
            at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
            at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
            at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName, CultureInfo culture)
            at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName)
            at PMWdataUpload.UploadOptions.InitializeComponent() in C:\Software_development\PMWonlineSIMS_link\PMWdataUpload\UploadOptions.Designer.vb:line 87
            at PMWdataUpload.UploadOptions..ctor()
       InnerException:

Open in new window

0
Al230762
Asked:
Al230762
  • 2
1 Solution
 
ASliborskyCommented:
Find file PMWdataUpload.UploadOptions.resources in your solutino and set its property (type) to Embedded Resource then rebuild the project. It should help.
0
 
Al230762Author Commented:
The PMWdataUpload.UploadOptions.resx file is aleardy set to Embedded Resource - is that what you mean?
0
 
Al230762Author Commented:
There's a shortage of experts on this topic obviously. Never mind, I re-created the project from scratch and it's all working again now.
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.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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