System.InvalidOperationException was unhandled, when loading image into Picturebox

  • Thread starter Thread starter Dave-OLW
  • Start date Start date
D

Dave-OLW

Guest
Visual Studio 2010 VB .net Project.

Have Picturebox and when I try to load an image by selecting image in the properties I get an error System.InvalidOperationException was unhandled

The full details of Error

System.InvalidOperationException was unhandled
HResult=-2146233079
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 "WindowsApplication1.LoginForm1.resources" was correctly embedded or linked into assembly "NBC Administration" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Source=NBC Administration
StackTrace:
at WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at WindowsApplication1.My.MyProject.MyForms.get_LoginForm1()
at WindowsApplication1.My.MyApplication.OnCreateMainForm() in C:\Users\David\Documents\Visual Studio 2010\Projects\NBC Administration\NBC Administration\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 WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly 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.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Resources.MissingManifestResourceException
HResult=-2146233038
Message=Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "WindowsApplication1.LoginForm1.resources" was correctly embedded or linked into assembly "NBC Administration" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Source=mscorlib
StackTrace:
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
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 WindowsApplication1.LoginForm1.InitializeComponent() in C:\Users\David\Documents\Visual Studio 2010\Projects\NBC Administration\NBC Administration\LoginForm1.Designer.vb:line 121
at WindowsApplication1.LoginForm1..ctor()
InnerException:

Why can I not load this image?

Continue reading...
 
Back
Top