ASP.Net MVC: Run a program to access Google Drive folder in c# on a Proxy Network

To run a MVC or ASP.Net program on a Proxy Server to access Google Drive details, you have to only add some lines of code. Without adding these number of codes, you won’t be able to run the application.

So here is the way to run you application on a proxy Network.

Follow these steps to run the application:-

1)  Add this package in your program:-    using System.Net;

2)  Then copy these codes in anywhere of your program.

WebProxy proxyObject = new WebProxy(“http://webproxy:80/“);
WebRequest.DefaultWebProxy = null;

3)  Then run the application…

4)  Enjoy…………


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s