PDA

View Full Version : WebSupergoo assembly wont load


Thomas
01-28-2009, 01:57 AM
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(AssemblyNa me 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.LoadAs sembly(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(Stri ng directiveName, IDictionary directive) at System.Web.UI.BaseTemplateParser.ProcessDirective( String directiveName, IDictionary directive) at System.Web.UI.TemplateControlParser.ProcessDirecti ve(String directiveName, IDictionary directive) at System.Web.UI.PageParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateParser.ParseStringInternal(S tring 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[b]");


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


}


</script>








Thanks


Tom

bruce
01-29-2009, 07:26 AM
are you hosted on iis6 or 7?

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

Thomas
01-29-2009, 08:23 AM
Our Web Server Type is : Windows 2008 - IIS 7.0

Thomas

Thomas
02-11-2009, 09:24 AM
Thank you

Thomas

bruce
02-11-2009, 12:41 PM
web super goo is not supported on iis7.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)