473,397 Members | 2,056 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,397 software developers and data experts.

WSE SecurityTokenManager in GAC

I am using a WSE security token manager I have written myself.

My Web config looks like this
<securityTokenManager type="MyNamespace.WseSecurityHelper,MyAssembly"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
qname="wsse:UsernameToken" />

It all works really well until I put MyAssembly in the GAC and no longer
have it in the webservice's bin directory. I then get:

System.Configuration.ConfigurationException: WSE032: There was an error
loading the microsoft.web.services2 configuration section. --->
System.Configuration.ConfigurationException: WSE040: Type
MyNamespace.WseSecurityHelper,MyAssembly 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()
--- End of inner exception stack trace --- at
Microsoft.Web.Services2.Configuration.WebServicesC onfiguration.Initialize()
at
Microsoft.Web.Services2.WebServicesExtension.Befor eDeserializeServer(SoapServerMessage
message)

Any ideas? Its a hassle because all my webservices use the same helper to
set roles etc.

Thanks for any help
Jon

Nov 21 '05 #1
3 4451
Are you using the strong name with the version and public key token
appended to "MyAssembly"? For example:

type="MyNamespace.WseSecurityHelper,MyAssembly,Ver sion=1.0.0.0,Culture=neutral,PublicKeyToken=5c09e9 2c59d4bdda"

Jon Booth wrote:
I am using a WSE security token manager I have written myself.

My Web config looks like this
<securityTokenManager type="MyNamespace.WseSecurityHelper,MyAssembly"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
qname="wsse:UsernameToken" />

It all works really well until I put MyAssembly in the GAC and no longer
have it in the webservice's bin directory. I then get:

System.Configuration.ConfigurationException: WSE032: There was an error
loading the microsoft.web.services2 configuration section. --->
System.Configuration.ConfigurationException: WSE040: Type
MyNamespace.WseSecurityHelper,MyAssembly 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()
--- End of inner exception stack trace --- at
Microsoft.Web.Services2.Configuration.WebServicesC onfiguration.Initialize()
at
Microsoft.Web.Services2.WebServicesExtension.Befor eDeserializeServer(SoapServerMessage
message)

Any ideas? Its a hassle because all my webservices use the same helper to
set roles etc.

Thanks for any help
Jon

Nov 21 '05 #2
Thanks Drew, that did it.
Much appreciated.

Jon

"Drew Robbins" <"drew at drewby.com"> wrote in message
news:OL**************@TK2MSFTNGP10.phx.gbl...
Are you using the strong name with the version and public key token
appended to "MyAssembly"? For example:

type="MyNamespace.WseSecurityHelper,MyAssembly,Ver sion=1.0.0.0,Culture=neutral,PublicKeyToken=5c09e9 2c59d4bdda"

Jon Booth wrote:
I am using a WSE security token manager I have written myself.

My Web config looks like this
<securityTokenManager type="MyNamespace.WseSecurityHelper,MyAssembly"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
qname="wsse:UsernameToken" />

It all works really well until I put MyAssembly in the GAC and no longer
have it in the webservice's bin directory. I then get:

System.Configuration.ConfigurationException: WSE032: There was an error
loading the microsoft.web.services2 configuration section. --->
System.Configuration.ConfigurationException: WSE040: Type
MyNamespace.WseSecurityHelper,MyAssembly 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()
--- End of inner exception stack trace --- at
Microsoft.Web.Services2.Configuration.WebServicesC onfiguration.Initialize()
at
Microsoft.Web.Services2.WebServicesExtension.Befor eDeserializeServer(SoapServerMessage
message)

Any ideas? Its a hassle because all my webservices use the same helper to
set roles etc.

Thanks for any help
Jon


Nov 21 '05 #3
Hello Jon,
I didnot get how you fixed the problem.
I am also getting similar kind of problem when client is used from some other machin than from machin on which web services are hosted.
I am also using strong name for the assembly.
[<section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebSer vicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=XXX" />]
Can you please tell me how to fix the problem...
Thanks
Bhagvan
bchouguleATgmail.com
I am using a WSE security token manager I have written myself.

My Web config looks like this
<securityTokenManager type="MyNamespace.WseSecurityHelper,MyAssembly"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
qname="wsse:UsernameToken" />

It all works really well until I put MyAssembly in the GAC and no longer
have it in the webservice's bin directory. I then get:

System.Configuration.ConfigurationException: WSE032: There was an error
loading the microsoft.web.services2 configuration section. --->
System.Configuration.ConfigurationException: WSE040: Type
MyNamespace.WseSecurityHelper,MyAssembly 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()
--- End of inner exception stack trace --- at
Microsoft.Web.Services2.Configuration.WebServicesC onfiguration.Initialize()
at
Microsoft.Web.Services2.WebServicesExtension.Befor eDeserializeServer(SoapServerMessage
message)

Any ideas? Its a hassle because all my webservices use the same helper to
set roles etc.

Thanks for any help
Jon


User submitted from AEWNET (http://www.aewnet.com/)
Nov 23 '05 #4

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

Similar topics

4
by: Ashish | last post by:
Hi Guys I am getting the following error while implementing authentication using WS-security. "Microsoft.Web.Services2.Security.SecurityFault: The security token could not be authenticated...
1
by: Chris Jones | last post by:
Following several online examples, we have implemented the following using WSE 2.0: In the Web Servic .asmx file: namespace WebService1 { public class Service1 :...
1
by: Fernando | last post by:
The exception is raised in the following line of the code: SecurityContextToken sct = client.IssueSecurityContextTokenAuthenticated(token, issuerToken); The exception is the following:...
1
by: | last post by:
Hi, I'd like to store X509 cetificates in a central location (file server, database, etc), and load them when needed, is it practical ? and in term of implementation, can this be achieved by...
0
by: Sreedhar | last post by:
Hi, I am working on the Application which will use wse2.0 to get the data from the server and when I hosted in sharepoint which has wse3.0, I am getting the following error after some period of...
0
by: bbalet.free.fr | last post by:
Hello, Anyone succeed to make work a .Net WebService client WSE with WSS4J (I always get the error message 'Signature Verification failed') ? On the server my WSDD config is: <deployment...
1
by: Benjamin | last post by:
Hi! I am upgrading a WSE enabled web services project from VS2003 to VS2005. Still using/referencing WSE 2.0 (not WSE 3.0) because of backwards client compatibility issues. When calling the...
4
by: linhardt | last post by:
I'm trying to upgrade my .NET 1.1 app from .NET 1.1 to .NET 2.0. I was having trouble upgrading from WSE 2.0 to WSE 3.0 because my app uses endpoints. I read somewhere that I can run .NET 2.0...
0
by: Joel B | last post by:
We have got stuck in our development of a web service client with wse 2.0 sp3. Its a secure webservice over ssl with WS-Trust and WS-Security. We get SecurityException: WSE537 and cant get past...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.