Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Exception creating type for an adapter in a Sharepoint website

By: a guest on Feb 12th, 2012  |  syntax: None  |  size: 1.34 KB  |  hits: 41  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <browser refID="Default">
  2.         <controlAdapters>
  3.                 <adapter controlType="System.Web.UI.WebControls.Menu"
  4.                  adapterType="NameofEnterprise.SecondName.Adapters.MenuAdapter" />
  5.                 <adapter controlType="System.Web.UI.WebControls.Login"
  6.          adapterType="NameofEnterprise.SecondName.Adapters.LoginAdapter" />
  7.         </controlAdapters>
  8.     </browser>
  9.        
  10. Unable to create type 'NameofEnterprise.SecondName.Adapters.MenuAdapter'.
  11.        
  12. <system.web>
  13.     <compilation>
  14.       <assemblies>
  15.         <add assembly="*<Your assembly name here>*"/>
  16.     </assemblies>
  17.     </compilation>
  18. </system.web>
  19.        
  20. <browser refID="Default">
  21.     <controlAdapters>
  22.             <adapter controlType="System.Web.UI.WebControls.Menu"
  23.              adapterType="NameofEnterprise.SecondName.Adapters.MenuAdapter", YourAssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=YourPublicKeyToken"/>
  24.     </controlAdapters>
  25.        
  26. <system.web>
  27.     <compilation>
  28.       <assemblies>
  29.         <add assembly="*<Your assembly name here>*"/>
  30.     </assemblies>
  31.     </compilation>
  32. </system.web>
  33.        
  34. <browser refID="Default">
  35.     <controlAdapters>
  36.             <adapter controlType="System.Web.UI.WebControls.Menu"
  37.              adapterType="NameofEnterprise.SecondName.Adapters.MenuAdapter", YourAssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=YourPublicKeyToken"/>
  38.     </controlAdapters>