'Emgu.CV.Capture' does not contain a definition for 'GrabProcessState' - c#

I work with EmguCV 2.9.0.1922 (x86, x64) and try to play a video file. I took one of Emgu-video-example from internet (EmguCV 2.4.2...) and can't even compile it: 'Emgu.CV.Capture' does not contain a definition for GrabProcessState. (Does Emgu.CV.dll crucially change between version 2.4 and 2.9??)
In the case I go to the EmguCV 2.4.2 compilation is OK, but runtime error is:
"A first chance exception of type System.DllNotFoundException occurred in Emgu.CV.dll
A first chance exception of type System.TypeInitializationException occurred in Emgu.CV.dll
An unhandled exception of type System.TypeInitializationException occurred in Emgu.CV.dll
Additional information: The type initializer for Emgu.CV.CvInvoke threw an exception."

Related

Ranorex System.TypeInitializationException

After I use my code when Ranorex is installed is works fine, but after uninstalled it, I have a library of Ranorex payed version, but I don't install it on my PC, just I need the library. there an exception showed with this line of code
Form form = Host.Local.FindSingle<Ranorex.Form>("form[#processname='" + pr.ProcessName + "']");
On debug Mode shows ;
'Host.Local' threw an exception of type 'System.TypeInitializationException'
Exception :
Exception thrown: 'System.TypeInitializationException' in Ranorex.Core.dll
Additional information: The type initializer for
'Ranorex.Core.ElementEngine' threw an exception.
For Ranorex and it's components to work atleast Ranorex Runtime Licencse is required.

Matlab builder NE 2012A x64 migreting to 2014B X64

I'm trying to convert my system from matlab 2012a x64 to matlab 2014b x64. However I'm getting this error. i'm using .Net 4.5, visual studio 2012 + update 5.
A first chance exception of type 'System.Exception' occurred in MWArray.dll
Additional information: Start-up options discovered in multiple assembiles.
then I hit F5 and I get:
A first chance exception of type 'System.TypeInitializationException' occurred in MWArray.dll
Additional information: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception.
I press F5 again and I get:
A first chance exception of type 'System.TypeInitializationException' occurred in MWArray.dll
Additional information: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception.
here is my code:
private static MWArray ConvertBlackLevelResultsToMWArray(BlackLevelData blackLevelData)
{
var blackLevelResultsGroupedbyExposure = from blResult in blackLevelData group blResult by blResult.ExposureTime;
var exposuresCount = blackLevelResultsGroupedbyExposure.Count();
var blackLevelCells = new MWCellArray(1, exposuresCount); //the exception is here
I have used .net reflector in order to go over all of the dependencies in other DLL files, they all have refernce to the correct MWarray version 2.14.1.0
Can you suggest A way to find out what is my problem?
thanks
You must remove all the attributes
[assembly: MathWorks.MATLAB.NET.Utility.MWMCROption ("- nojit")]
from all places, to which were added for MCR 2012a.

Exception thrown in Global.asax.cs

Exception thrown at GlobalConfiguration.Configure(WebApiConfig.Register); within Global.asax.cs which is:
"An exception of type 'System.TypeInitializationException' occurred in mscorlib.dll but was not handled in user code
Additional information:
The type initializer for 'System.Net.Http.Formatting.MediaTypeConstants' threw an exception."
The inner exception is:
{"Method not found: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object)'."}
I've reinstalled NuGet packages and references. Deleted contents of the bin folder. Cleaned and re-complied. Still no joy and always hits here. It doesn't reach inside of WebApiConfig.Register. Any ideas?

How to download file from SkyDrive on Windows Phone

I am using sample from https://github.com/liveservices/LiveSDK but it isn't working. I managed to run the PhotoSkyOnTheGo project, but after logging in I get 3 exceptions:
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
What am I doing wrong or what source code should I use?
Try to change Mobile client app setting to yes in manage.dev.live.com inMy applications > yourApp > API Settings tab

C# Compile Issue

An unhandled exception of type 'System.TypeInitializationException' occurred in Microsoft.VisualStudio.HostingProcess.Utilities.dll
Additional information: The type initializer for 'BobTyler.Program' threw an exception.
'BobTyler.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
Any advice? Thanks.
My guess is that you´ve got a configuration setting in your BobTyler.exe.config (/app.config in the solution project) that isn't of a proper type. Check all entries under and make sure that they´re mapped to proper types.

Categories

Resources