My code is working fine on local but when the same code published on server its giving "The request failed. The remote server returned an error: (403) Forbidden."
Can you please help me
It's not clear where this error message comes from (from your server or the Exchange server). However, it looks like your server so I recommend checking the permissions in the web server configuration.