Author |
|
RichardB Newbie
Joined: 18 July 2012
Online Status: Offline Posts: 5
|
Posted: 18 July 2012 at 11:38am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 18 July 2012 at 1:31pm | IP Logged
|
|
|
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 |
|
|
RichardB Newbie
Joined: 18 July 2012
Online Status: Offline Posts: 5
|
Posted: 18 July 2012 at 9:25pm | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 19 July 2012 at 2:56am | IP Logged
|
|
|
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 |
|
|
RichardB Newbie
Joined: 18 July 2012
Online Status: Offline Posts: 5
|
Posted: 19 July 2012 at 9:18am | IP Logged
|
|
|
I've got it working now! Thanks Igor
|
Back to Top |
|
|