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 in WSE 2.0 example

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aualias - 24 May 2005 02:08 GMT
I am trying to run the Secure Conversation example in WSE 2.0.
On the call to client.IssueSecurityContextTokenAuthenticated(token,
issuerToken);
I get the following exception:

System.Web.Services.Protocols.SoapException:
SOAP-Fault code: http://schemas.xmlsoap.org/soap/envelope/:Server
Message: Server unavailable, please try later
  at
Microsoft.Web.Services2.Messaging.SoapClient.SendRequestResponse(String
methodname, SoapEnvelope envelope)
  at
Microsoft.Web.Services2.Security.SecurityTokenServiceClient.RequestSecurityToken(SecurityTokenMessage
request, String methodName)   at
Microsoft.Web.Services2.Security.SecurityContextTokenServiceClient.RequestSecurityContextToken(SecurityToken
baseToken, SecurityToken issuerToken, AppliesTo appliesTo)
  at
Microsoft.Web.Services2.Security.SecurityContextTokenServiceClient.IssueSecurityContextTokenAuthenticated(SecurityToken
baseToken, SecurityToken issuerToken)
  at SecureConvClient.SecureConvClient.Run() in
d:\work\tests1\securitytestswse\secureconvcodeclient\secureconvclient.cs:line
91
  at SecureConvClient.SecureConvClient.Main(String[] args) in
d:\work\tests1\securitytestswse\secureconvcodeclient\secureconvclient.cs:line
55

This is all being run locally on a Server 2003 machine with IIS 6.0. I
believe that I have installed the certificates correctly (emphasis on
believe...).
The client private cert is in Current User/Personal.
The server private cert is in Local Computer/Personal.
The server public cert in in Current User/Other People

Any ideas where this is coming from?

Thanks.

David
aualias - 24 May 2005 15:57 GMT
Figured it out...

I just had to give IIS read access to the certificate.  I don't think that
this was mentioned anywhere in the documentation.

>I am trying to run the Secure Conversation example in WSE 2.0.
> On the call to client.IssueSecurityContextTokenAuthenticated(token,
[quoted text clipped - 34 lines]
>
> David
Fernando - 26 May 2005 18:01 GMT
I am having the following exception, maybe you can help me...:

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()

it doesn't looks like it is the same problem... do you have any idea?
any help will be great...

> Figured it out...
>
[quoted text clipped - 39 lines]
> >
> > David
aualias - 27 May 2005 14:36 GMT
I'm just learning this stuff.  Others in this newsgroup know a lot more than
I do, so here is my guess...

I think that you are right, that it is a different problem, but I would
check the permissions just to be thorough.
Also verify that the certificates have been installed correctly.

I looked at the web.config file from the example that I have been playing
with.  Here is a section...

 <serverToken>
   <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
     <wsse:SecurityTokenReference>
       <!-- Replace the identifier below with your own certificate Id in
Base64String here
            The certificate is from the Local Machine store's Personal
folder, and the certificate
            Id can be retrieved by X509Certificate
    -->
       <wsse:KeyIdentifier
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X
509SubjectKeyIdentifier">bBwPfItvKp3b6TNDq+14qs58VJQ=</wsse:KeyIdentifier
>
     </wsse:SecurityTokenReference>
   </KeyInfo>
 </serverToken>

Make sure that your attributes (http://....) point to the correct locations
and that the KeyIdentifier is the correct one for your certificate.

Hopefully, someone who knows more that I will weigh in on this...

David

>I am having the following exception, maybe you can help me...:
>
[quoted text clipped - 72 lines]
>> >
>> > David

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.