Menu

#312 Internal compiler error - when creating .net dll

v1.0 (example)
closed-works-for-me
nobody
None
3
2016-09-21
2016-09-20
No

Hello, I'm trying to create a single .net library (assembly) from 3 jar files and got an error stating that I should post a bug to this forum. The command I'm running to create the dll is...
@setlocal enableextensions
@cd /d "%~dp0"
ikvmc -keyfile:PHDOC.snk -target:library HomeHealthJava.jar VUT_API.jar HH_PPS_V_API.jar

Any help would be greatly appreciated. I've attached the jar files to this ticket.

The error that I get is...

C:\ikvm-8.1.5717.0 - V425\bin>rem to create the .net DLL...

C:\ikvm-8.1.5717.0 - V425\bin>ikvmc -keyfile:PHDOC.snk -target:library HomeHealt
hJava.jar VUT_API.jar HH_PPS_V_API.jar
IKVM.NET Compiler version 8.1.5717.0
Copyright (C) 2002-2015 Jeroen Frijters
http://www.ikvm.net/

note IKVMC0002: Output file is "HomeHealthJava.dll"

*** INTERNAL COMPILER ERROR ***

PLEASE FILE A BUG REPORT FOR IKVM.NET WHEN YOU SEE THIS MESSAGE

ikvmc, Version=8.1.5717.0, Culture=neutral, PublicKeyToken=13235d27fcbfff58
C:\Windows\Microsoft.NET\Framework\v2.0.50727\
2.0.50727.5485 32-bit

System.ApplicationException: Invalid XML in file 'C:\Windows\Microsoft.NET\Frame
work\v2.0.50727\config\machine.config' near element ''. --->
System.Runtim
e.InteropServices.COMException (0xC00CE56D): Exception from HRESULT: 0xC00CE56D
at System.ConfigServer.RunParser(IConfigHandler factory, String fileName)
at System.ConfigTreeParser.Parse(String fileName, String configPath, Boolean
skipSecurityStuff)
--- End of inner exception stack trace ---
at System.ConfigTreeParser.Parse(String fileName, String configPath, Boolean
skipSecurityStuff)
at System.ConfigTreeParser.Parse(String fileName, String configPath)
at System.Security.Cryptography.CryptoConfig.InitializeConfigInfo()
at System.Security.Cryptography.CryptoConfig.MapNameToOID(String name, OidGro
up group)
at System.Security.Cryptography.RSAPKCS1SignatureFormatter.SetHashAlgorithm(S
tring strName)
at System.Security.Cryptography.AsymmetricSignatureFormatter.CreateSignature(
HashAlgorithm hash)
at IKVM.Reflection.Writer.ModuleWriter.StrongName(Stream stream, StrongNameKe
yPair keyPair, UInt32 headerLength, UInt32 textSectionFileOffset, UInt32 strongN
ameSignatureFileOffset, UInt32 strongNameSignatureLength)
at IKVM.Reflection.Writer.ModuleWriter.WriteModuleImpl(StrongNameKeyPair keyP
air, Byte[] publicKey, ModuleBuilder moduleBuilder, PEFileKinds fileKind, Portab
leExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine, Res
ourceSection resources, Int32 entryPointToken, Stream stream)
at IKVM.Reflection.Writer.ModuleWriter.WriteModule(StrongNameKeyPair keyPair,
Byte[] publicKey, ModuleBuilder moduleBuilder, PEFileKinds fileKind, PortableEx
ecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine, Resourc
eSection resources, Int32 entryPointToken, Stream stream)
at IKVM.Reflection.Emit.AssemblyBuilder.SaveImpl(String assemblyFileName, Str
eam streamOrNull, PortableExecutableKinds portableExecutableKind, ImageFileMachi
ne imageFileMachine)
at IKVM.Reflection.Emit.AssemblyBuilder.Save(String assemblyFileName, Portabl
eExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
at IKVM.Internal.CompilerClassLoader.Save()
at IKVM.Internal.CompilerClassLoader.Compile(String runtimeAssembly, List`1 o
ptionsList)
at IkvmcCompiler.Compile(String[] args)
at IkvmcCompiler.Main(String[] args)

C:\ikvm-8.1.5717.0 - V425\bin>Pause
Press any key to continue . . .

1 Attachments

Discussion

  • Jeroen Frijters

    Jeroen Frijters - 2016-09-21

    Your .NET 2.0 installation appears to be corrupt.

     
  • Jeroen Frijters

    Jeroen Frijters - 2016-09-21
    • status: open --> closed-works-for-me
     

Log in to post a comment.

MongoDB Logo MongoDB