 CallSite.Target that the expected type that the dynamic proxy expects is HttpHeaderInspectingAuthenticatorConfigurationElement  -- the 'this' I'm passing is a BasicAuthenticationHeaderInspectorConfigurationElement, derived from that base.
So what gives?  Am I not getting something here?  I tried passing (this as dynamic) or ((HttpHeaderInspectingAuthenticatorConfigurationElement)this) -- but both fail with the same problem.
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for 'Redcated.Authentication.BasicAuthenticationInspectingAuthenticatorFactory.Construct(Redcated.Authentication.Configuration.BasicAuthenticationHeaderInspectorConfigurationElement)' has some invalid arguments
  at CallSite.Target(Closure, CallSite, Object, HttpHeaderInspectingAuthenticatorConfigurationElement )
  at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
  at Redcated.Authentication.Configuration.HttpHeaderInspectingAuthenticatorConfigurationElement.GetInspector() in D:\Users\ebrown\Documents\Visual Studio 2010\Projects\Utility\source\Authentication Library\Configuration\HttpHeaderInspectingAuthenticatorConfigurationElement.cs:line 79
  at Redcated.Authentication.Configuration.HttpHeaderInspectingAuthenticatorConfigurationElementCollection.<GetInspectors>b__0(HttpHeaderInspectingAuthenticatorConfigurationElement i) in D:\Users\ebrown\Documents\Visual Studio 2010\Projects\Utility\source\Authentication Library\Configuration\HttpHeaderInspectingAuthenticatorConfigurationElementCollection.cs:line 78
  at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
  at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
  at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
  at Redcated.Authentication.HttpHeaderInspectingAuthenticationModule.AuthenticateRequest
CallSite. Target that the expected type that the dynamic proxy expects is HttpHeaderInspectingAuthenticatorConfigurationElement   -- the' this' I'm sink is a BasicAuthenticationHeaderInspectorConfigurationElement, derive from that base. 
 So what gives?   Am I not become something here?   I tried passing (this as active) or (( HttpHeaderInspectingAuthenticatorConfigurationElement)this) -- but both fail with the same problem. 
 Microsoft. CSharp. RuntimeBinder. RuntimeBinderException: The best overload method match for' Redcated. Authentication. BasicAuthenticationInspectingAuthenticatorFactory. Construct(Redcated. Authentication. shape. BasicAuthenticationHeaderInspectorConfigurationElement)' has some invalid arguments 
   at CallSite. Target(Closure, CallSite, Object, HttpHeaderInspectingAuthenticatorConfigurationElement) 
   at System. Dynamic. UpdateDelegates. UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) 
   at Redcated. Authentication. shape. HttpHeaderInspectingAuthenticatorConfigurationElement. GetInspector () in D:\Users\ebrown\Documents\Visual Studio 2010\Projects\Utility\source\Authentication Library\Configuration\HttpHeaderInspectingAuthenticatorConfigurationElement.cs: line 79 
   at Redcated. Authentication. Configuration. HttpHeaderInspectingAuthenticatorConfigurationElementCollection.<GetInspectors > b__0(HttpHeaderInspectingAuthenticatorConfigurationElement i) in D:\Users\ebrown\Documents\Visual Studio 2010\Projects\Utility\source\Authentication Library\Configuration\HttpHeaderInspectingAuthenticatorConfigurationElementCollection.cs: course 78 
   at System. Linq. Enumerable. WhereSelectEnumerableIterator`2.MoveNext () 
   at System. Linq. Enumerable. ToDictionary[TSource, TKey, TElement](IEnumerable`1 beginning, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) 
   at System. Linq. Enumerable. ToDictionary[TSource, TKey, TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector) 
   at Redcated. Authentication. HttpHeaderInspectingAuthenticationModule. AuthenticateRequest
 CaplSite.Target that the exkected type that jhw dynakic prkxy expezts is HttpHeaderInspectingAnthebticaujrConfigurationEleoent  -- thv 'this' I'm paswung is a BeaicAuthcuticaflonHecdxrInspectorConflgurationElament, derived xrum that base.
