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 / May 2005

Tip: Looking for answers? Try searching our database.

Exception while trying to use Secure Conversation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fernando - 26 May 2005 17:39 GMT
The exception is raised in the following line of the code:
SecurityContextToken sct
=        client.IssueSecurityContextTokenAuthenticated(token, issuerToken);

The exception is the following:
uncontrolled exception of type 'System.Web.Services.Protocols.SoapException'
en microsoft.web.services2.dll

additional information: 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
WSSecureConvService.CustomUsernameTokenManager, WSSecureConvService 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()

Any help will be great.
Thanks.
Fernando - 26 May 2005 17:47 GMT
I found the problem... it was this line in the configuration file:
<securityTokenManager type="LaboratorioContracts.CustomUsernameTokenManager,
LaboratorioContracts"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" qname="wsse:UsernameToken" />

It had old reference (from where i took the example).
But, now i have a new problem... :(

System.Web.Services.Protocols.SoapHeaderException: Server unavailable,
please try later ---> System.InvalidOperationException: Private Key is not
available
  at
Microsoft.Web.Services2.Security.Cryptography.RSACryptoServiceProvider.Decrypt(Byte[] ciphertext, Boolean useOAEP)
  at
Microsoft.Web.Services2.Security.Cryptography.RSA15KeyExchangeFormatter.DecryptKey(Byte[] cipherKey)
  at Microsoft.Web.Services2.Security.EncryptedKey.Decrypt()
  at Microsoft.Web.Services2.Security.Security.LoadXml(XmlElement element)
  at
Microsoft.Web.Services2.Security.SecurityInputFilter.ProcessMessage(SoapEnvelope envelope)
  at Microsoft.Web.Services2.Pipeline.ProcessInputMessage(SoapEnvelope
envelope)
  at
Microsoft.Web.Services2.WebServicesExtension.BeforeDeserializeServer(SoapServerMessage message)

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.