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 / February 2006

Tip: Looking for answers? Try searching our database.

Error Message: The handle is invalid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gabe Garza - 14 Feb 2006 17:16 GMT
In the following code snippet:
       Microsoft.Web.Services.Security.Signature sig;
       try
       {
         sig = new Signature(x509Token);
       }
       catch(Exception ex)
       {
         txtStatus.Text = ex.Message + "-" + x509Token.Certificate.GetName();
       }

txtStatus has
 The handle is invalid-C=US, PostalCode=91436, S=California, L=Los
Angeles,etc...
The exception is "The handle is invalid"
Followed by our certificate name.

This runs on several development computers we have here but not an a Windows
2003 Server. I know I'm missing setting something on the Windows 2003 Server
but I'm not sure what. Can anyone point me to what I should be looking at.

Thanks.
Gabe Garza - 21 Feb 2006 08:43 GMT
Solved this.

Turns out in Windows 2003 you need to give the "NETWORK SERVICE" account
access to the certificate.

I'm not sure what's correct but I've noticed posts that say give ASPNET
access to the RSA or MachineKeys directory, but since the web application I
have uses only one certificate I give access to the ASPNET account or now the
"NETWORK SERVICE" account to a certificate not the RSA or MachineKeys
directories.

Anyone have comments to this?

> In the following code snippet:
>         Microsoft.Web.Services.Security.Signature sig;
[quoted text clipped - 18 lines]
>
> Thanks.

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.