ABCpdf: Assembly not found

Discussion in 'ASP.NET / ASP.NET Core' started by cactuskidsc, Jan 25, 2004.

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 am using the ABCpdf .NET component. I downloaded the trial version, from VS referenced it in the GAC, built my app, and everything works great.

    When I upload it to the discountasp.net servers, I get the following error: "File or assembly name ABCpdf, or one of its dependencies, was not found."

    I am using CodeBehind pages in C# and am using an import statement: "using WebSupergoo.ABCpdf3;". I have also tried: "using WebSupergoo.ABCpdf;". No difference.

    When I upload a copy of the DLL into my bin directory and reference it there, all is good.

    Obviously, my development reference to the GAC is not translating to the GAC on the host server. Any ideas?

    Thanks!
    Ron
     
  2. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

  3. Yup. Been there done that. I'm also using AspNetEmail and that worked fine when I uploaded it, so I have some experience getting this to work. But, I'm stumped on this one...
     
  4. I have version 3.5.0. This is the same one as discountasp.net. If anyone knows... what's the difference between ABCpdf and ABCpdf3? Is the former a previous version, and the latter version 3.0 and above? Couldn't find anything on that. The examples all used ABCpdf3, so that's what I've been using, although I tried both :)

    Ron
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    Ron,

    I have tested using WebSuperGoo with VS.net and it worked just fine.

    I really don't know what exactly you did wrong.

    Have you tried using inline code? Does it work?

    quote:Originally posted by cactuskidsc

    I have version 3.5.0. This is the same one as discountasp.net. If anyone knows... what's the difference between ABCpdf and ABCpdf3? Is the former a previous version, and the latter version 3.0 and above? Couldn't find anything on that. The examples all used ABCpdf3, so that's what I've been using, although I tried both :)

    Ron

    </blockquote id="quote"></font id="quote">
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    What version of ABCPDF are you using?


    quote:Originally posted by cactuskidsc

    Yup. Been there done that. I'm also using AspNetEmail and that worked fine when I uploaded it, so I have some experience getting this to work. But, I'm stumped on this one...
    </blockquote id="quote"></font id="quote">
     
  7. I'm having no luck here. I have the reference pointing to my bin directory. Then I remove the reference and rebuild - expected no assembly errors. I then re-reference the GAC version and the build works again. I upload my application's DLL and PDB files to the web server. If the ABCpdf.DLL is in my bin directory on the server, it works, but if I remove it, it fails.

    I assumed the dependency was being stored inside the DLL or PDB, but there appears to be some "memory" of the DLL being stored in my local bin directory... is the dependency reference cached somewhere?

    Thanks,
    Ron
     
  8. Thanks Bruce... I think that got it.
     
  9. Hello,

    I tried to reference namespace WebSupergoo.ABCpdf4 in my code and I have placed the ABCpdf.dll (version 4) in my "bin" directory, but when the page is compiled it gives error stating that there are multiple definitions for ABCpdf.Doc and it is referencing ABCpdf.dll in ...\Microsoft .Net\...\ASP.NET Temporary Files\...\...

    I realize that DiscountASP does not have version 4 yet, but if I have my own license for version 4 I am wondering what I need to do to be able to utilize the DLL from my "bin" directory instead of the other one...

    Any help/advice would be greatly appreciated.

    Thanks
     
  10. Bruce

    Bruce DiscountASP.NET Staff

    You'll need to unload the assembly first

    Try add this to the web.config

    <system.web>
    <compilation>
    <assemblies>
    <remove assembly="ABCpdf" />
    </assemblies>
    </compilation>
    </system.web>


    quote:Originally posted by jrwooten

    Hello,

    I tried to reference namespace WebSupergoo.ABCpdf4 in my code and I have placed the ABCpdf.dll (version 4) in my "bin" directory, but when the page is compiled it gives error stating that there are multiple definitions for ABCpdf.Doc and it is referencing ABCpdf.dll in ...\Microsoft .Net\...\ASP.NET Temporary Files\...\...

    I realize that DiscountASP does not have version 4 yet, but if I have my own license for version 4 I am wondering what I need to do to be able to utilize the DLL from my "bin" directory instead of the other one...

    Any help/advice would be greatly appreciated.

    Thanks

    </blockquote id="quote"></font id="quote">
     
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