Well, code sample for publish is:
I added a screenshot on purpose so that you will need to retype it and see what IntelliSense does and what overload methods do. :) What is more important is that you know what each of the parameter means.
So to publish an item you need following:
you need an array of items you want to publish. Here you need to provide an ...
This is because most probably you reference Microsoft.OData.Client library in some event system, but you have not merged it with current DLL. Exception is self-explanatory. Some piece of your code cannot reference Microsoft.OData.Client library. By MSDN, it's not part of .NET framework, so you need to deploy it reference it additionally (either by merging it ...
Based on your comment that "the network team did some changes on server where we have deployer setup" the most likely issues will be:
Deployer not running (is it a service or an HTTP upload web application?
Firewall blocking the Deployer port from other servers (if the Deployer server is a Windows Server most likely it is the Windows Firewall blocking it)
Please check following:
restart transport service
connectivity between CM and broker DB
connectivity between CM and Deployer server [if CM and Deployer servers are different]
Check incoming folder in deployer server. is it receiving any package. in current situation it should not be. but it's worth to check.
revisit all ...