West Wind Internet and Client Tools
Error Unable to Load wwDotNetBrdige message when using ww Client Tools
Gravatar is a globally recognized avatar based on your email address. Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Dmitry Litvak
  All
  Jun 23, 2018 @ 03:58pm

Hi,

When using wwSmtp.prg class to email, the customer gets the following message:

Unable to load wwDotNetBridge: Unable to load Clr Instance: 0x80131515

What could be causing this error? Please.

Dmitry Litvak

Gravatar is a globally recognized avatar based on your email address. re: Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Dmitry Litvak
  Tore Bleken
  Jun 23, 2018 @ 04:26pm

Thank you for the link.

What I found, so far, is that the customer server probably does not have the correct version of .NET installed. And the wwSmpt.prg has a property loSmtp.nMailMode. The default is 0 (for .NET). And the sample prg says to change it to 2 for using wwIpStuff. I changed (for this particular customer) the setting to 2 and I was able to email (when remotely connecting to their server). I asked the customer to try emailing, in order to confirm that this is indeed the cause of the problem. I have not heard from them yet.

Gravatar is a globally recognized avatar based on your email address. re: Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Rick Strahl
  Dmitry Litvak
  Jun 23, 2018 @ 07:36pm

You can use wwSmtp.nMailMode = 2 to use the non-.NET version, but it that doesn't support TLS connections so more and more that's obsolete.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Dmitry Litvak
  Rick Strahl
  Jun 24, 2018 @ 01:06am

Thank you.

If you could clarify, please. If I use the wwSmtp.nMailMode = 2, the legacy wwIpStuff.vcx is not necessary, right?

And one more thing. Prior to switching to the ww Client Tools (when using wwIpStuff.vcx) the recipient email string could contain several emails separated by semi-colon (;). Now, with the wwSmtp.nMainMode = 2, the error message says "Error 501 5.1.3 Bad recipient address syntax." Does it mean that with the Client Tools, I cannot use more than one email in the recipient and separate them with a semi-colon?

Gravatar is a globally recognized avatar based on your email address. re: Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Rick Strahl
  Dmitry Litvak
  Jun 24, 2018 @ 01:20am

If I use the wwSmtp.nMailMode = 2, the legacy wwIpStuff.vcx is not necessary, right?

No the old class is no longer used or even available in newer versions. all the classes have migrated to PRG files and in the case of wwSmtp there's a new class. You do need wwipstuff.dll though. Note though - there's no support for .lUseSsl and TLS connections.

Does it mean that with the Client Tools, I cannot use more than one email in the recipient and separate them with a semi-colon?

No... multiple recipients are supported. The legacy version uses commas only, the .NET version works with commas and semi-colons. Also make sure all of the email addresses in the list are valid.

FWIW, generally it's not a good idea to send mutliple recipients beyond a few. You'll almost certainly get blocked by Spam filters if the list is long.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Dmitry Litvak
  Rick Strahl
  Jun 24, 2018 @ 01:46am

No... multiple recipients are supported. The legacy version uses commas only, the .NET version works >> with commas and semi-colons. Also make sure all of the email addresses in the list are valid.

Please clarify. When you are saying "legacy" do you mean the Client Tools class where wwSmtp.nMainMode = 2 or the email class in wwipstuff.vcx? Because in "old" or "legacy" wwipstuff.vcx separating with semi-colons worked.

FWIW, generally it's not a good idea to send mutliple recipients beyond a few. You'll almost >> certainly get blocked by Spam filters if the list is long.

Yes, I know this. In this case the customer simply enters two or three email addresses (no more).

Thank you for your prompt reply.

Gravatar is a globally recognized avatar based on your email address. re: Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Dmitry Litvak
  Rick Strahl
  Jun 24, 2018 @ 01:59am

One more question, please.

I am trying to catch the error "Unable to load wwDotNetBridge: Unable to load Clr Instance: 0x80131515" with Try Catch.

But when I enclose the lSuccess = loSmtp.SendMail() with Try/Catch, the above error still appears as the ugly VFP error. How and where could I have the Try/Catch so that the error can be handled better?

TIA.

Gravatar is a globally recognized avatar based on your email address. re: Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Rick Strahl
  Dmitry Litvak
  Jun 24, 2018 @ 06:35am

Not sure I understand. Having a try/catch will most definitely capture the error unless there's something wrong with the try/catch block. Step through the code and make sure that the code you are expecting is actually running.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Dmitry Litvak
  Rick Strahl
  Jun 24, 2018 @ 05:07pm

The Try Catch code is very simple (as you can see below). But the VFP error happens still. I wonder why.

TRY 	
	lSuccess = loSmtp.SendMail()  
CATCH TO oError
	MESSAGEBOX("Failed email to server" + CHR(13) + CHR(13) + ;
	"Error message: " + oError.message,48,"Problem Alert!",30000)
	lSuccess = .F.
ENDTRY 
Gravatar is a globally recognized avatar based on your email address. re: Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Dmitry Litvak
  Rick Strahl
  Jun 24, 2018 @ 08:19pm

As you suggested I want to "step through" in debugger. But how do I "force" this error on my system where I do have .NET installed? So, on my PC both the wwSmtp.nMailMode = 2 AND wwSmtp.nMailMode = 0 work without an error. But on customer server, when setting wwSmtp.nMailMode = 0, I get VFP error (even though I enclosed SendMail() in Try Catch). Is there way to duplicate it on my PC (without uninstalling .NET)?

Gravatar is a globally recognized avatar based on your email address. re: Error Unable to Load wwDotNetBrdige message when using ww Client Tools
  Rick Strahl
  Dmitry Litvak
  Jun 25, 2018 @ 09:19pm

Well no there's no good way to do this.

But look here: Cannot load CLR Instance Errors

+++ Rick ---

© 1996-2024