ok - here's the exception I get:
System.Configuration.ConfigurationErrorsException was unhandled
BareMessage="WSE032: There was an error loading the
microsoft.web.services3 configuration section."
Line=0
Message="WSE032: There was an error loading the microsoft.web.services3
configuration section."
Source="Microsoft.Web.Services3"
StackTrace:
at
Microsoft.Web.Services3.Configuration.WebServicesConfiguration.get_Current()
at
Microsoft.Web.Services3.Configuration.WebServicesConfiguration.get_MessagingConfiguration()
at Microsoft.Web.Services3.WebServicesClientProtocol..ctor()
at ConsoleTestBed.ws_xWebService.xWebServiceWSWse..ctor() in
C:\Projects\xWebServiceWS\ConsoleTestBed\Web
References\ws_xWebService\Reference.vb:line 40
at ConsoleTestBed.Module1.Main() in
C:\Projects\xWebServiceWS\ConsoleTestBed\Module1.vb:line 9
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Inner Exception is also a System.Configuration.ConfigurationErrorsException:
{"WSE040: Type xWebServiceWS.customUsernameTokenManager,xWebService could
not be loaded.
Please check the configuration file.
(C:\Projects\xWebServiceWS\ConsoleTestBed\bin\Debug\ConsoleTestBed.vshost.exe.config line 14)"}
Hope this helps.
[quoted text, click to view] "Robert Achmann" wrote:
> Hi.
>
> No mater what I do, I can't seem to define my custom usernameTokenManager
> type properly in my client app pointing to my WSE 3.0 web service.
>
> my custom usernameTokenManager is in the root name space of my web service
>
> Public Class customUsernameTokenManager
> Inherits UsernameTokenManager
>
> the config is:
>
> <microsoft.web.services3>
> <security>
> <securityTokenManager>
> <add
> type="WebSvcsNameSpace.customUsernameTokenManager,WebSvcsAssemblyNameName"
> namespace="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" localName="UsernameToken" />
> </securityTokenManager>
> <policy fileName="wse3policyCache.config" />
> </security>
> </microsoft.web.services3>
>
> just for your notes, WebSvcsAssemblyNameName and WebSvcsNameSpace are the
> same name in my world - let's call is XWebService
>
>
> I'm lost.
>
> Any attempt any any combination of naming fails.
>
> Help!