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: AssemblyDelaySi gn(false)]
[assembly: AssemblyKeyFile ("..\\..\\..\\m yKey.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 5 10072
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
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\Visua l Studio
Projects\myProj ect\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
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\Visua l Studio Projects\myProj ect\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
Yes I have and I get the exact same error. :/
On Mon, 28 Jun 2004 14:50:52 -0500, Sunny
<su******@icebe rgwireless.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\Visua l Studio Projects\myProj ect\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
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******@iceb ergwireless.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****@hotmai l.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\Visua l Studio Projects\myProj ect\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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 smart card), without the
unsecure intermediate storage to the filesystem using sn -k and sn -i?
2. What is the format of the key files produced by sn -k and sn -p?
3. Is there a way to generate a PKCS#10 format certificate request from the
sn -p...
|
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 include the data and
the form so that the orginal document could be recreated
even if the submitting form is changed in the future.
I would also like to sign the XML document so that we can
provide proof that the xml document has not been...
|
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 if it contains code that
was intended to harm your computer."
I understand that there are two ways to avoid this message. One is to set
the security level on Access to low. The other is to sign the database with
a digital certificate, and ask...
|
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, compiled, disassembled it, changed
some IL, assembled it and tried to load it but got the loader exception. Now
partial signing allows to keep the private key in the seperate location from
public. But how can I load the assembly which has been just...
|
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 authorized."
I am probably doing something wrong in the signing process. I use a
tool called "Exchanger XML Professional 3.2" for canonicalization and
sending the message. OpenSSL for SHA-1 hashing, RSA signing and Base 64
encoding.
| |
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. Currently, the ClickOnce security
settings on the applications is set for "Full Trust". We are using shared
assemblies across development groups, but none of these assemblies are signed
with strong names since signing assemblies is only required when...
|
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 read documentation and it says that I need to sign my control using
SignCode and I did. I signed both DLL (Control and Wrapper), but I still have
the error message for Security Exception. This is the message:
|
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 since I've
installed so many versions of Visual Studio)
RL
http://msdn.microsoft.com/en-us/library/h4fa028b.aspx
Deployment in Visual Studio
|
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 want to?
The basic question is: If I click the "Create Test Certificate" button on
the Signing tab of the properties for my application so I can publish it,
what happens when I distribute the application?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |