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 / April 2008

Tip: Looking for answers? Try searching our database.

WSE2013: X509TokenProvider is unable to provide an X.509 token

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tdh - 29 Apr 2008 15:17 GMT
In windows server 2003, it works fine but windows server 2008. certificate  
has imported "personal" and "other people" in "local machine" certificate  
location by mmc-->certificates. run Certificates Tool installed by WSE 3.0,
i  
cannot find store name "personal" under "local machine" certificate
location,  
so i cannot config access right for it. what can i do? thanks.  

server  wse3policycache.config:

     <serviceToken>
        <x509 storeLocation="LocalMachine" storeName="My"  
findValue="CN=******" findType="FindBySubjectDistinguishedName" />
      </serviceToken>

client by certificate wse3policycache.config:

      <serviceToken>
        <x509 storeLocation="LocalMachine" storeName="AddressBook"  
findValue="CN=******" findType="FindBySubjectDistinguishedName" />
      </serviceToken>
client by code:
       // Set the X509 Certifcate onto the assertion.
       assertion.X509TokenProvider = new  
X509TokenProvider(StoreLocation.LocalMachine,
                                                           
StoreName.AddressBook,
                                                           "CN=******",
                                                           
X509FindType.FindBySubjectDistinguishedName);

following is throw errors:

WSE2013: X509TokenProvider is unable to provide an X.509 token. There are no  
certificates in the certificate store that match the find value of  
'CN=******'.  
Description: An unhandled exception occurred during the execution of the  
current web request. Please review the stack trace for more information
about  
the error and where it originated in the code.  

Exception Details: System.ArgumentException: WSE2013: X509TokenProvider is  
unable to provide an X.509 token. There are no certificates in the  
certificate store that match the find value of 'CN=*****'.  

Source Error:  

An unhandled exception was generated during the execution of the current web  
request. Information regarding the origin and location of the exception can  
be identified using the exception stack trace below.  

Stack Trace:  

[ArgumentException: WSE2013: X509TokenProvider is unable to provide an X.509  
token. There are no certificates in the certificate store that match the
find  
value of 'CN=****'. ]
   
Microsoft.Web.Services3.Design.X509TokenProvider.CreateToken(StoreLocation  
location, StoreName storeName, String findValue, X509FindType findType) +429
   
Microsoft.Web.Services3.Design.ClientOutputFilter..ctor(UsernameForCertificateAssertion assertion) +41
   
Microsoft.Web.Services3.Design.UsernameForCertificateAssertion.CreateClientOutputFilter(FilterCreationContext context) +51
   
Microsoft.Web.Services3.Design.Policy.CreateClientPipeline(PipelineCreationContext context) +196
  Microsoft.Web.Services3.WebServicesClientProtocol.SetPolicy(Policy  
policy) +77
  WSEClient.RunProxy() +457
  _Default.Page_Load(Object sender, EventArgs e) +50
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,  
Object t, EventArgs e) +25
  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,  
EventArgs e) +48
  System.Web.UI.Control.OnLoad(EventArgs e) +133
  System.Web.UI.Control.LoadRecursive() +66
  System.Web.UI.Page.ProcessRequestMain(Boolean  
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2604
tdh - 30 Apr 2008 09:20 GMT
i got it work now .
1. config application and file directory access permission, add "network
service" .
2. i forgot to update my dll files in bin directory.

> In windows server 2003, it works fine but windows server 2008. certificate  
> has imported "personal" and "other people" in "local machine" certificate  
[quoted text clipped - 74 lines]
>    System.Web.UI.Page.ProcessRequestMain(Boolean  
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2604

Rate this thread:







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.