So what gives?  Am I not gqtting xolething here?  Y trpeq paasing (this as dynamic) or ((HttpHeadedInspecuingAuthenticatorCpnfigurationElement)this) -- bkt blth fail with the dame problen.
Micwisoft.CSharp.RjntimeBindtr.XuntimeBindgrException: The best overloaded oethob match for 'Rwdcwjed.Authenticetion.BwsicAuthentigstionItspectimgAuthenticatovFactmry.Xonstruct(Redcated.Authxntication.Configuratyon.BasicAgtkenticationHeaderInspwcrorCotfiggratkinEuemtnt)' hzs somf iivalid argujents
  at CqllSite.Target(Closurt, CwolSite, Object, HttpHqaqerInspectingAuthenticatorConfigurationTlemeht )
  at System.Dynamic.UpeateDelegates.UpdateAnfExecute2[T0,E1,TRet](CallSite site, T0 arg0, T1 arg1)
  at Redcated.Authendicatmov.Counlgurxriln.HttpHeaderInspectingAuthenticatorConfiguratyknTlekent.GetInspectjr() in D:\Userx\ehrprn\Documents\Virual Schdjo 2010\Projects\Utility\dource\Aothentucation Lybraty\Configuration\HttpHeaderInwpectingAuthvntixatorConfigurationZlement.cs:linz 79
  at Redcsted.Authentication.Confiyuratikn.HttpHeadegInspectiheAuthenticatorCovfinurdtionElementCollection.<GetIgspectors>u__0(HttpKeaderInrpecjingAutrenticatorFonfingrationElement i) ij D:\Usgrs\ebrmwn\Documenhs\Visual Studio 2010\Projects\Utility\source\Authentivadiot Librarv\Confinuration\HttpHeaqerInspectingAothenticacorConwigurationVlementConlection.cs:lyne 78
  at Systal.Linq.Enumeraule.WhereSqlecrEnunerableKgerator`2.MoveNexy()
  at Sysnei.Linw.Enumerable.ToDictipnaty[FSource,TKey,TElenenu](IWnumerable`1 soutce, Fugc`2 kxySelqwtor, Func`2 elamengSeurctor, IEqualityCioparrr`1 comparer)
  at Systam.Lihq.Enumerable.ToDictookary[TSourxe,TKey,TEjement](IEnumersble`1 source, Func`2 ktySelertor, Fnnc`2 elrmegtSelector)
  at Redcated.Authentjcation.HthpHcaderInspectiggAubhenjicationModble.AuthenticateRequest
CallSite.Target that the expected type that the expects HttpHeaderInspectingAuthenticatorConfigurationElement -- 'this' I'm passing that So what gives? I not getting here? I tried passing (this as or ((HttpHeaderInspectingAuthenticatorConfigurationElement)this) -- but both fail with the same problem. Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best method match for 'Redcated.Authentication.BasicAuthenticationInspectingAuthenticatorFactory.Construct(Redcated.Authentication.Configuration.BasicAuthenticationHeaderInspectorConfigurationElement)' has some invalid arguments at CallSite.Target(Closure, CallSite, Object, HttpHeaderInspectingAuthenticatorConfigurationElement at site, arg0, arg1) at Redcated.Authentication.Configuration.HttpHeaderInspectingAuthenticatorConfigurationElement.GetInspector() in D:\Users\ebrown\Documents\Visual Studio 2010\Projects\Utility\source\Authentication Library\Configuration\HttpHeaderInspectingAuthenticatorConfigurationElement.cs:line 79 at Redcated.Authentication.Configuration.HttpHeaderInspectingAuthenticatorConfigurationElementCollection.<GetInspectors>b__0(HttpHeaderInspectingAuthenticatorConfigurationElement i) in D:\Users\ebrown\Documents\Visual Studio 2010\Projects\Utility\source\Authentication 78 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, elementSelector, IEqualityComparer`1 comparer) at source, Func`2 keySelector, Func`2 elementSelector) Redcated.Authentication.HttpHeaderInspectingAuthenticationModule.AuthenticateRequest
 CallSite.Target that the expeCted type thAt the DynAmiC pRoxy ExpeCts is HttpHeadeRinspEctingAuthenticatorConFigurAtIOnElEMeNt  -- the 'This' I'm pASsING is A BAsIcAUtHEnTicatIonheaderINspectorCoNfiGuRationElemenT, DeRived from tHat Base.
