I don't have HOL with me.
The error message means "UsernameTokenManager config is incorrect" due to
@type attribute is incorrect.
So please check your derived UsernameTokenManager config entry, attribute
@type at target Service.
Please check the faultActor for checking where the fault happens in client
trace(enabling trace by config - WseSetting tool)
<diagnostics>
<trace enabled="true" input="c:\input.config"
output="c:\output.config" />
</diagnostics>
thanks
Byron KIM
I dont really understand.
Let me explain further: This HOL applies to Exercise E of Routing Secure
Messages
1) The HOL works fine for UsernameToken that uses Windows Authentication.
Once I use a derived usernameToken manager, it fails
2) To make sure that I have done the configuration properly, I set up the
client to bypass the Router intermediary and send the message straight to
the Server >>> This works fine, which means that my config file and the
usernameToken Manager class is set up properly
3) Once I change the setting in the proxy classes to go pass the Router, an
exception happens again.
HELP : The error exception is as follows: Please do bear in mind that this
doesnt happen if the router intermediary is bypassed in this case.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>System.Web.Services.Protocols.SoapHeaderException:
Server unavailable, please try later --->
System.Configuration.ConfigurationException: WSE032: There was an error
loading the microsoft.web.services2 configuration section. --->
System.Configuration.ConfigurationException: WSE040: Type
WSE2SecureRouting.SWMUsernameTokenManager, WSE2SecureRouting could not be
loaded. Please check the configuration file.
at System.Web.Configuration.HttpConfigurationRecord.Evaluate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.Evaluate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBase.System.Configuration.IC
onfigurationSystem.GetConfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConfig(String
sectionName)
at
Microsoft.Web.Services2.Configuration.WebServicesConfiguration.Initialize()
--- End of inner exception stack trace ---
at
Microsoft.Web.Services2.Configuration.WebServicesConfiguration.Initialize()
at Microsoft.Web.Services2.Pipeline..ctor()
at
Microsoft.Web.Services2.Messaging.SoapHttpRouter.CreateRequestPipeline()
at
Microsoft.Web.Services2.Messaging.RoutingAsyncResult..ctor(SoapHttpRouter
parent, HttpContext httpContext, AsyncCallback callback, Object asyncState)
--- End of inner exception stack trace ---</faultstring>
<faultactor>http://localhost/DotNetProj/WSE2SecureRouting/Router/1.ashx</fau
ltactor>
</soap:Fault>
</soap:Body>
</soap:Envelope>
=======================================================================
> I don't have HOL with me.
> The error message means "UsernameTokenManager config is incorrect" due to
[quoted text clipped - 44 lines]
> >
> > Thanks for any insights into this frustrating issue