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

Error Message: The handle is invalid

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.
Feb 14 '06 #1
1 17839
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?

"Gabe Garza" wrote:
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.

Feb 21 '06 #2

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

Similar topics

1
by: Sean Abrahams | last post by:
The following is a reprint of a message I sent to the tutor list a long time ago, that I haven't gotten around to discussing with anyone else and failed to hear a reply on the tutor list. Hoping...
14
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought...
4
by: Mike | last post by:
I have a C# aspx page that calls a C# class file for db access, data, etc. If one of the "functions" I call in the class has an error how can i pass that error back to the aspx page and then...
2
by: Schorschi | last post by:
Can't seemd to get ReadFile API to work! Returns invalid handle error? =========================================================================== Ok, the visual basic gurus, help! The...
1
by: sranger | last post by:
When I try to use a System.IO.Ports.SerialPort object to read from a serial port, half of the time I have no problems. However, after I successfully read from the serial port, then close the...
35
by: jeffc226 | last post by:
I'm interested in an idiom for handling errors in functions without using traditional nested ifs, because I think that can be very awkward and difficult to maintain, when the number of error checks...
5
by: Grant Edwards | last post by:
I'm trying to use the py-gnuplot module on windows, and have been unable to get it to work reliably under Win2K and WinXP. By default, it uses popen(gnuplotcmd,'w'), but in some situations that...
0
by: mrkafk | last post by:
So I set out to learn handling three-letter-acronym files in Python, and SAX worked nicely until I encountered badly formed XMLs, like with bad characters in it (well Unicode supposed to handle it...
1
by: mrkafk | last post by:
(this is a repost, for it's been a while since I posted this text via Google Groups and it plain didn't appear on c.l.py - if it did appear anyway, apols) So I set out to learn handling...
2
by: vijayrvs | last post by:
SearchCrawler.java The program search crawler used to search the files from the website. From the following program i got 7 compiler error. can any body clarify it and provide me solution. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.