WebSupergoo assembly wont load

Discussion in 'ASP.NET / ASP.NET Core' started by Thomas, Jan 28, 2009.

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

    I am trying to use the example code from the kb article to create a pdf document :

    http://support.discountasp.net/KB/a124/websupergoo-abcpdfnet-sample-code.aspx?KBSearchID=10239

    But the assembly won't load. Am I missing some security permissions?


    ---------------------------------------------
    Exception details
    ---------------------------------------------

    Could not load file or assembly 'ABCPDF, Version=5.0.0.6, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169' or one of its dependencies. The system cannot find the file specified.


    at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail) at System.Web.UI.TemplateParser.LoadAssembly(String assemblyName, Boolean throwOnFail) at System.Web.UI.TemplateParser.AddAssemblyDependency(String assemblyName, Boolean addDependentAssemblies) at System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.PageParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)



    ---------------------------------------------
    Full sourcecode
    ---------------------------------------------



    <%@ Assembly name="ABCPDF, Version=5.0.0.6, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169" %>


    <!--- The above line can be omitted if you load the assembly in the application web.config file. See KB article 10239 for details -->


    <%@ import Namespace="WebSupergoo.ABCpdf5" %>


    <script runat="server" Language="C#">


    void Page_Load(object sender, System.EventArgs e)


    {


    int theID = 0;


    string theText = "This PDF file is generated by WebSupergoo ABCpdf.NET on the fly";


    Doc theDoc = new Doc();


    theDoc.Width = 4;


    theDoc.FontSize = 32;


    theDoc.Rect.Inset(20, 20);


    theDoc.FrameRect();


    theID = theDoc.AddHtml(theText);


    while (theDoc.GetInfo(theID, "Truncated") == "1") {


    theDoc.Page = theDoc.AddPage();


    theDoc.FrameRect();


    theID = theDoc.AddHtml("", theID);


    }


    theDoc.Save(Server.MapPath("textflow.pdf"));


    theDoc.Clear();





    Response.Write ("PDF file written");


    Response.Write ("<a href=\"textflow.pdf\">View PDF File</a>");


    }


    </script>








    Thanks


    Tom
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. Our Web Server Type is : Windows 2008 - IIS 7.0

    Thomas
     
  4. Thank you

    Thomas
     
  5. Bruce

    Bruce DiscountASP.NET Staff

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