Pages

Wednesday, June 5, 2013

TEST post for my final year project (Please Ignore)

Sale in Colombo!!! 10% off for selected items!

Don't miss this opportunity!

Venue: Town hall, Union Place
Date: 25th Jan 2013
 
Visit us on www.pcproducts.com






 



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'

Friday, March 15, 2013

The resource cannot be found. in VS 2012 WebAPI

Funny solution!

If you get this error when running the app from Visual Studio 2012, go back to app and make sure HTML file is not selected in the solution explorer. It worked for me! Don't know the reason behind that though.

Wednesday, March 13, 2013

Missing Entity Framework dll in VS2012

  1. Right click references
  2. Manage Nuget Packages
  3. Select Entity Framework
For more info:
http://msdn.microsoft.com/en-us/data/ee712906

Wednesday, March 6, 2013

An unhandled exception of type 'Emgu.CV.Util.CvException' occurred in Emgu.CV.dll Additional information: OpenCV: Unknown array type

To fix this issue, check whether the number of columns, rows and channels of source matrix match with the destination matrix.

When converting from OpenCV to EmguCV:
CV_32FC1 means 32 bit floating point single channel matrix

Saturday, March 2, 2013

An unhandled exception of type 'Emgu.CV.Util.CvException' occurred in Emgu.CV.dll Additional information: OpenCV: type == src2.type() && src1.cols == src2.cols && (type == CV_32F || type == CV_8U) in BOWImgDescriptorExtractor

Make sure the feature extractor used to generate vocabulary and the extractor given for BOWImgDescriptorExtractor are of same type. (E.g., SIFT)

More info:
http://stackoverflow.com/questions/15181699/error-in-bowimgdescriptorextractor-in-emgucv
http://code.opencv.org/issues/1879