Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Error debugging vb.net Windows application in Visual Studio 2008

Posted on 2008-11-07
3
Medium Priority
?
737 Views
Last Modified: 2013-11-26
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
Comment
Question by:Al230762
  • 2
3 Comments
 
LVL 3

Expert Comment

by:ASliborsky
ID: 22903882
Find file PMWdataUpload.UploadOptions.resources in your solutino and set its property (type) to Embedded Resource then rebuild the project. It should help.
0
 

Author Comment

by:Al230762
ID: 22904270
The PMWdataUpload.UploadOptions.resx file is aleardy set to Embedded Resource - is that what you mean?
0
 

Accepted Solution

by:
Al230762 earned 0 total points
ID: 22906059
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question