aspNetEmail Version problem

Discussion in 'ASP.NET / ASP.NET Core' started by johnh, Oct 27, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I'm having problems getting aspNetEmail to work on the discountasp server. I have followed the KB instructions, and added the following to my web.config:

    <compilation defaultLanguage='c#'
    debug='true'>
    <assemblies>
    <add assembly='aspNetEmail, Version=2.5.0.0, Culture=neutral, PublicKeyToken=bc571e8da1c1f543'/>
    </assemblies>
    </compilation>

    but I get:

    Parser Error Message: File or assembly name aspNetEmail, or one of its dependencies, was not found.

    I've probably done something really dumb.... thanks so much for any ideas,
    jh

    Post Edited (JohnH) : 10/28/2004 11:53:40 AM GMT
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. Bruce,
    thanks for being willing to look at this. In order to post the code, I started from scratch with a new application to reproduce the problem as simply as possible. First, I just made a blank project using visual studio, except that I made the modification to web.config file. I executed this on the Discountasp site, and I did not get the parser error as before (so I was hopeful).



    Next, I added some code which actually uses aspNetMail... and that required me to set a reference in the project to the aspNetMail, the trial version of which I downloaded and installed per the kb instructions. However, having done that... on my local machine I'm back to the parser error (Parser Error Message: File or assembly name aspNetEmail, or one of its dependencies, was not found), and up on the remote server, I get:



    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.</font>



    [color=#0000ff>

    Here]


    I tried under-specifying the required DLL, like this:

    <add assembly='aspNetEmail'/></font>


    but that got me back to the parser error.



    So I'm not clear whether my original problem was real or a red herring, but I'm pretty sure that I need to know how to get around this versioning problem. That is, how do I build a DLL locally when all I have is the latest version of aspnetemail, but all DiscountAsp has installed is the older version?



    Thanks for your help,

    jh



    The code follows:



    web.config

    (the only changes I made are in

    [color=blue> ] Set compilation debug='true' to enable ASPX debugging. Otherwise, setting this value to
    false will improve runtime performance of this application.
    Set compilation debug='true' to insert debugging symbols (.pdb information)
    into the compiled page. Because this creates a larger file that executes
    more slowly, you should set this value to true only when debugging and to
    false at all other times. For more information, refer to the documentation about
    debugging ASP.NET files.
    -->
    </font> debug='true'>
    <assemblies>
    <add assembly='aspNetEmail, Version=2.5.0.0, Culture=neutral, PublicKeyToken=bc571e8da1c1f543'/>
    </assemblies>
    </compilation></font>

    Set customErrors mode='On' or 'RemoteOnly' to enable custom error messages, 'Off' to disable.
    Add <error> tags for each of the errors you want to handle.</font>

    'Off' Always display detailed ASP.NET error information.
    'RemoteOnly' Display custom (friendly) messages only to users not running
    on the local Web server. This setting is recommended for security purposes, so
    that you do not display application detail information to remote clients.
    -->
    <FONT color=red> <customErrors
    mode='Off'
    /></font>

    This section sets the authentication policies of the application. Possible modes are 'Windows',
    'Forms', 'Passport' and 'None'</font>

    'Windows' IIS performs authentication (Basic, Digest, or Integrated Windows) according to
    its settings for the application. Anonymous access must be disabled in IIS.
    'Forms' You provide a custom form (Web page) for users to enter their credentials, and then
    you authenticate them in your application. A user credential token is stored in a cookie.
    'Passport' Authentication is performed via a centralized authentication service provided
    by Microsoft that offers a single logon and core profile services for member sites.
    -->
    <authentication mode='Windows' /> </font>

    This section sets the authorization policies of the application. You can allow or deny access
    to application resources by user or role. Wildcards: '*' mean everyone, '?' means anonymous
    (unauthenticated) users.
    --></font>

    <allow users='*' /> <!-- Allow all users -->
    <!-- <allow users='[comma separated list of users]'
    roles='[comma separated list of roles]'/>
    <deny users='[comma separated list of users]'
    roles='[comma separated list of roles]'/>
    -->
    </authorization></font>

    Application-level tracing enables trace log output for every page within an application.
    Set trace enabled='true' to enable application trace logging. If pageOutput='true', the
    trace information will be displayed at the bottom of each page. Otherwise, you can view the
    application trace log by browsing the 'trace.axd' page from your web application
    root.
    -->
    <trace
    enabled='false'
    requestLimit='10'
    pageOutput='false'
    traceMode='SortByTime'
    localOnly='true'
    /></font>

    By default ASP.NET uses cookies to identify which requests belong to a particular session.
    If cookies are not available, a session can be tracked by adding a session identifier to the URL.
    To disable cookies, set sessionState cookieless='true'.
    -->
    <sessionState
    mode='InProc'
    stateConnectionString='tcpip=127.0.0.1:42424'
    sqlConnectionString='data source=127.0.0.1;Trusted_Connection=yes'
    cookieless='false'
    timeout='20'
    /></font>

    This section sets the globalization settings of the application.
    -->
    <globalization
    requestEncoding='utf-8'
    responseEncoding='utf-8'
    />

    </system.web></font>

    webform1.aspx:[/b]</FONT>


    [color=green>using]using System.Collections;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Web;
    using System.Web.SessionState;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;</font>

    {
    /// <summary>
    /// Summary description for WebForm1.
    /// </summary>
    public class WebForm1 : System.Web.UI.Page
    {
    protected System.Web.UI.WebControls.Button Button1;

    private void Page_Load(object sender, System.EventArgs e)
    {
    // Put user code to initialize the page here
    }</font>

    override protected void OnInit(EventArgs e)
    {
    //
    // CODEGEN: This call is required by the ASP.NET Web Form Designer.
    //
    InitializeComponent();
    base.OnInit(e);
    }

    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
    this.Button1.Click += new System.EventHandler(this.Button1_Click);
    this.Load += new System.EventHandler(this.Page_Load);</font>

    [color=green>[email protected][/email] msg.To = '</font><a href="mailto:[email protected]" target="_blank"> msg.Subject = 'order';

    msg.Body = 'hello';
    if ( msg.Send() )
    {
    Response.Write( 'Your order was submitted.l bla bla bla');
    }
    else
    {
    Response.Write ('The following error occurred: ' + msg.LastException().Message);
    }
    }
    }
    }</font>


    [color=blue>http://schemas.microsoft.com/intellisense/ie5[/url] </HEAD>

    <form id='Form1' method='post' runat='server'>
    <asp:Button id='Button1' style='Z-INDEX: 101; LEFT: 392px; POSITION: absolute; TOP: 272px' runat='server'
    Text='Submit Order'></asp:Button>
    </form>
    </body>
    </HTML>
    </font>

    Post Edited (JohnH) : 11/3/2004 2:47:10 AM GMT
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    that's the problem.

    your computer is installed with version 3.0 but we only have 2.5 installed. Version 3.0 just came out yesterday and we haven't got this version in our hand yet.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Ok, so I'm stuck. I can chill for at most a few days....if it is going to be more than that, it would be great if you could let me know to pursue some other means of sending e-mail, or perhaps e-mail me the old version (I have requested from the vendor, but not heard a reply).

    thanks Bruce
    jh
     
  6. Bruce

    Bruce DiscountASP.NET Staff

  7. I am having problems also as can only get version 3 so when I upload my site it does not get recognized.

    Anyone has got hold of version 2.5 eval please email me at [email protected]

    Kind Regards

    Wayne Johnson
    http://www.zastil.co.uk
     
  8. Bruce

    Bruce DiscountASP.NET Staff

    ASPNetEmail 3.0 is now installed on all our servers.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  9. OK I think I have exactly the same problem, in that I can only download and install aspnetemail v3.1.5.0 for advancedintellect and discountasp only have v3.0.0.0 - can you update your installed version or can someone help be get an eval copy of v3.0.0.0?

    Thx
     
  10. Bruce

    Bruce DiscountASP.NET Staff

  11. I've sent support several emails requesting version 3.0 since the vendors site only provides 3.1.5. Someone please help.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page