dwmkerr / consolecontrol

ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.
MIT License
723 stars 169 forks source link

"Could not load file or assembly 'ConsoleControlAPI, Version=1.2.0.0" in WinForms App. #35

Closed stianlarsen closed 5 years ago

stianlarsen commented 5 years ago

I get this error message, both trying to add to form using the designer and while creating and adding the control using code.

"Could not load file or assembly 'ConsoleControlAPI, Version=1.2.0.0, Culture=neutral, PublicKeyToken=7c86b8a36b9c33e2' or one of its dependencies. The system cannot find the file specified."

ConsoleControl.dll and .xml sits right beside the .exe in the /bin/debug folder.

Loading it dynamically and doing a assembly.GetTypes() works. Doing Activator.CreateInstance on the type fails with the same exception however.

jobrittain commented 5 years ago

I've got the same problem with a WPF application.

dwmkerr commented 5 years ago

Hmm strange, did you install with Nuget?

ghost commented 5 years ago

I'm having the same issue as well. I have the nuget downloaded but its still gives the same error.

jobrittain commented 5 years ago

Hmm strange, did you install with Nuget?

Yes, I installed the NuGet package in a project targeting .NET 4.7.1.

aboodh95 commented 5 years ago

any update about this issue, I just installed it using NuGet and I'm getting this error in case I add it in run time image

and in case I drag it from the toolbox I will get image

aboodh95 commented 5 years ago

i downgrade it from 1.2 to 1.1 and it's working

iainross commented 5 years ago

Likewise, I installed 1.2 from nuget and the control couldn't be created because it couldn't find ConsoleControlAPI. Neither 1.1.0 nor the separate package for 1.0.3 show the problem.

(although 1.1 is still showing #25 - I built the latest code myself and it is working in WPF)

jorisvergeer commented 5 years ago

It's just that the ConsoleControlAPI is no packed in the 1.2.0 ConsoleControl nuget package.

dwmkerr commented 5 years ago

Got it - fixing now. Thanks for the heads up friends!

dwmkerr commented 5 years ago

Should be fixed with release 1.2.1, but let me know if you come across any other issues!