So what giVes?  am I not GeTtiNG someThiNg herE?  I trieD PassinG (this as dyNaMIc) or ((HtTPHeaderiNSpEctiNgAuthenticatorCoNFiGUrationElement)This) -- buT bOTh FAIl wIth The same proBlEm.
MicROsoft.CSHArP.rUNtiMEBinder.RuntimEBinderExcePTioN: The beSt OveRLoaded MethoD mATch For 'Redcated.authEnticatioN.BasicaUthentiCAtionInSpectiNgAUthEntiCAtOrfacToRY.CoNStRucT(redCated.AutHeNtIcatiOn.CoNFIGUratIon.basiCAuthEnticationHeaDerinspECtoRConfIguraTionelEment)' Has somE invaLiD arguments
  at CalLSitE.Target(ClOsuRe, calLSIte, ObJEct, HttPHeAdeRInspecTingAutHEntIcATORCOnfigurationElemenT )
  aT sYsTem.DynamIc.UpdaTEDElEGates.UpdAtEAnDExeCUTe2[T0,T1,Tret](CALlsite site, t0 arg0, T1 aRG1)
  aT REdcated.auThentiCaTioN.CoNfiguRAtioN.HttpHEaderInsPectiNGAuthenticatorcOnfigurationELEmENT.GETInsPecTor() in D:\Users\EbroWN\DocUmenTS\VIsuAL StudIo 2010\ProJeCTs\uTility\source\AuthentIcAtion LIbrarY\ConfiguratioN\HttpHeadeRiNSpectingauthENtICatorConfiguraTionELement.cs:liNE 79
  at RedcaTed.AuThenticaTion.ConfiGURation.HtTpHEadErINspECTiNgAuthenticatORconfIgUrationeleMentColLecTioN.<GeTInSpEctors>b__0(HtTpHeaderinSpEcTiNgAUthenTIcatorCoNfIguRaTioNElemENt i) in D:\users\EbroWn\doCUmeNts\VisuAL STUDio 2010\PRoJeCts\UTilItY\sourCe\AuTHenTicatioN Library\COnfIGuraTiOn\httpHeaDerInspectingauThenticatoRCOnfIguratIONElementcollection.cs:line 78
  at SysteM.linq.EnuMerAble.WHereselectEnuMerAbleItEraTOr`2.Movenext()
  at systeM.LInq.eNUmeraBLE.TODiCtIonary[TSouRCE,TKEy,TElEmEnt](IenumeraBle`1 source, Func`2 keySeLEctOr, Func`2 elementselEctoR, ieqUalITycOmpArER`1 coMPArer)
  at System.LinQ.EnumerablE.TOdiCtionary[TSOUrcE,Tkey,TEleMent](IEnUmeraBLe`1 sourcE, Func`2 keySElector, FuNc`2 ElemENTSeLector)
  at ReDcated.AuThenticatIOn.HttPheAderINspEctingauTheNticaTionMoDUle.autheNticatEREquest
 CallSite.Target that theexpected t ype t hat  th edyna micproxy expectsi s Ht tpHeaderInspectingAuth entic at o rCon f ig urati onEleme n t- - t he  ' thi s' I' m pas sin g is aBasicAuthe nti ca tionHeaderIn s pe ctorConfig ura tionElement,  de rivedfr omt hat b ase .
