The best overloaded method match for 'System.DBNull.ToString(System.IFormatProvider)' has some invalid arguments

 

Server Error in '/' Application.
The best overloaded method match for 'System.DBNull.ToString(System.IFormatProvider)' has some invalid arguments

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for 'System.DBNull.ToString(System.IFormatProvider)' has some invalid arguments

Source Error:



Line 1093:                                        </div>
Line 1094:                                    </div>
Line 1095:                                }
Line 1096:
Line 1097:                                <div class="row">

Solution: Check you are providing null values or problem with casting

2020-03-09