MediaBrowser / SocketHttpListener

A standalone HttpListener with support for SSL, WebSockets and Mono
MIT License
42 stars 14 forks source link

Could not load type 'NullLogger' #11

Closed slothbag closed 7 years ago

slothbag commented 8 years ago

I just tried switching from Mono.HttpListener to this library, I had to update my Mono installation to the latest version (not a big issue).

The app now crashes with error

Could not load type 'NullLogger' from assembly 'Patterns.Logging.dll'.

I'm on latest Ubuntu Linux. I added the SocketHttpListener via Nuget

LukePulverenti commented 8 years ago

That dependency is listed in the nuget package, so you probably just need to restore it from nuget.

slothbag commented 8 years ago

I can see the Pattern.Logging dependency was downloaded into the packages folder, and it is also in the build output folder along with the exe.

LukePulverenti commented 8 years ago

I built it all targeting .net 4.5 so if you're trying to target anything lower then that could be an issue. That's all i can think of.

slothbag commented 8 years ago

Yeah i'm on 4.5. When I get a chance i'll add the source code and try compile in manually. Thanks for taking a look.

WJ-GitHub commented 8 years ago

Had same problem that could be solved by removing mono-complete by apt-get and reinstalling using their webpage: http://www.mono-project.com/docs/getting-started/install/linux/