-
Shashank S
- PowerBuilder
- Monday, 12 January 2026 10:06 AM UTC
Hi everyone,
I’m currently migrating an application from a WinForm target type to a Classic target type. The WinForm project uses a few .NET DLLs.
Earlier, I reached out to this community for guidance on how to handle .NET DLL usage during this migration. Based on the suggestions, I used Appeon and its .NET DLL Importer tool in the Appeon 2022 R3 IDE. The approach worked for most of the DLLs.
However, I’m facing an issue with one specific .NET DLL. When I try to import it using the .NET DLL Importer, the process fails with the following error:
“Could not load file or assembly. An operation is not legal in the current state.”
This DLL is currently used successfully in the Sybase WinForm target type (Sybase powerbuilder IDE V12.5.2), but it fails during import into Appeon. I’ve attached a screenshot of the error message for reference.
I’m trying to understand:
- What typically causes this error during DLL import in Appeon?
- Are there known limitations or prerequisites for DLLs that can be imported?
- Is there any workaround or alternative approach to use this DLL from a Classic target if direct import is not supported?
Any insight into why this happens or how to proceed would be really helpful.
Thanks in advance.
Error Observed in Appeon Dll importer tool

Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.