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

Error:

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.

0

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');
tep_expire_specials();
+ 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

1

Office Document Content Types

Here is a list of content types

ExtMIME Type
.docapplication/msword
.dotapplication/msword
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotxapplication/vnd.openxmlformats-officedocument.wordprocessingml.template
.docmapplication/vnd.ms-word.document.macroEnabled.12
.dotmapplication/vnd.ms-word.template.macroEnabled.12
.xlsapplication/vnd.ms-excel
.xltapplication/vnd.ms-excel
.xlaapplication/vnd.ms-excel
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltxapplication/vnd.openxmlformats-officedocument.spreadsheetml.template
.xlsmapplication/vnd.ms-excel.sheet.macroEnabled.12
.xltmapplication/vnd.ms-excel.template.macroEnabled.12
.xlamapplication/vnd.ms-excel.addin.macroEnabled.12
.xlsbapplication/vnd.ms-excel.sheet.binary.macroEnabled.12
.pptapplication/vnd.ms-powerpoint
.potapplication/vnd.ms-powerpoint
.ppsapplication/vnd.ms-powerpoint
.ppaapplication/vnd.ms-powerpoint
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
.potxapplication/vnd.openxmlformats-officedocument.presentationml.template
.ppsxapplication/vnd.openxmlformats-officedocument.presentationml.slideshow
.ppamapplication/vnd.ms-powerpoint.addin.macroEnabled.12
.pptmapplication/vnd.ms-powerpoint.presentation.macroEnabled.12
.potmapplication/vnd.ms-powerpoint.presentation.macroEnabled.12
.ppsmapplication/vnd.ms-powerpoint.slideshow.macroEnabled.12

 

0

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.
1

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.
0