No parameterless constructor defined for this object. – Gridview DataBind ASP.NET


An exception of type ‘System.MissingMethodException’ occurred in mscorlib.dll but was not handled in user code

Additional information: No parameterless constructor defined for this object.


Possible Solution:

If defining your gridview’s data source in the ASP.NET markup. Make sure the code behind’s constructor is public and has the right visibility.

In my case, Resharper suggested making the constructor protected, which this problem.


OsCommerce – Call to a member function buildBlocks()

I just ran into this error when upgrading a OsCommerce Site:

Fatal error: Call to a member function buildBlocks() on a non-object in public_html/includes/template_top.php on line 13

I saw that others had this error, but no one was able to help them. In case anyone else runs into this error check the following:

In catalog/includes/application_top.php you want to make sure you instantiate oscTemplate.

@@ -420,6 +420,9 @@
require(DIR_WS_FUNCTIONS . 'specials.php');
+ require(DIR_WS_CLASSES . 'osc_template.php');
+ $oscTemplate = new oscTemplate();
// calculate category path
if (isset($HTTP_GET_VARS['cPath'])) {
$cPath = $HTTP_GET_VARS['cPath'];

This code snippet comes from the OsCommerce V2.2RC2a to V2.3 Upgrade guide found here


Office Document Content Types

Here is a list of content types

ExtMIME Type



Disable Visual Studio Tabify Prompt

I was getting this prompt because I installed Productivity Power Tools. To disable this question do the following:

  • Go to Tools -> Options
  • Productivity Power Tools -> Fix Mixed Tabs – set to NO.
  • Then restart Visual Studio.

Restart Jenkins from Web Interface

Navigate to:

  • [jenkins_url]/safeRestart. – This will restart Jenkins after the current builds have completed.
  • [jenkins_url]/restart - This will force a restart. Builds will not wait to complete.