dineshkummarc / sendgrid-csharp

i liked the project to such an extent i also copied their issues to be solved. so as i can work on them.
MIT License
0 stars 0 forks source link

SendGridMail.Transport.Web.GetInstance - Method Not Found #2

Open dineshkummarc opened 11 years ago

dineshkummarc commented 11 years ago

Getting the following exception on runtime, from the function which is trying the Web.GetInstance call.

Unhandled Exception: System.MissingMethodException: Method not found: 'SendGridM ail.Transport.Web SendGridMail.Transport.Web.GetInstance(System.Net.NetworkCrede ntial, Boolean)'. at [STACKTRACE]

I think this happened when I changed from using the downloaded DLL with a normal reference, to using the latest from Nuget (1.1.1), but competely sure on that.

It's also still working when I use SMTP.GetInstance.

I think it may have to do with Nuget package manager saying it's on version 1.1.1, but the reference it installed has a Version property of 1.1.0.0.

dineshkummarc commented 11 years ago

comment 1 - Cool, thanks for the bug report. I'm assigning this to ..... so he can have a look when he gets the chance. comment 2 - thanks again for the report. I believe you are right that it's due to the incorrect version number in AssemblyInfo as the method signature for GetInstance changed slightly in 1.1.1 to make https optional. I'll work on a couple small fixes and then deploy an updated nuget package, hopefully this Friday. Cheers!