Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / June 2004

Tip: Looking for answers? Try searching our database.

Another GEM of a question relating to samples that came with Hands-On-Lab of WSE2.0 RTM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Softwaremaker - 18 Jun 2004 23:30 GMT
Hello again,

The Hands-On-Lab of WSE2 RTM came with an example of SecureRouting where
they combine WS-Policy with SOAP Routing. Everything worked fine for the
examples and samples.

However, it only works for PasswordOption.SendPlainText for the
usernametoken and it therefore uses the Windows local SAM account for
authentication. If I am to use PasswordOption.SendHashed for this same
example and built derive my usernametokenmanager (and put in proper config
setttings), the lab will fail with

...Cannot load the usernametokenmanager type...please check your
configuration file...

There was no hint of any trace files in the Router folder which led me to
believe that the message didnt even get there in the first place ?

With this custom usernametoken with a PasswordOption.SendHashed option, I
remove the SOAP Routing aspects of the sample and have the client talk
directly to the service, it worked beautifully, proving that all config
settings in the *config file is correct and my usernametoken manager was
done properly.

BUT once I have it route through an intermediary, it failed again. The
soapActor attribute was all set properly in the service files.

What other things should I be looking out for if I am to implement the
SecureRouting examples with a custom usernametoken with a
PasswordOption.SendHashed option ?

Thanks for any insights into this frustrating issue

Signature

Warmest Regards,
Softwaremaker
Architect | Evangelist | Consultant

+++++++++++++++++++++++++++++++++

Softwaremaker - 19 Jun 2004 02:12 GMT
...which begets the next question...

Does SOAPHttpRouter.ProcessRequestMessage need to verify and authenticate
each incoming message ?

Thanks.

~Softwaremaker

> Hello again,
>
[quoted text clipped - 28 lines]
>
> Thanks for any insights into this frustrating issue
Softwaremaker - 19 Jun 2004 04:42 GMT
After further testing, I found out that the Router does NOT need to verify
incoming messages to the Intermediary.

So my question remains, why do I get the error WSE040: Error loading
> > ...Cannot load the usernametokenmanager type...please check your
> > configuration file...

This only happens if the messages are coming in from the intermediary.
However, if I bypass the intermediary for this, the Service will respond and
that ONLY proves that the UsernameTokenManager type is derived and
configured properly.

Can someone please help with this ?

Signature

Thank you very much

Warmest Regards,
Softwaremaker
Architect | Evangelist | Consultant

+++++++++++++++++++++++++++++++++

> ...which begets the next question...
>
[quoted text clipped - 37 lines]
> >
> > Thanks for any insights into this frustrating issue
ByronKim - 21 Jun 2004 08:50 GMT
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

> Hello again,
>
[quoted text clipped - 28 lines]
>
> Thanks for any insights into this frustrating issue
Softwaremaker - 21 Jun 2004 11:51 GMT
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 ---&gt;
System.Configuration.ConfigurationException: WSE032: There was an error
loading the microsoft.web.services2 configuration section. ---&gt;
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.