ASPNetPOP3 and ASPNetMime File or assembly name not found

Discussion in 'ASP.NET / ASP.NET Core' started by chrismul, May 31, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,

    I have developed a page using ASPNetPOP3 to download email headers and ASPNetMime to parse these off into a datatable that then binds to a Datagrid. I have managed to get this working without any problems on my local machine after downloading and installing the ASPNetPOP3 and ASPNetMIME components (which are obviously required)

    The problem is that I am now unable to get this working on my server. I keep getting the "File or assembly name aspNetPOP3, or one of its dependencies, was not found" error message. There is a knowledge base article talking about the assembly being in the global assembly cache and adding the following line to your ASPX file

    <%@ Assembly name="aspNetPOP3, Version=2.0.0.0, Culture=neutral, PublicKeyToken=bc571e8da1c1f543" %>

    however,this does seem to not work for a project designed in VS.NET and even if it did it would be a real pain to update this every time you published the page to your server as the local PublicKeyToken would be different from the server's and the above line causes the local version to stop working. There is also no mention in the KB about ASPNetMime or its PublicKeyToken, this componentposes the same problem when deploying to the server.

    I raised a support ticket but it was replied to with a "read the documentation" type response (which is really annoying)- There is no mention about assemblies in the docs.

    Does anyone PLEASE have this working and if so please tell me how.

    Thanks a million in advance
     
  2. Me again,


    I re-queried my support ticket and got a very quick respnse from the support team (good show) about the public key token for ASPNetMIME.


    For those that are interested, the aspNetMime version is 2.0.0.0, and the PublicKeyToken is bc571e8da1c1f543- so the assembly directive at the top of your ASPX file should be :


    <%@ Assembly name="aspNetMime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=bc571e8da1c1f543" %>


    I will test using this from both stand-alone ASPX files and from a VS.NET generated project and post the results.



    Cheers.
     
  3. I am haviung similar problems reactor.


    you mention the aspNetMime solution.


    Do you use the same token key for aspNetPOP3??????????????/


    Appreciate any help


    Malcolm
     
  4. Hi Malcolm,

    No, the ASPNetPOP assembly token will be different, I am sure I got that one working so will look through my code and post it shortly (if it works)....

    Sorry - gotta dig it out, can't remember where it is now.

    Cheers

    Reactor
     
  5. Hi Malcolm,


    I have found the code, but I was wrong, it seems the publickeytoken ISthe same for POP3,


    I have not tested the key with ASPNetMime so perhaps the support staff just gave me the wrong key.


    This is the assembly info for ASPNetPop3:


    <%@ Assembly name="aspNetPOP3, Version=2.0.0.0, Culture=neutral, PublicKeyToken=bc571e8da1c1f543" %>



    I have just tested it and it works 100%, shout if you need some example code, I will be happy to post...


    I hope this helps you.


    Reactor.


    Post Edited (Reactor) : 8/30/2005 8:11:31 PM GMT
     
  6. Just tested it, the above PublicKeyToken works fine for ASPNetMime as well, they must all be in the same assembly.
     
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