Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
OstroSoft POP3 Component
 OstroSoft Forums : OstroSoft POP3 Component
Subject Topic: OSPOP3_Plus with Classic ASP Not Working. Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
davideC
Newbie
Newbie


Joined: 11 July 2010
Online Status: Offline
Posts: 3
Posted: 12 July 2010 at 11:25am | IP Logged Quote davideC

Hi,

I'm using this code with asp (no .net) to access a gmail Mailbox.

<%
Dim oSession

Set oSession = Server.CreateObject("OSPOP3_Plus.Session")
oSession.UseSSL  = True
oSession.OpenPOP3_5 "pop.gmail.com", 995, "myusername@gmail.com, "mypwd"

%>

but I get this error:

OSPOP3_Plus error '80004003'

Object reference not set to an instance of an object.

/Default.asp, line 5


Probably if the ID specified for the anonymous user in IIS doesn't match the ID of the user the com+ client was exported to impersonate, it will show that error.  By setting the id's the same, classic asp will have access rights to creating the com+ object

Davide




Edited by davideC on 12 July 2010 at 12:03pm
Back to Top View davideC's Profile Search for other posts by davideC
 
igor
Admin Group
Admin Group


Joined: 20 July 2005
Location: United States
Online Status: Offline
Posts: 252
Posted: 12 July 2010 at 5:16pm | IP Logged Quote igor

Error '80004003' is pretty generic, meaning it can be anything. Try the following steps:
1) make sure OSPOP3_Plus is properly installed
2) create a package under COM+ services, import OSPOP3_Plus.tlb there and set it to run under user with sufficient rights (no, it does not have to match IIS Anonymous user): create an instance of the object, connect to network/Internet, access to file system (if you are planning to save messages or attachments)
3) in case you have firewall or other packet-blocking software (anti-virus, anti-spyware, etc.) make sure OSPOP3_Plus is granted access to network/Internet and POP3 ports specifically (usually 110 and 995 for secure POP)



Edited by igor on 13 July 2010 at 6:21pm
Back to Top View igor's Profile Search for other posts by igor Visit igor's Homepage
 
davideC
Newbie
Newbie


Joined: 11 July 2010
Online Status: Offline
Posts: 3
Posted: 13 July 2010 at 7:26am | IP Logged Quote davideC

Yeah!
Step 2 Works!

Thanks!

Davide
Back to Top View davideC's Profile Search for other posts by davideC
 
igor
Admin Group
Admin Group


Joined: 20 July 2005
Location: United States
Online Status: Offline
Posts: 252
Posted: 13 July 2010 at 6:22pm | IP Logged Quote igor

No problem. Glad it helped

Regards,
Igor

Back to Top View igor's Profile Search for other posts by igor Visit igor's Homepage
 
maurisor
Newbie
Newbie
Avatar

Joined: 27 July 2010
Location: Italy
Online Status: Offline
Posts: 1
Posted: 27 July 2010 at 12:54pm | IP Logged Quote maurisor

Sorry ... I have the same problem, I tried step 2 but without results.
Can you explain step 2?
I probably did not understand.
Thanks
Back to Top View maurisor's Profile Search for other posts by maurisor Visit maurisor's Homepage
 

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
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

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