Windows Develop Bookmark and Share   
 index > Windows Forms Designer > 'Unable to Load DLL' that a control depends upon at design time.
 

'Unable to Load DLL' that a control depends upon at design time.

Hey,

I've had this problem a few times recently. I'm working with Visual C# 2005 Express Edition.

I have a Windows Form Control that depends upon a legacy DLL file. At runtime the behaviour is fine as the DLL is in the output directory, but the Windows Forms Designer struggles with this control.

Unable to load DLL 'scilexer.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

The odd thing is that it managed to create the control fine in the first place, but subsequent attempts to edit it fail. The dll file it depends on has been added to the project, is in the main project directory and is in the bin\Debug directory. Do I need to put it somewhere else for the designer to find it?

 

Regards,

Chris

Christopher Stott  Tuesday, December 20, 2005 5:57 PM
Hello,

i have the same problem, and the same error message, can you help me to solve it.


Bests regards

H
hbaradi  Monday, December 11, 2006 1:11 PM

Hey,

I've had this problem a few times recently. I'm working with Visual C# 2005 Express Edition.

I have a Windows Form Control that depends upon a legacy DLL file. At runtime the behaviour is fine as the DLL is in the output directory, but the Windows Forms Designer struggles with this control.

Unable to load DLL 'scilexer.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

The odd thing is that it managed to create the control fine in the first place, but subsequent attempts to edit it fail. The dll file it depends on has been added to the project, is in the main project directory andis in the bin\Debug directory. Do I need to put it somewhere else for the designer to find it?

Regards,

Chris


I know this thread is now very old, but as I have experienced the same error I thought I'd mention how I sorted it. I took the DLLs thatI hadreferenced (along with their dependency DLLs) and placed copies into c:\windows\system32. There may be more elegant solutions, ones that don't involve keeping the DLLs in the system folder in step with the ones referenced into the project, but it did solve it instantly.
KCartlidge  Friday, May 22, 2009 11:12 AM

You can use google to search for other answers

Custom Search

More Threads

• Design problem...
• Looking for P/Invoke definitions?
• How to Print a form in C#?
• Custom Shaped Windows Forms
• MDI parent with image at the right bottom
• Windows forms panel and tab orders becoming messy
• Read the data from Datagrid view
• Build Dynamic Menu Strip
• Creating Toolbars similiar to MS Office
• Using ToolStripControlHost with DateTimePicker