[Mono-list] NotImplemented error creating WCF ServiceHost

BrianDonegan brian.donegan at citrix.com
Tue Nov 16 12:23:50 EST 2010


I am converting our current Windows WCF web service to mono.  When I try to
instantiate our ServiceHost object...

ServiceHost selfHost = new ServiceHost(typeof([WebServiceClass]);

I get a not implemented error.  I figured this is due to something in the
existing web service that is not implemented (reasonable).  Because I can
not find anything in there, I created a new class with no methods, and tried
to use it in place of our web service... same error.  

>From this it seems that the error is coming from the ServiceHost ctor
itself.  Am I missing a compiler key of some sort?  I am working with
monoTools for Visual Studio to build/debug.

Here is the text of the error (sorry for the length):

==============================================

Unhandled Exception: System.NotImplementedException: The requested feature
is no
t implemented.
  at System.Configuration.ConfigurationElement.get_EvaluationContext ()
[0x00000
] in <filename unknown>:0
  at
System.ServiceModel.Configuration.ServiceModelExtensionCollectionElement`1[
TServiceModelExtensionElement].System.ServiceModel.Configuration.IConfigurationC
ontextProviderInternal.GetEvaluationContext () [0x00000] in <filename
unknown>:0

  at
System.ServiceModel.Configuration.ConfigurationHelpers.GetEvaluationContext
 (IConfigurationContextProviderInternal provider) [0x00000] in <filename
unknown
>:0
  at
System.ServiceModel.Configuration.EvaluationContextHelper.GetOriginalContex
t (IConfigurationContextProviderInternal owner) [0x00000] in <filename
unknown>:
0
  at
System.ServiceModel.Configuration.ServiceModelExtensionCollectionElement`1[
TServiceModelExtensionElement].System.ServiceModel.Configuration.IConfigurationC
ontextProviderInternal.GetOriginalEvaluationContext () [0x00000] in
<filename un
known>:0
  at
System.ServiceModel.Configuration.ConfigurationHelpers.GetOriginalEvaluatio
nContext (IConfigurationContextProviderInternal provider) [0x00000] in
<filename
 unknown>:0
  at System.ServiceModel.Configuration.EvaluationContextHelper.OnReset
(System.C
onfiguration.ConfigurationElement parent) [0x00000] in <filename unknown>:0
  at
System.ServiceModel.Configuration.ServiceModelExtensionCollectionElement`1[
TServiceModelExtensionElement].Reset
(System.Configuration.ConfigurationElement
parentElement) [0x00000] in <filename unknown>:0
  at System.Configuration.PropertyInformation.Reset
(System.Configuration.Proper
tyInformation parentProperty) [0x00000] in <filename unknown>:0
  at System.Configuration.ElementInformation.Reset
(System.Configuration.Element
Information parentInfo) [0x00000] in <filename unknown>:0
  at System.Configuration.ConfigurationElement.Reset
(System.Configuration.Confi
gurationElement parentElement) [0x00000] in <filename unknown>:0
  at System.Configuration.Configuration.GetSectionInstance
(System.Configuration
.SectionInfo config, Boolean createDefaultInstance) [0x00000] in <filename
unkno
wn>:0
  at System.Configuration.Configuration.GetSectionInstance
(System.Configuration
.SectionInfo config, Boolean createDefaultInstance) [0x00000] in <filename
unkno
wn>:0
  at System.Configuration.Configuration.GetSectionInstance
(System.Configuration
.SectionInfo config, Boolean createDefaultInstance) [0x00000] in <filename
unkno
wn>:0
  at System.Configuration.ConfigurationSectionCollection.get_Item
(System.String
 name) [0x00000] in <filename unknown>:0
  at System.Configuration.Configuration.GetSection (System.String path)
[0x00000
] in <filename unknown>:0
  at
System.Configuration.ClientConfigurationSystem.System.Configuration.Interna
l.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in
<filen
ame unknown>:0
  at System.Configuration.ConfigurationManager.GetSection (System.String
section
Name) [0x00000] in <filename unknown>:0
  at
System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetSectionFrom
ConfigurationManager (System.String sectionPath) [0x00000] in <filename
unknown>
:0
  at
System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetAssociatedS
ection (System.Configuration.ContextInformation evalContext, System.String
secti
onPath) [0x00000] in <filename unknown>:0
  at System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetSection
(Sy
stem.String sectionPath) [0x00000] in <filename unknown>:0
  at
System.ServiceModel.Configuration.CommonBehaviorsSection.UnsafeGetSection (
) [0x00000] in <filename unknown>:0
  at System.ServiceModel.Description.ConfigLoader.LookupCommonBehaviors
(System.
Configuration.ContextInformation context) [0x00000] in <filename unknown>:0
  at System.ServiceModel.Description.ConfigLoader.LoadServiceDescription
(System
.ServiceModel.ServiceHostBase host,
System.ServiceModel.Description.ServiceDescr
iption description, System.ServiceModel.Configuration.ServiceElement
serviceElem
ent, System.Action`1 addBaseAddress) [0x00000] in <filename unknown>:0
  at System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal
(Syste
m.ServiceModel.Description.ConfigLoader configLoader,
System.ServiceModel.Descri
ption.ServiceDescription description,
System.ServiceModel.Configuration.ServiceE
lement serviceSection) [0x00000] in <filename unknown>:0
  at System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal
(Syste
m.ServiceModel.Description.ConfigLoader configLoader,
System.ServiceModel.Descri
ption.ServiceDescription description, System.String configurationName)
[0x00000]
 in <filename unknown>:0
  at System.ServiceModel.ServiceHostBase.ApplyConfiguration () [0x00000] in
<fil
ename unknown>:0
  at System.ServiceModel.ServiceHostBase.InitializeDescription
(System.ServiceMo
del.UriSchemeKeyedCollection baseAddresses) [0x00000] in <filename
unknown>:0
  at System.ServiceModel.ServiceHost.InitializeDescription (System.Type
serviceT
ype, System.ServiceModel.UriSchemeKeyedCollection baseAddresses) [0x00000]
in <f
ilename unknown>:0
  at System.ServiceModel.ServiceHost..ctor (System.Type serviceType,
System.Uri[
] baseAddresses) [0x00000] in <filename unknown>:0
  at Core.DWM.Communication.WLBHost.ThreadProc () [0x00000] in <fi
lename unknown>:0


-- 
View this message in context: http://mono.1490590.n4.nabble.com/NotImplemented-error-creating-WCF-ServiceHost-tp3045291p3045291.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list