Thursday, May 11, 2017

MissingManifestResourceException could not find...

Yesterday a colleague of mine asked me if I could help with an exception he was getting when trying to run a new form he created. The error was: "System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture..."


This problem can have many causes, sometimes the resx isn't set as embedded resource.

But in our case the problem was that there was an interface declared as the first piece of code in his form. Apparently the first piece of code in a form file should be the form class and not some other class or code otherwise you get this error. 

So for example the following code in a file FormTemplat1e.vb will trigger the error

Public Interface IFormTemplate1
    Sub Load
    Property Language As LanguageFunctions.LanguageEnum
    Sub Reset
    Sub Refresh
End Interface

Public Class FormTemplate1
Implements IFormTemplate
End Class 

There is also a KB published by Microsoft about this issue, you can have a look at here

Thursday, January 26, 2017

'ping' is not recognized as an internal or external command path variable seems ok

Today I started getting this error when trying to run any command from the command prompt:
'ping' is not recognized as an internal or external command. I immediately went to have a look at my Path Variable but this also seemed to be okay. 


It included the %systemroot%\system32 so I closed these windows and rebooted the pc just to be sure, but I still got the same error. So I opened the Path variable again an now chose to "Edit text" and added an extra ; at the back and the submitted the changes by clicking OK


This extra ; normally isn't needed, because it even get's removed if you close the form, but for me it was enough to fix the problem after closing and opening my command prompt again.