I have what seems to be a very strange problem with a windows forms application. I am a web developer and I have limited experience of developing windows forms application.
Your library possibly has dependencies on other .NET libraries such as System.Web that you need to reference in your Forms app. That can create this sort of behaviour.