473,382 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Cannot Start Custom Token Manager

Following several online examples, we have implemented the following using WSE 2.0:

In the Web Servic .asmx file:
namespace WebService1

{
public class Service1 : System.Web.Services.WebService
{
public class AuthenticationManager : UsernameTokenManager
{
protected override string AuthenticateToken(UsernameToken token)
{
return token.Password;;
}
}
....

And in the Service's Web.config file we have the following:
<security>
<securityTokenManager
qname="wsse:UsernameToken"
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"
type="WebService1.AuthenticationManager, WebService1" />

When we run the client application, we get an exception when it calls the web service:

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 WebService1.AuthenticationManager, WebService1 could not be loaded. Please check the configuration file. at System.Web.Configuration.HttpConfigurationRecord.E valuate(String configKey, SectionRecord section)

Any clues as to what we're doing wrong?

Thanks,
Chris
Nov 21 '05 #1
1 3323
I don't know if this will solve the entire issue, but the namespace looks
wrong. It should be:

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd" qname="wsse:UsernameToken"

If you are using the production build of WSE 2.0 then it uses the OASIS
standard for WS-Security.

Jeffrey Hasan, MCSD
President, Bluestone Partners, Inc.
-----------------------------------------------
Author of: Expert SOA in C# Using WSE 2.0 (APress, 2004)
http://www.bluestonepartners.com/soa.aspx

"Chris Jones" <Chris Jo***@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
Following several online examples, we have implemented the following using WSE 2.0:
In the Web Servic .asmx file:
namespace WebService1

{
public class Service1 : System.Web.Services.WebService
{
public class AuthenticationManager : UsernameTokenManager
{
protected override string AuthenticateToken(UsernameToken token)
{
return token.Password;;
}
}
...

And in the Service's Web.config file we have the following:
<security>
<securityTokenManager
qname="wsse:UsernameToken"
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"
type="WebService1.AuthenticationManager, WebService1" />

When we run the client application, we get an exception when it calls the web service:
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
WebService1.AuthenticationManager, WebService1 could not be loaded. Please
check the configuration file. at
System.Web.Configuration.HttpConfigurationRecord.E valuate(String configKey,
SectionRecord section)
Any clues as to what we're doing wrong?

Thanks,
Chris

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Smutny30 | last post by:
Hello, I am preparing a database that will store 10 n * GBs - 100 n * GBs of data. I calculated to have 1,2 GB of bufferpools. I run the DB2 v. 8.2.1 alone on 4 GB box. I obtain : ...
29
by: Ken Allen | last post by:
I have a number of services developed in C# (.Net), and they have been working fine for the most part. Recently someone reported that ipon occassion (originally rarely, but more frequently on some...
5
by: Martin Bischoff | last post by:
Hi, is it possible to implement custom resource managers for ASP.NET 2.0 so that strings can be read from a database (for example)? Ideally, it should be possible to configure the custom...
10
by: Chris | last post by:
Hi, I'm new to web services and I'm having some trouble figuring out how to define a custom object that works through the webservice. For example, I have the following on the server side: ...
0
by: HansvL | last post by:
Both the clientapplication and the webservice are written by me. I do not want to burden my customers with handling X509 certificates. The solution is then either to use SSL, or use the...
4
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
0
by: =?Utf-8?B?Y2hleWVubmU=?= | last post by:
The Microsoft articles on how to implement the BinarySecurityToken and token manager classes don't work. Has anyone succesfully implemented the BinarySecurityToken class?
1
by: Miro | last post by:
I am going throug a vb 2005 book, but I am using vs 2008 professional, and I cant seem to find a menu option its talking about. I am wondering if this has moved - i cannot seem to find it for the...
2
by: =?Utf-8?B?V29ua28gdGhlIFNhbmU=?= | last post by:
Hello, I have an existing (WPF) Class Library project that I'd like to add a WPF Custom Control to. However, when I try to Add New Item, that isn't one of the available options. Perhaps this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.