I am using a WSE security token manager I have written myself.
My Web config looks like this
<securityTokenM anager type="MyNamespa ce.WseSecurityH elper,MyAssembl y"
xmlns:wsse="htt p://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
qname="wsse:Use rnameToken" />
It all works really well until I put MyAssembly in the GAC and no longer
have it in the webservice's bin directory. I then get:
System.Configur ation.Configura tionException: WSE032: There was an error
loading the microsoft.web.s ervices2 configuration section. --->
System.Configur ation.Configura tionException: WSE040: Type
MyNamespace.Wse SecurityHelper, MyAssembly could not be loaded. Please check
the configuration file. at
System.Web.Conf iguration.HttpC onfigurationRec ord.Evaluate(St ring configKey,
SectionRecord section) at
System.Web.Conf iguration.HttpC onfigurationRec ord.GetConfig(S tring configKey,
Boolean cacheResult) at
System.Web.Conf iguration.HttpC onfigurationRec ord.GetConfig(S tring configKey,
Boolean cacheResult) at System.Web.Http Context.GetConf ig(String name) at
System.Web.Conf iguration.HttpC onfigurationSys temBase.System. Configuration.I ConfigurationSy stem.GetConfig( String
configKey) at System.Configur ation.Configura tionSettings.Ge tConfig(String
sectionName) at
Microsoft.Web.S ervices2.Config uration.WebServ icesConfigurati on.Initialize()
--- End of inner exception stack trace --- at
Microsoft.Web.S ervices2.Config uration.WebServ icesConfigurati on.Initialize()
at
Microsoft.Web.S ervices2.WebSer vicesExtension. BeforeDeseriali zeServer(SoapSe rverMessage
message)
Any ideas? Its a hassle because all my webservices use the same helper to
set roles etc.
Thanks for any help
Jon
My Web config looks like this
<securityTokenM anager type="MyNamespa ce.WseSecurityH elper,MyAssembl y"
xmlns:wsse="htt p://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
qname="wsse:Use rnameToken" />
It all works really well until I put MyAssembly in the GAC and no longer
have it in the webservice's bin directory. I then get:
System.Configur ation.Configura tionException: WSE032: There was an error
loading the microsoft.web.s ervices2 configuration section. --->
System.Configur ation.Configura tionException: WSE040: Type
MyNamespace.Wse SecurityHelper, MyAssembly could not be loaded. Please check
the configuration file. at
System.Web.Conf iguration.HttpC onfigurationRec ord.Evaluate(St ring configKey,
SectionRecord section) at
System.Web.Conf iguration.HttpC onfigurationRec ord.GetConfig(S tring configKey,
Boolean cacheResult) at
System.Web.Conf iguration.HttpC onfigurationRec ord.GetConfig(S tring configKey,
Boolean cacheResult) at System.Web.Http Context.GetConf ig(String name) at
System.Web.Conf iguration.HttpC onfigurationSys temBase.System. Configuration.I ConfigurationSy stem.GetConfig( String
configKey) at System.Configur ation.Configura tionSettings.Ge tConfig(String
sectionName) at
Microsoft.Web.S ervices2.Config uration.WebServ icesConfigurati on.Initialize()
--- End of inner exception stack trace --- at
Microsoft.Web.S ervices2.Config uration.WebServ icesConfigurati on.Initialize()
at
Microsoft.Web.S ervices2.WebSer vicesExtension. BeforeDeseriali zeServer(SoapSe rverMessage
message)
Any ideas? Its a hassle because all my webservices use the same helper to
set roles etc.
Thanks for any help
Jon
Comment