hmemcpy / SnagitImgur

A plugin ("accessory") for Snagit that allows sending the currently captured image to imgur.com
MIT License
51 stars 11 forks source link

An unandled exception occured: System.Net.WebException #10

Closed samirunni closed 10 years ago

samirunni commented 11 years ago

I installed the plugin on a Windows 7 Ultimate x64 machine with SnagIT 11.1. When I clicked the button to upload to Imgur, I got the following error:


---------------------------
An unandled exception occured:
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 108.162.206.103:80

   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

   --- End of inner exception stack trace ---

Server stack trace: 

   at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)

   at System.Net.WebClient.UploadValues(Uri address, NameValueCollection data)

   at SnagitImgur.Core.ImgurService.UploadImage(String fileName) in d:\code\SnagitImgur\src\SnagitImgur\Core\ImgurService.cs:line 37

   at SnagitImgur.SnagitFacade.SaveImage() in d:\code\SnagitImgur\src\SnagitImgur\SnagitFacade.cs:line 33

   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]: 

   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)

   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)

   at System.Action.EndInvoke(IAsyncResult result)

   at SnagitImgur.Plugin.Output() in d:\code\SnagitImgur\src\SnagitImgur\Plugin.cs:line 25
---------------------------
OK   
---------------------------```

Screenshot version: http://i.imgur.com/g46JV.png
hmemcpy commented 10 years ago

Hi!

I'm sorry it took a long while, but I was finally able to publish the updated version with an installer! Please download it here: https://github.com/hmemcpy/SnagitImgur/releases/download/1.0/SnagitImgur_1.0.0.msi

You should close Snagit (and Snagit Editor), install this, and start Snagit again. You should have Imgur in the Share tab!

Please let me know if you have any issues with it!