473,395 Members | 1,761 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,395 software developers and data experts.

Exception in WSE 2.0 example

I am trying to run the Secure Conversation example in WSE 2.0.
On the call to client.IssueSecurityContextTokenAuthenticated(toke n,
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.SendR equestResponse(String
methodname, SoapEnvelope envelope)
at
Microsoft.Web.Services2.Security.SecurityTokenServ iceClient.RequestSecurityToken(SecurityTokenMessag e
request, String methodName) at
Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.RequestSecurityContextToken(Secur ityToken
baseToken, SecurityToken issuerToken, AppliesTo appliesTo)
at
Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.IssueSecurityContextTokenAuthenti cated(SecurityToken
baseToken, SecurityToken issuerToken)
at SecureConvClient.SecureConvClient.Run() in
d:\work\tests1\securitytestswse\secureconvcodeclie nt\secureconvclient.cs:line
91
at SecureConvClient.SecureConvClient.Main(String[] args) in
d:\work\tests1\securitytestswse\secureconvcodeclie nt\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

Nov 23 '05 #1
5 4180
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.
"aualias" <au*****@newsgroups.nospam> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
I am trying to run the Secure Conversation example in WSE 2.0.
On the call to client.IssueSecurityContextTokenAuthenticated(toke n,
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.SendR equestResponse(String
methodname, SoapEnvelope envelope)
at
Microsoft.Web.Services2.Security.SecurityTokenServ iceClient.RequestSecurityToken(SecurityTokenMessag e
request, String methodName) at
Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.RequestSecurityContextToken(Secur ityToken
baseToken, SecurityToken issuerToken, AppliesTo appliesTo)
at
Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.IssueSecurityContextTokenAuthenti cated(SecurityToken
baseToken, SecurityToken issuerToken)
at SecureConvClient.SecureConvClient.Run() in
d:\work\tests1\securitytestswse\secureconvcodeclie nt\secureconvclient.cs:line
91
at SecureConvClient.SecureConvClient.Main(String[] args) in
d:\work\tests1\securitytestswse\secureconvcodeclie nt\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

Nov 23 '05 #2
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.E valuate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBa se.System.Configuration.IConfigurationSystem.GetCo nfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConf ig(String sectionName)
at
Microsoft.Web.Services2.Configuration.WebServicesC onfiguration.Initialize()

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

"aualias" wrote:
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.
"aualias" <au*****@newsgroups.nospam> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
I am trying to run the Secure Conversation example in WSE 2.0.
On the call to client.IssueSecurityContextTokenAuthenticated(toke n,
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.SendR equestResponse(String
methodname, SoapEnvelope envelope)
at
Microsoft.Web.Services2.Security.SecurityTokenServ iceClient.RequestSecurityToken(SecurityTokenMessag e
request, String methodName) at
Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.RequestSecurityContextToken(Secur ityToken
baseToken, SecurityToken issuerToken, AppliesTo appliesTo)
at
Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.IssueSecurityContextTokenAuthenti cated(SecurityToken
baseToken, SecurityToken issuerToken)
at SecureConvClient.SecureConvClient.Run() in
d:\work\tests1\securitytestswse\secureconvcodeclie nt\secureconvclient.cs:line
91
at SecureConvClient.SecureConvClient.Main(String[] args) in
d:\work\tests1\securitytestswse\secureconvcodeclie nt\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


Nov 23 '05 #3
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.E valuate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBa se.System.Configuration.IConfigurationSystem.GetCo nfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConf ig(String sectionName)
at
Microsoft.Web.Services2.Configuration.WebServicesC onfiguration.Initialize()

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

"aualias" wrote:
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.
"aualias" <au*****@newsgroups.nospam> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
I am trying to run the Secure Conversation example in WSE 2.0.
On the call to client.IssueSecurityContextTokenAuthenticated(toke n,
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.SendR equestResponse(String
methodname, SoapEnvelope envelope)
at
Microsoft.Web.Services2.Security.SecurityTokenServ iceClient.RequestSecurityToken(SecurityTokenMessag e
request, String methodName) at
Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.RequestSecurityContextToken(Secur ityToken
baseToken, SecurityToken issuerToken, AppliesTo appliesTo)
at
Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.IssueSecurityContextTokenAuthenti cated(SecurityToken
baseToken, SecurityToken issuerToken)
at SecureConvClient.SecureConvClient.Run() in
d:\work\tests1\securitytestswse\secureconvcodeclie nt\secureconvclient.cs:line
91
at SecureConvClient.SecureConvClient.Main(String[] args) in
d:\work\tests1\securitytestswse\secureconvcodeclie nt\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


Nov 23 '05 #4
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#X509SubjectKeyIdentifier">bBwPfItvKp3b6TNDq+14 qs58VJQ=</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


"Fernando" <Fe******@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
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.E valuate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBa se.System.Configuration.IConfigurationSystem.GetCo nfig(String
configKey)
at System.Configuration.ConfigurationSettings.GetConf ig(String
sectionName)
at
Microsoft.Web.Services2.Configuration.WebServicesC onfiguration.Initialize()

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

"aualias" wrote:
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.
"aualias" <au*****@newsgroups.nospam> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
>I am trying to run the Secure Conversation example in WSE 2.0.
> On the call to client.IssueSecurityContextTokenAuthenticated(toke n,
> 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.SendR equestResponse(String
> methodname, SoapEnvelope envelope)
> at
> Microsoft.Web.Services2.Security.SecurityTokenServ iceClient.RequestSecurityToken(SecurityTokenMessag e
> request, String methodName) at
> Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.RequestSecurityContextToken(Secur ityToken
> baseToken, SecurityToken issuerToken, AppliesTo appliesTo)
> at
> Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.IssueSecurityContextTokenAuthenti cated(SecurityToken
> baseToken, SecurityToken issuerToken)
> at SecureConvClient.SecureConvClient.Run() in
> d:\work\tests1\securitytestswse\secureconvcodeclie nt\secureconvclient.cs:line
> 91
> at SecureConvClient.SecureConvClient.Main(String[] args) in
> d:\work\tests1\securitytestswse\secureconvcodeclie nt\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
>
>
>


Nov 23 '05 #5
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#X509SubjectKeyIdentifier">bBwPfItvKp3b6TNDq+14 qs58VJQ=</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


"Fernando" <Fe******@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
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.E valuate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBa se.System.Configuration.IConfigurationSystem.GetCo nfig(String
configKey)
at System.Configuration.ConfigurationSettings.GetConf ig(String
sectionName)
at
Microsoft.Web.Services2.Configuration.WebServicesC onfiguration.Initialize()

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

"aualias" wrote:
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.
"aualias" <au*****@newsgroups.nospam> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
>I am trying to run the Secure Conversation example in WSE 2.0.
> On the call to client.IssueSecurityContextTokenAuthenticated(toke n,
> 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.SendR equestResponse(String
> methodname, SoapEnvelope envelope)
> at
> Microsoft.Web.Services2.Security.SecurityTokenServ iceClient.RequestSecurityToken(SecurityTokenMessag e
> request, String methodName) at
> Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.RequestSecurityContextToken(Secur ityToken
> baseToken, SecurityToken issuerToken, AppliesTo appliesTo)
> at
> Microsoft.Web.Services2.Security.SecurityContextTo kenServiceClient.IssueSecurityContextTokenAuthenti cated(SecurityToken
> baseToken, SecurityToken issuerToken)
> at SecureConvClient.SecureConvClient.Run() in
> d:\work\tests1\securitytestswse\secureconvcodeclie nt\secureconvclient.cs:line
> 91
> at SecureConvClient.SecureConvClient.Main(String[] args) in
> d:\work\tests1\securitytestswse\secureconvcodeclie nt\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
>
>
>


Nov 23 '05 #6

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

Similar topics

10
by: Gary.Hu | last post by:
I was trying to catch the Arithmetic exception, unsuccessfully. try{ int a = 0, b = 9; b = b / a; }catch(...){ cout << "arithmetic exception was catched!" << endl; } After ran the program,...
42
by: cody | last post by:
public DateTime Value { get { try { return new DateTime(int.Parse(tbYear.Text), int.Parse(tbMonth.Text), int.Parse(tbDay.Text)); } catch (FormatException)
4
by: maricel | last post by:
I have the following base table structure - DDL: CREATE TABLE "ADMINISTRATOR"."T1" ( "C1" INTEGER NOT NULL ) IN "TEST_TS" ; ALTER TABLE "ADMINISTRATOR"."T1" ADD PRIMARY KEY
16
by: ChInKPoInt [No MCSD] | last post by:
I am using Visual Studio 2K3 writing a ASP.NET web application. Is there a way to force the C# compiler to catch possible exception? In Java, all exceptions thrown MUST BE caught, otherwise...
7
by: Dan Bass | last post by:
In a somewhat complex application, I've developed plug-in architecture and am having a problem as to when to catch general exceptions for logging purposes. In each plug-in class library, for...
44
by: craig | last post by:
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level...
13
by: tolisss | last post by:
Hi i have setup a global exception handler b4 Application.Run like Application.ThreadException += new ThreadExceptionEventHandler(GlobalExceptionProcessing.AppThreadException ); then after...
17
by: cashdeskmac | last post by:
Nice and simple one for you all... Is there a time to use Catch(Exception) rather than creating an instance of the Exception, as in Catch(Exception ex)?
132
by: Zorro | last post by:
The simplicity of stack unraveling of C++ is not without defective consequences. The following article points to C++ examples showing the defects. An engineer aware of defects can avoid...
3
by: =?Utf-8?B?QWxleGFuZGVyIFd5a2Vs?= | last post by:
I recently raninto major problems when I added the Exception namespace to the Project which has my DBML file attached to it. Once I renamed all the Exceptions instances to Syste.Exception the...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.