Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
ASP.NET Maskedit Control SharePoint 2007 Error
posted

I have built a MOSS custom content control using the Maskedit control (Infragistics35.WebUI.WebDataInput.v9.1) which loads, lets me type in data, and saves perfectly.  However, everytime IIS or the application pool is cycled\started an error is registered in the Application Event Viewer on the server.

Event Viewer Error:

Load control template file /_controltemplates/AccountNumberControl.ascx failed: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\932f1b3b\8779d9de\App_Web_accountnumbercontrol.ascx.5f1d2a77.tlfhkjkd.0.cs(160): error CS0012: The type 'Infragistics.WebUI.Shared.IProvidesEmbeddableEditor' is defined in an assembly that is not referenced. You must add a reference to assembly 'Infragistics35.WebUI.Shared.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb'.

I have project references for:

  • Infragistics35.WebUI.Shared.v9.1
  • Infragistics35.WebUI.WebDataInput.v9.1

I added these references to the MOSS web.config file:

      <SafeControl Assembly="Infragistics35.WebUI.Shared.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.WebUI.Shared" TypeName="*" Safe="True" />
      <SafeControl Assembly="Infragistics35.WebUI.WebDataInput.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.WebUI.WebDataInput" TypeName="*" Safe="True" />
      <SafeControl Assembly="Infragistics35.Web.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.Web" TypeName="*" Safe="True" />
      <SafeControl Assembly="Infragistics35.WebUI.Misc.v9.1, Version=9.1.20091.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.WebUI.Misc" TypeName="*" Safe="True" />

So I was hoping maybe someone would have an idea why this error is being thrown.  Again, the controls work but I am just seeing this annoying error message.

Kurt