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

sn.exe utility and signing

I'm having problems signing my assembly. When I try to compile my code
I get an error:

The keyset is not defined.

Here is the code from my AssemblyInfo.cs

[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("..\\..\\..\\myKey.snk")]

Any suggestions about signing are appreciated, I couldn't find much
info on the web. This is probably overkill for my apps but I'd like to
learn a little about it. Thanks
Nov 16 '05 #1
5 10048
Hi
This should work ok; you need to do nothing other that specifying
the URL of the key file. Try to generate another key pair file (by running
sn.exe with this argument -k c:\key.snk)may be there is something working
with the one you are using. Hope this helps.
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2
That is what I did before, I created my own keys and still get the
error.

Cryptographic failure while signing assembly 'C:\Documents and
Settings\Me\My Documents\Visual Studio
Projects\myProject\obj\Release\myProject.exe' -- 'The keyset is not
defined. '

I've created 3 different keys all with the same result. I've also
tried the -i arg and installed a key pair though that still gave the
same error. Any other suggestions are appreciated. Thanks

On Mon, 28 Jun 2004 09:46:14 GMT, mo************@egdsc.microsoft.com
(Mohamoss) wrote:
Hi
This should work ok; you need to do nothing other that specifying
the URL of the key file. Try to generate another key pair file (by running
sn.exe with this argument -k c:\key.snk)may be there is something working
with the one you are using. Hope this helps.
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC


Nov 16 '05 #3
Hi,
have you tried to put the full path to the key file in AssemblyInfo.cs,
not the relative one?

Sunny

In article <f7********************************@4ax.com>,
po****@hotmail.com says...
That is what I did before, I created my own keys and still get the
error.

Cryptographic failure while signing assembly 'C:\Documents and
Settings\Me\My Documents\Visual Studio
Projects\myProject\obj\Release\myProject.exe' -- 'The keyset is not
defined. '

I've created 3 different keys all with the same result. I've also
tried the -i arg and installed a key pair though that still gave the
same error. Any other suggestions are appreciated. Thanks

On Mon, 28 Jun 2004 09:46:14 GMT, mo************@egdsc.microsoft.com
(Mohamoss) wrote:
Hi
This should work ok; you need to do nothing other that specifying
the URL of the key file. Try to generate another key pair file (by running
sn.exe with this argument -k c:\key.snk)may be there is something working
with the one you are using. Hope this helps.
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC


Nov 16 '05 #4
Yes I have and I get the exact same error. :/

On Mon, 28 Jun 2004 14:50:52 -0500, Sunny
<su******@icebergwireless.com> wrote:
Hi,
have you tried to put the full path to the key file in AssemblyInfo.cs,
not the relative one?

Sunny

In article <f7********************************@4ax.com>,
po****@hotmail.com says...
That is what I did before, I created my own keys and still get the
error.

Cryptographic failure while signing assembly 'C:\Documents and
Settings\Me\My Documents\Visual Studio
Projects\myProject\obj\Release\myProject.exe' -- 'The keyset is not
defined. '

I've created 3 different keys all with the same result. I've also
tried the -i arg and installed a key pair though that still gave the
same error. Any other suggestions are appreciated. Thanks

On Mon, 28 Jun 2004 09:46:14 GMT, mo************@egdsc.microsoft.com
(Mohamoss) wrote:
> Hi
> This should work ok; you need to do nothing other that specifying
>the URL of the key file. Try to generate another key pair file (by running
>sn.exe with this argument -k c:\key.snk)may be there is something working
>with the one you are using. Hope this helps.
>Mohamed Mahfouz
>MEA Developer Support Center
>ITworx on behalf of Microsoft EMEA GTSC



Nov 16 '05 #5
I restarted vs, changed nothing, tried to build, and it was
successful. I guess vs needs to be restarted every time a new keypair
is added/created.

On Mon, 28 Jun 2004 20:53:10 GMT, polarz <po****@hotmail.com> wrote:
Yes I have and I get the exact same error. :/

On Mon, 28 Jun 2004 14:50:52 -0500, Sunny
<su******@icebergwireless.com> wrote:
Hi,
have you tried to put the full path to the key file in AssemblyInfo.cs,
not the relative one?

Sunny

In article <f7********************************@4ax.com>,
po****@hotmail.com says...
That is what I did before, I created my own keys and still get the
error.

Cryptographic failure while signing assembly 'C:\Documents and
Settings\Me\My Documents\Visual Studio
Projects\myProject\obj\Release\myProject.exe' -- 'The keyset is not
defined. '

I've created 3 different keys all with the same result. I've also
tried the -i arg and installed a key pair though that still gave the
same error. Any other suggestions are appreciated. Thanks

On Mon, 28 Jun 2004 09:46:14 GMT, mo************@egdsc.microsoft.com
(Mohamoss) wrote:

> Hi
> This should work ok; you need to do nothing other that specifying
>the URL of the key file. Try to generate another key pair file (by running
>sn.exe with this argument -k c:\key.snk)may be there is something working
>with the one you are using. Hope this helps.
>Mohamed Mahfouz
>MEA Developer Support Center
>ITworx on behalf of Microsoft EMEA GTSC


Nov 16 '05 #6

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

Similar topics

1
by: Martin | last post by:
I have a couple of questions around code signing with MS technology: 1. Is there a way to transfer the generated strong name signing private key directly to a smartcard (or generate it on the...
4
by: Todd Richardson | last post by:
Two questions. We would like to have users complete ASP.NET web forms for submission. Once these are completed I would like to generate an XML document from the form. The XML document should...
11
by: Todd Matson | last post by:
I have several database applications developed in Access 2000. Some of my users have upgraded to Access 2003, and they get a warning every time they open the application: "This file may not be safe...
2
by: laimis | last post by:
Hey, So I get the idea of signing the assembly as to prevent any tempering with it (besides the added ability to install it into the GAC). I did a lit exercise myself there I signed the app,...
0
by: Daniel | last post by:
Hi, I need help signing SOAP/XML. Have been stuck with this for a couple of days now. I get the following error message from the server: "The security token could not be authenticated or...
0
by: Raffi Basmajian | last post by:
I am trying to understand the difference between signing ClickOnce manifests and signing shared assemblies. My company is building .Net 2005 WinForm applications for internal company use only....
3
by: Budhi Saputra Prasetya | last post by:
Hi All, I'm currently trying to embed .NET Custom Control into my ASP .NET. The control call FindWindow and BringWindowToTop function of Win32 API that is wrapped under another DLL file. I...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
1
by: BillE | last post by:
<extreme frustration> I have googled and read about this, but can't seem to get a grip on it. Apparently I am being coerced into digitally signing applications. Is this true? What if I don't...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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: 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...

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.