Monday, April 15, 2013
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'
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.
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
- Right click references
- Manage Nuget Packages
- Select Entity Framework
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
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
More info:
http://stackoverflow.com/questions/15181699/error-in-bowimgdescriptorextractor-in-emgucv
http://code.opencv.org/issues/1879
Friday, February 22, 2013
View Property manager in VS2010
Tools > Import and Export Settings > Reset all settings > Visual C++ Development Settings
Saturday, February 16, 2013
.mat files associated with MS Access short cut
Control Panel > Default Programs > Associate a file type or protocol with a specific program > Select .mat > Change > Matlab.exe
http://www.mathworks.in/support/solutions/en/data/1-VW0R7/
http://www.mathworks.in/support/solutions/en/data/1-VW0R7/
Wednesday, February 13, 2013
Load configuration settings dynamically using Matlab Eval function
Configuration script file = config.m
% Test function to call configuration setting dynamically
function test (config)
eval (config)
....
% script to call function 'test'
test('config');
% Test function to call configuration setting dynamically
function test (config)
eval (config)
....
% script to call function 'test'
test('config');
Subscribe to:
Posts (Atom)