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 / April 2007

Tip: Looking for answers? Try searching our database.

WSE 3.0 usernametoken config error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
scham - 22 Mar 2007 18:10 GMT
have a web service using wse 3.0, usernameforCertificateSecurity, and a
custom usernametokenmanager.  If I run the web service and a client on my dev
machine it works fine,  but now I have moved the web service to another
machine and wse is puking on me.

I have the certificate set up correctly.



The error I'm seeing in the server event log is:

...

System.Configuration.ConfigurationErrorsException: The entry 'UsernameToken'
has already been added.

...



My web.config looks like this:

<microsoft.web.services3>

<policy fileName="wse3policyCache.config" />

<security>

<securityTokenManager>

<add type="XXXXX.Common.ServiceSecurity.ServiceUsernameTokenManager,
XXXXX.Common.ServiceSecurity"
namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" localName="UsernameToken" />

</securityTokenManager>

</security>

</microsoft.web.services3>

This is the only place in my web.config where 'UsernameToken' appears.  

I saw a single posting on a message board somewhere by someone having the
same issue.  In his case he said there were some wse 3 config files sitting
in wwwroot that he had to delete.  I don't seem to have those files so
unfortunately that information does not help me.

I've tried adding a <clear/> command before doing the <add> but I still get
the same message.  



Anyone have any ideas why my web service is failing on processing the config
file?
scham - 23 Mar 2007 20:29 GMT
Update.  

I moved the web service to another computer, started up the client and
viola! everything worked as expected.

Must be something in the configuration of the other server.

At least that narrows it down...

>  have a web service using wse 3.0, usernameforCertificateSecurity, and a
> custom usernametokenmanager.  If I run the web service and a client on my dev
[quoted text clipped - 50 lines]
> Anyone have any ideas why my web service is failing on processing the config
> file?
scham - 28 Mar 2007 00:05 GMT
Found the issue.  Somehow I screwed up the deployment.  I had the web service
running at root level on a certain port and then I had it running again one
level down on the same port.  Not sure how that happened but now that it's
gone everything works fine.

> Update.  
>
[quoted text clipped - 59 lines]
> > Anyone have any ideas why my web service is failing on processing the config
> > file?
op - 27 Apr 2007 15:44 GMT
Probably you had another web.config on the upper level in IIS. For example
one for Web Site (redundant) and another one for VIrtual Directory. And there
was a conflict because of it.

> Found the issue.  Somehow I screwed up the deployment.  I had the web service
> running at root level on a certain port and then I had it running again one
[quoted text clipped - 64 lines]
> > > Anyone have any ideas why my web service is failing on processing the config
> > > file?

Rate this thread:







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.