Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Create Object Error? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Shannon
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 26 October 2004 at 11:32am | IP Logged Quote Shannon

I am trying to use the MailBee SMTP object, but get the following error.

Active Server Pages error 'ASP 0241'

CreateObject Exception

<MY ASP PAGE>

The CreateObject of '(null)' caused exception C0000005.

Server object error 'ASP 0177 : c0000005'

Server.CreateObject Failed

<MY ASP PAGE>, line 185

c0000005

I registered MailBee.dll on my webserver. All I am suppose to do is register it via RegSrv32.exe correct.

Thanks for your help.

Sincerely,
Shannon
Back to Top View Shannon's Profile Search for other posts by Shannon
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 October 2004 at 12:07pm | IP Logged Quote Alex

Does the problem disappear after reboot of the server? IIS has known issues with not freeding objects when they are not closed explicitly.

E.g. if you have this page:

<%
Set obj = Server.CreateObject("someobj")
...
%>

or this:

<%
Set obj = Server.CreateObject("someobj")
...
Response.Redirect "another_page.asp"
%>

it may start to fail at unexpected time. Often, the problem appears when ASP app uses Reponse.Redirect, Server.Transfer, etc.

To preserve this, always manually free all objects created on the page before leaving the page:

<%
Set obj = Server.CreateObject("someobj")
...
Set obj = Nothing
%>

or:

<%
Set obj = Server.CreateObject("someobj")
...
Set obj = Nothing
Response.Redirect "another_page.asp"
%>

If the problem still here after server reboot, this is quite another matter. Do you use MailBee's ValidateEmailAddress function with your code?

If so, please make sure to explicitly specify DNS server name (because some Windows builds have problems with autodetection of DNS server:

Msg.ValidateEmailAddress("to@domain.com", 1, "192.168.0.100")

192.168.0.100 is address of DNS server (as from 'ipconfig /all' output in the command line).

Please let us know the outcome.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
SCase
Newbie
Newbie


Joined: 26 October 2004
Location: United States
Online Status: Offline
Posts: 3
Posted: 26 October 2004 at 1:12pm | IP Logged Quote SCase

Alex,

Thanks for reply. I uninstalled MailBee, rebooted the server, reinstalled MailBee, and then rebooted the server.

I then re-registered the DLL using RegSvr32.

Now I get the following error:
----------------
Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'LicenseKey'
----------------


Thanks,
Shannon
Back to Top View SCase's Profile Search for other posts by SCase
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 October 2004 at 1:25pm | IP Logged Quote Alex

Which code produces this error?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
SCase
Newbie
Newbie


Joined: 26 October 2004
Location: United States
Online Status: Offline
Posts: 3
Posted: 26 October 2004 at 1:33pm | IP Logged Quote SCase

Alex wrote:
Which code produces this error?

Regards,
Alex


Code:

dim oMailer

' Create SMTP object
Set oMailer = Server.CreateObject("MailBee.SMTP")

' Set the license key
oMailer.LicenseKey = "MYTEMPLICENSEKEY"



MYTEMPLICENSEKEY = the temporary license that was emailed to me when I downloaded MailBee SMTP this morning.

Thanks,
Shan
Back to Top View SCase's Profile Search for other posts by SCase
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 October 2004 at 2:13pm | IP Logged Quote Alex

M-m-m, probably, something is still registered incorrectly. Maybe, you tried to unistall MailBee BEFORE rebooting. This can fail because rebooting (or 'iisreset' in command line) is required to make proper unistall possible. If unistall made before rebooting, it won't proceed properly because IIS caches all the components used, and they won't be deleted.

So, let's try this:
- 'iisreset' in command line
- uninstall MailBee with installer (if you registered manually, using regsvr32, unregister it with 'regsvr32 -u' first)
- make sure MailBee.dll disappeared from hard drive (if not, some app still locks it)
- install MailBee again
- try to execute on the server the VBS (not ASP) file with the following contents:

Set Mailer = CreateObject("MailBee.SMTP")
Mailer.LicenseKey = "whatever"

- the previous step will tell us whether it works under Windows, not ASP. If it does not work too, the problem is not related to ASP/IIS

- now try your ASP page. If it doesn't work (but VBS file worked out), probably there is a permission issue.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
SCase
Newbie
Newbie


Joined: 26 October 2004
Location: United States
Online Status: Offline
Posts: 3
Posted: 26 October 2004 at 2:26pm | IP Logged Quote SCase

Alex,

Thank you so much. I just followed your re-install steps and now my script works! :)

Shannon
Back to Top View SCase's Profile Search for other posts by SCase
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide