I'm running it in file based mode - just like I have for many years.Recently our parent company went belly up, so I 'renting' a virtual private server - Windows 2008r2 and am in complete control of it. there is no AV right now. I don't think firewall settings would be getting in the way here. When I very first emailed you I was using google's smtp service, but since just setup microsoft smtp so I would have to deal with googles limitations.
I wish I had other messages.
If running in nmailmode=0, the program breaks and gives the 'unable to load wwdotnetbridge: unable to load clr isntance'
If running in nmailmode=2, the code just returns false. I'll work on returning an smtp error message to the web page.
The desktop app with the same code (running on a local drive) working perfectly is what's telling me that av/firewall/etc shouldn't be the culprits here.
Anyway, I'll keep searching. Thanks.
What's the error message?
I'm guessing it's a firewall or anti-virus or something else blocking the application from sending. The error message should have more information. If nMailMode = 2 you're not using .NET in any way. If it fails in both modes then likely the problem is some sort of firewall/av failure.
How are you running inside of Web Connection? File based? Com Based? If COM based you can try giving permissions to the COM server using the same account that you're running when you're logged on.
+++ Rick ---
I originally sent you something thinking the nMailMode=0 wasn't working (due to the 'unable to load wwdotnetbridge...' line). However, when I try it with nMailMode=2, the sendmail just comes back as false. I dont have the runtime on that machine to step through it. I have the 'exact' code running in a desktop app on that same machine and it works just fine.
Otherwise, everything else about the web app works great. I'm sure it's a config issue in IIS somewhere but feel like I've depleted everything I can think of.
Sean
System.
Loading it locally.
It's the same code exactly. I've trying nMailMode 2 and it doesn't go either. It must have something to do with IIS. I'll keep looking.
thanks.
What account does the Web Connection server run under? Are you loading the component from network location?
Is the code exactly the same? ie. are you use the same nMailMode setting for both - 0 requires .NET and if so is .NET 2.0 (or 4.0) on the machine.
+++ Rick ---
I've had our web app running on a server 2003 for a long time, and my local development machine (windows 7). I recently moved the web app on a server 2008 r2 machine and got it fully setup. Everything fully works except when it needs to email. I get a popup saying:
'unable to load wwdotnetbridge: unable to load clr isntance'
The funny thing is I have a desktop app on the same server 2008 machine running the same code and it works (send the email.)
I'm at a loss.
Here's sample code (that works on previous server/local machine):
SET PROCEDURE TO wwdotnetbridge addi
SET procedure TO wwsmtp additive
oSMTP=CREATEOBJECT("wwsmtp")
WITH oSMTP
.cMailServer="smtp.gmail.com"
.cSenderEmail="someone@gmail.com"
.cSenderName="Automated Process"
.cContentType = "text/html"
.nMailMode = 0
.cUserName = "username@gmail.com"
.cPassword = "password"
.lUseSSL = .t.
.nServerPort = 587
.nTimeOut = 30
.cRecipient = "someone@somewher.com"
.cSubject= "test subject"
.cMessage = "test message"
IF ! .SendMail()
this.ErrorDisplay.ShowMessage("didn't go")
ELSE
this.ErrorDisplay.ShowMessage("sent")
ENDIF
ENDWITH
![]()