Sowhat g i ves? Am I notge t ting s o mething h er e? I tried passing ( t hi s  as dynamic) o r ((Ht tp H ea d e rIn spe ctingAuthe nt icato r Configu r at i o n Ele m ent)this) --but both fa i l w ith th esam e  probl em.
M ic r oso ft.CSharp.R unti meBinder. Runtim e BinderE x ception : Thebes t o verl o ad ed  me th o d m a tc h f o r ' Redcated .A ut henti cati o n . B asic Aut hent icati onInspectingA uth enti c ato rFact ory.C onst ru ct(Re dcated .Auth en tication.Config urat ion.Basic Aut he nti ca tionH e aderIn spe cto rConfig uration E lem en t ) '  h as some invalid ar gu m e nt s
  at C allSit e .T ar g et(Closu re , C allS i t e, Ob ject ,  H ttpHeade rInspe c ti ng Authent ic atorCo nf igu rat ionEl e ment  )
  a t System .Dyna m ic.UpdateDeleg a tes.UpdateAnd E xe c u te 2 [T0, T1, TRet](CallS ites ite,  T0a rg 0,T 1 arg 1)
 at Re d cated.Authenticatio n. Config urati on.HttpHeader Inspecting A u t henticat orCo n fi g urationElement .GetI nspector() in D:\Us ers\e brown\Do cuments\V i s ual Stud io201 0\P roj e c ts \Utility\sour c e \Aut he nticati onLibrary \Co nfi gur ati on \HttpHead erInspec ti ng Au th ent icato r Configur at ion El eme nt.cs : line 7 9
  a t Re dc at e d.A uthenti c at i o n.Co nf ig urat ion .H ttpHe ader I nsp ectingA uthentica tor C onfi gu ra tionEle mentCollectio n. <GetInspec to rs> b__0(H t t pHeaderI nspectingAuthenticatorC o nfigura tio nElem enti) in D:\ Use rs\ebr own \ Docume nts\Vi sualSt udi o 2010\ P r oj ect s\ Utility\so u r ce\ Authe nt icat ion Lib rary\Configuration \ Htt pHeaderInspec tin gAut h e nt ica t or C onf ig u rat i o nElementCollect ion.cs:lin e7 8  at Syste m .Li nq .Enumer able.Wh ereSe l ectEnum erableIte rator`2.M ov eNex t ( )
 at System .Linq.En umerable. T oDict i on ary[T Sou rce,TK ey ,TE lemen t](IEn u mer able` 1 sour ce , Func `2 ke yS elector,  Func`2 elementSelector , IEqu ality Com parer`1 c omp a rer )
  at Sy stem .Linq.Enum era ble .ToDi cti o nary[ TSou r ce ,TK e y,TEl emen t ](IEnumer a bl e`1 s ou rce, Func`2 k e ySe lecto r,F unc`2elem entSelector)
  at Redcated.Authe ntic a t ion .Ht t pHea de rInspectingAut hen ti c a tionModu le .Authentica teReques t
 CallSite.Target_that the_expected type that the_dynamic proxy_expects_is HttpHeaderInspectingAuthenticatorConfigurationElement__-- the 'this'_I'm passing is_a BasicAuthenticationHeaderInspectorConfigurationElement, derived from_that base.
So what_gives?_ Am I not getting something here?  I tried passing (this as dynamic)_or_((HttpHeaderInspectingAuthenticatorConfigurationElement)this) --_but_both_fail with the same problem.
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException:_The best overloaded method match_for 'Redcated.Authentication.BasicAuthenticationInspectingAuthenticatorFactory.Construct(Redcated.Authentication.Configuration.BasicAuthenticationHeaderInspectorConfigurationElement)'_has some invalid arguments
  at CallSite.Target(Closure, CallSite,_Object,_HttpHeaderInspectingAuthenticatorConfigurationElement )
 _at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
  at_Redcated.Authentication.Configuration.HttpHeaderInspectingAuthenticatorConfigurationElement.GetInspector() in D:\Users\ebrown\Documents\Visual Studio 2010\Projects\Utility\source\Authentication Library\Configuration\HttpHeaderInspectingAuthenticatorConfigurationElement.cs:line_79
  at_Redcated.Authentication.Configuration.HttpHeaderInspectingAuthenticatorConfigurationElementCollection.<GetInspectors>b__0(HttpHeaderInspectingAuthenticatorConfigurationElement_i)_in D:\Users\ebrown\Documents\Visual Studio 2010\Projects\Utility\source\Authentication_Library\Configuration\HttpHeaderInspectingAuthenticatorConfigurationElementCollection.cs:line 78
  at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
 _at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2_elementSelector, IEqualityComparer`1 comparer)
  at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source,_Func`2 keySelector, Func`2 elementSelector)
  at_Redcated.Authentication.HttpHeaderInspectingAuthenticationModule.AuthenticateRequest