Pages

Tuesday, April 16, 2013

Out of Memory Exception in Visual Studio 2012

Check for following warning:
2.    Warning    1    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "CECIIR", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets    1578

Go to Configuration manager and set target platform as "any CPU"

Monday, April 15, 2013

Unable to load DLL 'opencv_core242': The specified module could not be found. Emgu CV

Set Project's Platform target as x86(correct value) and copy all the bin/x86 native c++ dlls in EmguCV folder to output directory of the application.

Configuration.AppSettings getting null in C# class library

Default configuration for class library is the configuration file of the application that is consuming it. For example, if it is web application, then move your configurations to web.config.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.

Try following! It worked for me. :)

  • Go to sqlservr.exe in the task manager processes
  • Terminate the process
  • Go to Services
  • Start SQL Server(SQL Express)
  • Try to connect again

Friday, April 5, 2013

The controller for path was not found or does not implement IController in WebAPI

You will get this exception when you are trying to access WebApi controller through a jquery client as Ajax request. To fix this issue, in the url property give path to controller as given below:

url: '/api/controllername/actionname'