• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Issue in C# PresentationFramework.DLL while Sandbox Enable

New Here ,
Aug 06, 2020 Aug 06, 2020

Copy link to clipboard

Copied

I have C# DLL which load PresentationFramework.dll .I call it from Acrobat SDK -> Basic Plugin in Acrobat Pro cd.
It works normally without any issue, but when acrobat run on sandbox enable it throws this exception
"Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL)"Annotation 2020-08-06 121823.jpg

This is the code to call the DLL from the basic plugin "BasicPlugin.api"

_declspec(dllexport) void TestLoadDLL();
ACCB1 void ACCB2 MyPluginCommand(void *clientData)
{
	TestLoadDLL();
}

This is the code in the C#  "ManagedCSharp.dll"

 String executablePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            try
            {
                Assembly.LoadFile(System.IO.Path.Combine(executablePath, "PresentationFramework.dll"));  
            }
            catch (Exception ex)
            {
                string error = "PresentationFramework.dll";
                do {
                    error += Environment.NewLine + ex.Message;
                    error += Environment.NewLine + ex.StackTrace;
                    ex = ex.InnerException;
                } while (ex != null);
                MessageBox.Show(error);
            }

 

TOPICS
Acrobat SDK and JavaScript

Views

44

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation