Groups | Blog | Home
all groups > dotnet web services enhancements > september 2005 >

dotnet web services enhancements : Verify Digital Signatures of SOAP Messages Signed Using a User Name and Password



Ted Bogucki
9/16/2005 2:17:09 PM
I am getting the following error when I try to create a custom username and
pasword validator

The code works if I use windows authentication.

I am using the sample code that is shown in the msdn help for wse2.0. I
have installed wse 20. sp3

I am using visual studio.net 2003 and have created my project in vb.net



System.Web.Services.Protocols.SoapHeaderException:
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
UsernameSignCodeService.CustomUsernameTokenManager, UsernameSignCodeService
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.GetConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBase.System.Configuration.IConfigurationSystem.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.WebServicesExtension.BeforeDeserializeServer(SoapServerMessage
message)
--- End of inner exception stack trace ---
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at TestjobXML.UserPasswd1.UserPasswd1Wse.HelloWorld() in
D:\VSS_Spot\TestjobXML\Web References\UserPasswd1\Reference.vb:line 42
at TestjobXML.frmTestJobXML.Button1_Click(Object sender, EventArgs e) in
D:\VSS_Spot\TestjobXML\Form1.vb:line 252

Pablo Cibraro
9/19/2005 11:11:27 AM
Hi Ted,
WSE can't load the assembly that contains the UsernameTokenManager.
If the solution works when you use Windows Authentication, then the default
ASPNET user doens't have file permissions on that file.

Regards,
Pablo Cibraro
www.lagash.com


[quoted text, click to view]

AddThis Social Bookmark Button