<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Code Iteratively &#187; pdf</title>
	<atom:link href="http://iterat.ive.ly/index.php/tag/pdf/feed/" rel="self" type="application/rss+xml" />
	<link>http://iterat.ive.ly</link>
	<description>Hi there. I&#039;m Christopher Gooley. I build technology. I like to share technology musings and products on this blog. I also like to ramble about non-technology topics. Besides coding, this is my main outlet for sharing and creativity.</description>
	<lastBuildDate>Mon, 19 Dec 2011 23:23:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PDFLib .NET Deploy Tip (specified module could not be&#160;found)</title>
		<link>http://iterat.ive.ly/index.php/2008/12/16/pdflib-deploy-tip-specified-module-could-not-be-found/</link>
		<comments>http://iterat.ive.ly/index.php/2008/12/16/pdflib-deploy-tip-specified-module-could-not-be-found/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 20:24:01 +0000</pubDate>
		<dc:creator>Christopher Gooley</dc:creator>
				<category><![CDATA[dot.net]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://iterat.ive.ly/index.php/2008/12/16/pdflib-deploy-tip-specified-module-could-not-be-found/</guid>
		<description><![CDATA[We&#8217;re using the ASP.NET C# version of PDFLib at work to generate loads of reports and cool pdf files. Everything was peachy on our development systems until we deployed to staging servers and started getting a strange error. All of the sudden we started getting the following exception on the site: The specified module could [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re using the ASP.NET C# version of PDFLib at work to generate loads of reports and cool pdf files.  Everything was peachy on our development systems until we deployed to staging servers and started getting a strange error.</p>
<p>All of the sudden we started getting the following exception on the site:<br />
<code><br />
The specified module could not be found.<br />
(Exception from HRESULT: 0x8007007E)<br />
</code><br />
Not one of Microsoft&#8217;s more useful error messages, to be true and googling for that error returns so many diverse topics that they were completely useless.</p>
<p>So after a bit of troubleshooting, we came to the following solution tips.  These should work for both C# and VB and any other .NET language.  Tested on Windows 2003 and Windows Server 2008.<span id="more-40"></span></p>
<h4>Make sure your webserver is 32-bit</h4>
<p>PDFLib for .NET does not support 64-bit servers.  In theory you could run your IIS worker processes in 32-bit on a 64-bit OS, but I leave that as an exercise to the reader.</p>
<h4>Make sure you have .NET 1.1 installed</h4>
<p>Because pdflib_dotnet.dll is built on 1.1 and you will have this installed on your development box, you will never think about this for your prod/staging servers. If you already have IIS installed before you run the 1.1 installer, don&#8217;t forget to register it with IIS:<br />
<code><br />
C:\Windows\Microsoft.NET\Framework\v1.1.xxxxx\aspnet_regiis.exe -ir<br />
</code></p>
<h4>Put the MSVCR71.DLL into your web bin directory</h4>
<p>On your development machine (or wherever you have PDFLib actually installed) the msvcr71.dll will be in C:\Program Files\PDFlib\PDFlib 32-bit 7.0.3\dotNET\bin or thereabouts.  Drop that into your website bin directory on the server.</p>
<p><em>UPDATE: You may also need to place this dll into the C:\Windows\System32 folder on a dedicated server.</em></p>
<h4>Reboot, then check it out.</h4>
<p>Taste the sweet goodness of success.</p>
<p>PDFLib produces a great end product (and it should for that much caaaassssshh).  But it has many weird cases.  Probably because it seems that the .NET version is just a simple crappy wrapper on the C library.  Oh well. It&#8217;s still the best thing on the market to separate your developers from your designers.</p>
]]></content:encoded>
			<wfw:commentRss>http://iterat.ive.ly/index.php/2008/12/16/pdflib-deploy-tip-specified-module-could-not-be-found/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

