Author |
|
depps Newbie
Joined: 11 March 2008
Online Status: Offline Posts: 8
|
Posted: 11 March 2008 at 6:20am | IP Logged
|
|
|
Just downloaded WebMail Lite Asp.Net and followed the installation instructions.
Once I navigate to my WebMail URL and login, the inbox screen flashes and the login page is redisplayed with an error saying "The previous session was terminated due to a timeout." Sometimes I can do a ctrl-f5 refresh and get to the inbox and other times I cannot.
When I do get to the inbox I can create a new message but when I click "Send" I go back to the login page with the timeout error displayed and the message is not sent.
I can run WebMail Lite without any problems in Visual Studio 2008. I can send, receive, administer...everything that I should be able to do.
It is just when I move it to my server that I have these problems.
I have my own servers and am running Windows Server 2003, IIS6, .Net 1.1, 2.0, 3.0 and 3.5.
I have installed on my development server as well as my production server and get the same results.
Here is a snippet from the log when I tried to connect (edited to remove sensitive information):
[09:00:45.15] [INFO] Assembly version: 3.0.2.79.
[09:00:45.14] [INFO] Will resolve host "XXXXXXX".
[09:00:45.15] [INFO] Host "XXXXXXX" resolved to IP address(es) 000.000.000.000.
[09:00:45.15] [INFO] Will connect to host "XXXXXXX" on port 110.
[09:00:45.17] [INFO] Socket connected to IP address 000.000.000.000 on port 110.
[09:00:45.18] [INFO] Connected to mail service at host "XXXXXXX" on port 110 and ready.
[09:00:45.20] [INFO] Get the list of POP3 capabilities via CAPA command.
[09:00:45.20] [SEND] CAPA\r\n
[09:00:45.20] [RECV] +OK Capability list follows\r\nTOP\r\nUSER\r\nUIDL\r\n.\r\n
[09:00:45.20] [INFO] Will login as "ME@MYDOMAIN".
[09:00:45.21] [INFO] Will try regular USER/PASS authentication.
[09:00:45.21] [SEND] USER ME@MYDOMAIN\r\n
[09:00:45.21] [RECV] +OK\r\n
[09:00:45.21] [SEND] PASS ********\r\n
[09:00:45.21] [RECV] +OK\r\n
[09:00:45.21] [INFO] Logged in as "ME@MYDOMAIN".
[09:00:45.21] [INFO] Download inbox statistics.
[09:00:45.21] [SEND] STAT\r\n
[09:00:45.21] [RECV] +OK 0 0\r\n
[09:00:45.21] [INFO] Download the list of Unique-IDs of all messages in inbox.
[09:00:45.21] [SEND] UIDL\r\n
[09:00:45.21] [RECV] +OK\r\n.\r\n
[09:00:45.23] [SEND] QUIT\r\n
[09:00:45.23] [RECV] +OK Goodbye\r\n
[09:00:45.23] [INFO] Will disconnect from host "XXXXXXX".
[09:00:45.23] [INFO] Disconnected from host "XXXXXXX".
Any help is greatly appreciated.
Thanks,
Dan
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 11 March 2008 at 7:18am | IP Logged
|
|
|
First, please make sure ASP.NET 2.0 is selected in configuration of the IIS-application folder WebMail Lite ASP.NET installed into.
Also, please enable special debug logging. Uncomment the following lines in the web.config file (located in the WebMail Pro web folder):
<!--<add name="MyListener"
type="System.Diagnostics.TextWriterT raceListener"
initializeData="c:\temp\webmail.log" />-->
so, it'll look like:
<add name="MyListener"
type="System.Diagnostics.TextWriterT raceListener"
initializeData="c:\temp\webmail.log" />
Please make sure IIS has permission to write into the specified location.
Best regards,
Andrew
|
Back to Top |
|
|
depps Newbie
Joined: 11 March 2008
Online Status: Offline Posts: 8
|
Posted: 11 March 2008 at 7:24am | IP Logged
|
|
|
ASP.Net 2.0 is selected and IIS has permissions for everything.
Here is the result of the debugging listener:
[3/11/2008 10:20:47 AM][Page_Load] - Session Clear
[3/11/2008 10:21:06 AM][] - >>>>>>>>>>>>>>> > IN >>>>>>>>>>>>>>> >
[3/11/2008 10:21:06 AM][] - <?xml version="1.0" encoding="utf-8"?><webmail><param name="action" value="login"/><param name="request" value=""/><param name="mail_inc_port" value="110"/><param name="mail_out_port" value="25"/><param name="mail_out_auth" value="1"/><param name="email"><![CDATA[ME@MYDOMAIN.COM]]></param><param name="mail_inc_host"><![CDATA[XXXXXXX]]></param><param name="mail_inc_login"><![CDATA[ME@MYDOMAIN]]></param><param name="mail_inc_pass"><![CDATA[MYPASSWORD]]></param><param name="mail_out_host"><![CDATA[XXXXXXX]]></param><param name="advanced_login" value="0"/></webmail>
[3/11/2008 10:21:06 AM][] - >>>>>>>>>>>>>>> > IN >>>>>>>>>>>>>>> >
[3/11/2008 10:21:06 AM][] - <<<<<<<<<<<<<<< << OUT <<<<<<<<<<<<<<<
[3/11/2008 10:21:06 AM][] - <?xml version="1.0" encoding="utf-8"?><webmail><login /></webmail>
[3/11/2008 10:21:06 AM][] - <<<<<<<<<<<<<<< << OUT <<<<<<<<<<<<<<<
[3/11/2008 10:21:07 AM][Page_Load] - Session Clear
|
Back to Top |
|
|
depps Newbie
Joined: 11 March 2008
Online Status: Offline Posts: 8
|
Posted: 11 March 2008 at 7:26am | IP Logged
|
|
|
I forgot to mention also that I have some strange issues with mailadm.aspx.
When I login as mailadm, I have to continously do a ctrl-f5 refresh to go to different menu items and after saving any changes.
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 11 March 2008 at 8:10am | IP Logged
|
|
|
What is set in "Virtual Directory tab / Application settings / Configuration / Options / Session timeout" of WebMail Pro virtual directory?
Are you sure cookies are not disabled in the web browser you use? Have you tried another web browser?
Best regards,
Andrew
|
Back to Top |
|
|
depps Newbie
Joined: 11 March 2008
Online Status: Offline Posts: 8
|
Posted: 11 March 2008 at 8:32am | IP Logged
|
|
|
First, this is WebMail Lite, not Pro.
Cookies are enabled and I have no problems with the same browser (IE7) when running WebMail Lite via VS2008, just from the server.
Session timeout is set to the default, 20 minutes.
I also have scores of other applications running from the same server with no problems. Webmail Lite is the only application having any problems whatsoever.
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 11 March 2008 at 9:00am | IP Logged
|
|
|
Quote:
First, this is WebMail Lite, not Pro. |
|
|
That was my misprint.
Haven't you modified the original WebMail Lite source code (it's important even if you just changed some CSS styles) or integrated WebMail Lite into another system?
Looks like something tries to request default.aspx file simultaneously which destroys current session. This is the only file which destroys sessions in WebMail.
Could you provide us with:
- URL pointing to your WebMail Lite installation;
- a test account on your mail server;
- password to WebMail Admin Console (mailadm).
So, we would be able to reproduce and investigate the issue directly. Use Request Support Form for this purpose.
Best regards,
Andrew
|
Back to Top |
|
|
depps Newbie
Joined: 11 March 2008
Online Status: Offline Posts: 8
|
Posted: 11 March 2008 at 9:39am | IP Logged
|
|
|
I just wanted to make sure we were chasing the correct Lite vs Pro issue.
No mods, no integration...just unzipped and made the requisite web.config changes.
Now it gets interesting...when I created a publicly accessible virtual directory underneath an existing web site, I got some theme errors.
It was trying to use the web.config from the parent site instead of WebMail.
I moved the WebMail virtual directory to another site (this one is a phpBB forum site) so there would be no web.config conflicts and...it works.
I will create a separate web site for WebMail and access it via a link from the original site to see if that solves the problem.
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 12 March 2008 at 2:44am | IP Logged
|
|
|
Please let us know the outcome.
Best regards,
Andrew
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 12 March 2008 at 3:04am | IP Logged
|
|
|
Also, could you provide (via Request Support Form) us with the previous "web.config" file that caused the issue? We'd like to examine it to find out what exactly caused the issue.
Best regards,
Andrew
|
Back to Top |
|
|
depps Newbie
Joined: 11 March 2008
Online Status: Offline Posts: 8
|
Posted: 12 March 2008 at 4:56am | IP Logged
|
|
|
Hi Andrew
What is happening is that when I place WebMail as a virtual directory in the root web site (an ASP.Net 3.5 site but IIS sees it as .Net 2.0), it is reading the root site's web.config instead of the WebMail web.config.
I am navigating to WebMail like this: www.rootsite.com/WebMail. IIS is serving up the web.config for www.rootsite.com instead of the web.config for WebMail.
The root web.config has a pages theme= tag and WebMail can't intrepret it as themes aren't used in WebMail.
I haven't tried to integrate WebMail into the existing site as the way I understand the integration documentation, if I chose to integrate WebMail into the existing site I would still have to have a functioning WebMail virtual directory. Is this correct?
|
Back to Top |
|
|
depps Newbie
Joined: 11 March 2008
Online Status: Offline Posts: 8
|
Posted: 12 March 2008 at 6:17am | IP Logged
|
|
|
As I stated in my request for support form, the non-ASP.Net site is experiencing the same issues now.
Here is what shows in the application event log:
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: & nbsp;3/12/2008
Time: & nbsp;8:56:03 AM
User: & nbsp;N/A
Computer: XXXXXXX
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/12/2008 8:56:03 AM
Event time (UTC): 3/12/2008 12:56:03 PM
Event ID: cff465b0111c44bf83dcd0f9b44b3bde
Event sequence: 13
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1249554956/Root/WebMail-1-128498001063125000
Trust level: Full
Application Virtual Path: /WebMail
Application Path: C:\Sites\WebMail\WEB\
Machine name: XXXXXXX
Process information:
Process ID: 3348
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
Request information:
Request URL:
Request path:
User host address:
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at WebMailLite.WebMailSettingsCreator.CreateWebMailSettings()
at WebMailLite.WebmailResourceManagerCreator.CreateResourceMana ger()
at WebMailLite.Global.Session_End(Object sender, EventArgs e)
Custom event details:
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 12 March 2008 at 9:32am | IP Logged
|
|
|
We've replied you via e-mail.
Best regards,
Andrew
|
Back to Top |
|
|