views:

147

answers:

3

Hi All,

Okay, Only a couple weeks ago I had an old 32bit computer, but had to buy a new computer, which happens to be 64bit.

I've rewritten the method that sends e-mails asynchonously and it just does not work. And does NOT throw any exceptions either.

What gives?

I have also tried the Async method code found iin MSDN, and the BlackWasp tutorial code, and MANY others. They're all the same!

The only difference here seems to be the fact that I'm now on a 64bit computer.

How can I get around this? Google/MSDN has been of zero help.

Thanks

A: 

Probably, it is something else about your new computer. SendAsync of course supports 64-it OSes. A likely cause is an included firewall. Try doing it sync on the new computer, and I think you will get the same result.

Matthew Flaschen
I can send synchronous mail. And I only have one Firewall installed. Which is the one that's built into Windows. I've even turned it off with no change.
lucifer
A: 

You can force a .NET app to run in 32 bit mode on a 64 bit machine (withoug recompiling or running a virtual machine) by running the CorFlags.exe tool. See this blog about it. If it runs correctly when you run it in 32 bit mode, then you know for sure that it's a 64 bit issue.

DaMartyr
Hmmm... It still does not work :(
lucifer
+4  A: 

Guarantee you're chasing a red herring.

The only difference here seems to be the fact that I'm now on a 64bit computer.

Yeah that and the fact that everything else is different. Assuming you didn't just clone the drive (in which case you'd still be running a 32 bit OS), you've reinstalled the OS, all your apps, your firewall settings have been reset, you may have a different IP address, you may have a different Windows Logon name, etc.

It might be worth just deleting the question and re-posting it as a general "Why isn't my SendAsync code working." The title of this question will just lead people to assume you have isolated it to a difference in bitness.

Josh Einstein
Thank you! I am going to change the question.
lucifer