Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: WebMail.Integration - not working Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
RichardB
Newbie
Newbie


Joined: 18 July 2012
Online Status: Offline
Posts: 5
Posted: 18 July 2012 at 11:38am | IP Logged Quote RichardB

I have tried repeatedly to use the WebMail.Integration object with my asp.net project with no luck at all.
The WebMail project itself is working great and I can log in manually with no probem. The code is throwing an error when I try to create the Integration object:

WebMail.Integration integration = new WebMail.Integration("App_Data\\", "");

The Integration Instructions say that I can find these values in the web.config file of my root WebMail folder. The values that you see above were listed in my WebMail root folder's web.config file. I've tried everything from the physical path to the relative path and none are working.

What am I doing wrong?
Back to Top View RichardB's Profile Search for other posts by RichardB
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 18 July 2012 at 1:31pm | IP Logged Quote Igor

Please check this forum thread. Does that help? If it doesn't, can you tell what error message you're getting?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
RichardB
Newbie
Newbie


Joined: 18 July 2012
Online Status: Offline
Posts: 5
Posted: 18 July 2012 at 9:25pm | IP Logged Quote RichardB

Hello Igor,

Sorry but the thread that you mentioned did not help. My error is ocurring before I try to call the UserLoginByEmail() method.

Here's the error I'm getting:

---------------------------------------------------------

[WebMailIOException: Error in the application.]
   WebMail.WebmailSettings.LoadWebmailSettings(String dataFolder) +166

[WebMailSettingsException: Error in the application.]
   WebMail.WebmailSettings.LoadWebmailSettings(String dataFolder) +205
   WebMail.WebmailSettings.CreateInstance(String dataFolder) +55
   WebMail.WebMailSettingsCreator.CreateWebMailSettings(String dataFolder) +150
   WebMail.WebmailResourceManagerCreator.CreateResourceManager(String lang) +49
   WebMail.Integration..ctor(String wmDataPath, String wmRootPath) +106
   TheBlytheFamily.webmailredirect.Page_Load(Object sender, EventArgs e) +29
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Back to Top View RichardB's Profile Search for other posts by RichardB
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 19 July 2012 at 2:56am | IP Logged Quote Igor

It looks like WebMail is unable to load settings.xml file, which probably means the data folder itself cannot be located. Try supplying full data folder path and WebMail URL when setting up Integration object, and see if that helps.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
RichardB
Newbie
Newbie


Joined: 18 July 2012
Online Status: Offline
Posts: 5
Posted: 19 July 2012 at 9:18am | IP Logged Quote RichardB

I've got it working now! Thanks Igor
Back to Top View RichardB's Profile Search for other posts by RichardB
 

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