Cannot load such file -- win32/eventlog

I am trying to upload cookbook to chef server. My cookbook resides in /d/Chefwork/workspace on my workstation

XXX@XXX MINGW64 /d/Chefwork/workspace
$ ls

My knife.rb looks like:

current_dir = File.dirname(__FILE__)
log_level                :info
log_location             STDOUT
node_name                "test"
client_key               "#{current_dir}/test.pem"
chef_server_url          ""
cookbook_path            ["#{current_dir}/../"]

but when I try to upload the cookbook I keep getting the following

$ knife upload cookbook autoreg_report
ERROR: LoadError: cannot load such file -- win32/eventlog

Any help how to get rid of this error?

Other commands like knife node list , knife client list works fine.