Developer forum

Forum » Development » Workflow Vs. aspNETemail

Workflow Vs. aspNETemail


Reply

Hey,


 


I have a problem with a custom solution, where i've just add'd workflow.


 


After setting up the workflow i get the following error's when testing it.



System.Exception: Unable to locate Xml License file.System.Exception: Unable to dynamically locate license file. The license file can loaded manually by calling EmailMessage.LoadLicenseFile(..) or EmailMessage.LoadLicenseString(...). The following locations were checked, but no license file was found. Try moving the license file "aspnetemail.xml.lic" to one of these locations. file:\c:\udvikling\X\application\bin\aspnetemail.xml.lic c:\udvikling\X\application\bin\aspnetemail.xml.lic c:\udvikling\X\application\aspnetemail.xml.lic file:\c:\udvikling\X\application\bin\aspnetemail.3.xml.lic c:\udvikling\X\application\bin\aspnetemail.3.xml.lic c:\udvikling\X\application\aspnetemail.3.xml.lic file:\c:\udvikling\X\application\bin\aspnetemail.3.5.xml.lic c:\udvikling\X\application\bin\aspnetemail.3.5.xml.lic c:\udvikling\X\application\aspnetemail.3.5.xml.lic file:\c:\udvikling\X\application\bin\aspnetemail.3.5.2.xml.lic c:\udvikling\X\application\bin\aspnetemail.3.5.2.xml.lic c:\udvikling\X\application\aspnetemail.3.5.2.xml.lic file:\c:\udvikling\X\application\bin\aspnetemail.3.5.2.0.xml.lic c:\udvikling\X\application\bin\aspnetemail.3.5.2.0.xml.lic c:\udvikling\X\application\aspnetemail.3.5.2.0.xml.lic Note: Version numbers can be inserted to license file names if multiple major versions of the same comonent are running on the system. See the help file for more examples loading license files. An online version of the help file can be found at http://www.aspNetEmail.com/help/ at ᐢ.ᐁ(String ) at aspNetEmail.EmailMessage.ᐁ() at aspNetEmail.EmailMessage.ᐁ() at aspNetEmail.EmailMessage..ctor() at Dynamicweb.Workflow.Publish.Notify(Step objStep)


 


After looking at the error i was unable to find the license file the Application is looking for, I've been trying to download various packages from the Downloads section, however it seems the file doesent exsist in any of the packages?



Best Regards


Jais Edelmann


Replies

 
Reply

Notice i have aspNetEmail.dll in my bin folder, however not the XML license file.

 
Nicolai Høeg Pedersen
Reply

Hi Jais


 


Dynamicweb uses EmailMessage.LoadLicenseFile(..) to load the license since we are not allowed to distribute the license as a .lic file.


 


You say it is a Custom project. is it in a Custom Module you get the error because you referenced aspNetEmail? Then you need your own development license.


 


If you get the error in a standard module make sure your local Global.asax has a call to


Dynamicweb.Admin.Global.Application_Start in it Application_Start event:


 


Imports System.Web.SessionState


Public Class Global_asax

    Inherits System.Web.HttpApplication

 Dim GlobalAsax As New Dynamicweb.Admin.Global


    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)

  ' Fires when the application is started

  GlobalAsax.Application_Start(sender, e)

    End Sub


    Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)

  ' Fires when the session is started

  GlobalAsax.Session_Start(sender, e)

    End Sub


    Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)

  ' Fires at the beginning of each request

  GlobalAsax.Application_BeginRequest(sender, e)

    End Sub


    Sub Application_AuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs)

  ' Fires upon attempting to authenticate the use

  GlobalAsax.Application_AuthenticateRequest(sender, e)

    End Sub


    Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)

  ' Fires when an error occurs

  GlobalAsax.Application_Error(sender, e)

    End Sub


    Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)

  ' Fires when the session ends

  GlobalAsax.Session_End(sender, e)

    End Sub


    Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)

  ' Fires when the application ends

  GlobalAsax.Application_End(sender, e)

    End Sub


End Class

 
Reply

The problem is with the standart module Workflow, when trying to press "start godkendelse" i get the System.Exception.


 


I've triede using the default global.asax.cs from the package: CSharpClassicNet20.zip (download'ed today) and i still get the error.



This is the default global.asax.cs file i triede to use:


using Microsoft.VisualBasic;


using System.Data;


using System.Web.UI;


using System.Web.UI.HtmlControls;


using System;


using System.Collections;


using System.Web;


using System.Web.UI.WebControls;


using System.Configuration;


using System.Drawing;


using System.Web.SessionState;


using Dynamicweb;


//using Dynamicweb.Settings;


 


namespace CustomModules


{


public class Global : System.Web.HttpApplication


{


//Inherits System.Web.HttpApplication


//Private strAllowedStrings As String = "/Admin/access/Default.aspx,/Admin/access/Access_User_Login.aspx,/Admin/default.aspx,/Admin/Access/Access_Logoff.aspx"


//Public Shared DWGlobalSettings As Dynamicweb.Settings



Dynamicweb.Admin.Global GlobalAsax;


#region " Component Designer Generated Code "



public Global() {


GlobalAsax = new Dynamicweb.Admin.Global();




//This call is required by the Component Designer.


InitializeComponent();



//Add any initialization after the InitializeComponent() call



}



//Required by the Component Designer


private System.ComponentModel.Container components = null;



//NOTE: The following procedure is required by the Component Designer


//It can be modified using the Component Designer.


//Do not modify it using the code editor.


[System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent ()


{


components = new System.ComponentModel.Container();


}



#endregion



public void Application_Start (object sender, EventArgs e)


{


// Fires when the application is started


GlobalAsax.Application_Start(sender, e);


Dynamicweb.ScheduledTask.Thread.Start();


}



public void Session_Start (object sender, EventArgs e)


{


// Fires when the session is started


}



public void Application_OnPreRequestHandlerExecute (object sender, EventArgs e)


{


GlobalAsax.Application_OnPreRequestHandlerExecute(sender, e);


}



public void Application_BeginRequest (object sender, EventArgs e)


{


// Fires at the beginning of each request


GlobalAsax.Application_BeginRequest(sender, e);


}



public void Application_AuthenticateRequest (object sender, EventArgs e)


{


// Fires upon attempting to authenticate the use


GlobalAsax.Application_AuthenticateRequest (sender, e);


}



public void Application_Error (object sender, EventArgs e)


{


// Fires when an error occurs


GlobalAsax.Application_Error(sender, e);


}



public void Session_End (object sender, EventArgs e)


{


// Fires when the session ends


}



public void Application_End (object sender, EventArgs e)


{


// Fires when the application ends


}



}



}


 

 
Reply

The only difference betwin the default and my own global.asax.cs is some HTTPhandling in the Application_beginRequest however both of them make the same error.

 
Nicolai Høeg Pedersen
Reply

If the solution resides in one of our servers, please send me a link by mail: np at dynamicweb.dk

 

You must be logged in to post in the forum