Value cannot be null. Parameter name: type : ASPnet Error after deploy
<p>Working local when deployed fails.</p>

<p>Error :</p>

<blockquote>
  <p>MESSAGE: Value cannot be null. Parameter name: type</p>
  
  <p>SOURCE: mscorlib</p>
  
  <p>TARGET SITE: CreateInstance</p>
  
  <p>STACK TRACE: System.Activator.CreateInstance(Type type, Boolean
  nonPublic) System.Activator.CreateInstance(Type type)
  ClientPortal.WebPages.Details.imgToDOC_Click(Object sender,
  ImageClickEventArgs e)
  System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
  System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String
  eventArgument)
  System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
  eventArgument)
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
  sourceControl, String eventArgument)
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
  System.Web.UI.Page.ProcessRequestMain(Boolean
  includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</p>
</blockquote>
