0x80090003 is NTE_BAD_KEY. Is comes from CryptImportKey in
palrt\src\crypt.cpp. The problem is that the crypto key in your public
key is invalid.

ilasm from .NET Framework reports an error for me as well, except that
the error code is different (0x80131414).

-Jan

This posting is provided "AS IS" with no warranties, and confers no
rights.

-----Original Message-----
From: James Michael DuPont [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 1:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET-ROTOR] Problems with .publickey in ILASM

--- James Michael DuPont <[EMAIL PROTECTED]> wrote:
> I am compiling this code
> .assembly test_hash
> {
>    .publickey = (01 02 03 04 04 00 00 00 04 00 00 00 00 00 00 00)
> //
> ................
>    .hash algorithm 0x00008004
>     .ver 1:0:3300:0
> }
>
> here is the error message :
> Microsoft (R) .NET Framework IL Assembler.  Version 1.0.0002.0
> Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
> Assembling 'md.il' , no listing file, to DLL --> 'file'
> Source file is ANSI
> Creating PE file
> Could not create output file, error code=0x80090003
> ***** FAILURE *****
>
> Any ideas?
>
> mike

This works with ILASM from dotnet :
C:\temp>ilasm test.il /DLL

Microsoft (R) .NET Framework IL Assembler.  Version 1.0.3705.0
Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.
Assembling 'test.il' , no listing file, to DLL --> 'test.DLL'
Source file is ANSI

Creating PE file

Emitting members:
Global
Writing PE file
Operation completed successfully

ILDASM says :
-.-------------------------------------------------
.assembly test_hash
{
  .publickey = (00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 )
  .hash algorithm 0x00008004
  .ver 1:0:3300:0
}
.module test.DLL
// MVID: {ADC45F10-A643-49DF-A887-D3722AC88329}
.imagebase 0x00400000
.subsystem 0x00000003
.file alignment 512
.corflags 0x00000001
// Image base: 0x030a0000
-.-------------------------------------------------

mike

=====
James Michael DuPont
http://introspector.sourceforge.net/

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Reply via email to