question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Both key values: KeyContainer "Mono.Cecil.CustomAttributeArgument" and KeyFile

See original GitHub issue

How to reproduce

… I am trying to write a wrapper around some XML tools. The Wrapper has to be called by a “C” function hence using DLLExport.

I have used the DLLExport bat file to configure and it does not compile. My interface to “C” is (currently) very simple.

Here is my Class

using System;
using System.Net;
using System.Security.Cryptography;
using System.Xml;
using CyberSource.Clients;
using System.Runtime.InteropServices;

namespace CyberSource.FPWrapper
{
    public class FPWrapperSystem
    {
        [DllExport]
        public static void FPRefund()
        {
            XmlDocument request = new XmlDocument();
        }
    }
}

What version and selected configuration ?

VS17 DLLExport 1.6 (downloaded today)

Can you provide detailed log of your build ?

@maguirem_build.log


updated by @3F because of ‘@maguirem_build.log’

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
maguiremcommented, Apr 17, 2018

Thanks also for the Wiki - it is really helpful 😃

Cheers

Mike Maguire New Zealand

On 18 April 2018 at 10:55, Mike Maguire mike.maguire@softime.co.nz wrote:

Hi Denis,

I will watch the YouTube’s.

The DLL and Proc Address are being found. The call into the ProcAddress is giving an exception.

Cheers and thanks

Mike

On 18 April 2018 at 10:52, Denis Kuzmin notifications@github.com wrote:

Issue #48 https://github.com/3F/DllExport/issues/48 did resolve the issue with compiling thanks so much.

Good to hear this. I’m closing this issue like duplicate of #48 https://github.com/3F/DllExport/issues/48.

I am now trying to call the Exported function from a “C” program and it is currently crashing. I am not sure how to step into the function address. I am using a Windows Console app to try and call my FPRefund C# “function”

@maguirem https://github.com/maguirem Please use our Wiki https://github.com/3F/DllExport/wiki. I specially prepared screencasts about all this in details:

Where you can understand including how to debug in mixed environments (select first both/mixed type of debugger), or understanding where each function may be found after loading module into memory by its address, and lot of other.

Any suggestions?

Well, for example, the problem may be because of some required dll that was not found etc. Is this when calling ProcAdd(); ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/3F/DllExport/issues/71#issuecomment-382182072, or mute the thread https://github.com/notifications/unsubscribe-auth/AjaGuTgUWH1ubRPGZ0U4sGbxxn6P-mYxks5tpnI9gaJpZM4TXkbf .

– Mike Maguire Softime Publishing Co (NZ) Ltd Email: mike.maguire@softime.co.nz ph (NZ) +64 21 494 099

– Mike Maguire Softime Publishing Co (NZ) Ltd Email: mike.maguire@softime.co.nz ph (NZ) +64 21 494 099

0reactions
maguiremcommented, Apr 17, 2018

Hi Denis,

I will watch the YouTube’s.

The DLL and Proc Address are being found. The call into the ProcAddress is giving an exception.

Cheers and thanks

Mike

On 18 April 2018 at 10:52, Denis Kuzmin notifications@github.com wrote:

Issue #48 https://github.com/3F/DllExport/issues/48 did resolve the issue with compiling thanks so much.

Good to hear this. I’m closing this issue like duplicate of #48 https://github.com/3F/DllExport/issues/48.

I am now trying to call the Exported function from a “C” program and it is currently crashing. I am not sure how to step into the function address. I am using a Windows Console app to try and call my FPRefund C# “function”

@maguirem https://github.com/maguirem Please use our Wiki https://github.com/3F/DllExport/wiki. I specially prepared screencasts about all this in details:

Where you can understand including how to debug in mixed environments (select first both/mixed type of debugger), or understanding where each function may be found after loading module into memory by its address, and lot of other.

Any suggestions?

Well, for example, the problem may be because of some required dll that was not found etc. Is this when calling ProcAdd(); ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/3F/DllExport/issues/71#issuecomment-382182072, or mute the thread https://github.com/notifications/unsubscribe-auth/AjaGuTgUWH1ubRPGZ0U4sGbxxn6P-mYxks5tpnI9gaJpZM4TXkbf .

– Mike Maguire Softime Publishing Co (NZ) Ltd Email: mike.maguire@softime.co.nz ph (NZ) +64 21 494 099

Read more comments on GitHub >

github_iconTop Results From Across the Web

Know the Visual Studio key container before the first build
Is there any way to tell in the source code a fixed container to use so that it does not change each time...
Read more >
Viewing online file analysis results for 'Obfuscar.Console.exe'
Submit malware for free analysis with Falcon Sandbox and Hybrid Analysis technology. Hybrid Analysis develops and licenses analysis tools to fight malware.
Read more >
KEYFILE (Specify Key or Key Pair to Sign an Assembly)
In case both /KEYFILE and /KEYCONTAINER are specified (either by command-line option or by custom attribute), the linker will first try the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found