PDFLib .NET Deploy Tip (specified module could not be found)
We’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, then all of the sudden we started getting the following exception on the site:
The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
Not one of Microsoft’s more useful error messages, to be true and googling for that error returns so many diverse topics that they were completely useless.
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.
Make sure your webserver is 32-bit
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.
Make sure you have .NET 1.1 installed
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’t forget to register it with IIS:
C:WindowsMicrosoft.NETFrameworkv1.1.xxxxxaspnet_regiis.exe -ir
Put the MSVCR71.DLL into your web bin directory
On your development machine (or wherever you have PDFLib actually installed) the msvcr71.dll will be in C:Program FilesPDFlibPDFlib 32-bit 7.0.3dotNETbin or thereabouts. Drop that into your website bin directory on the server.
Reboot, then check it out.
Taste the sweet goodness of success.
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’s still the best thing on the market to separate your developers from your designers.
March 10th, 2010 at 4:48 am
Always keep working impressive piece of work!
March 10th, 2010 at 3:27 am
gr8 research bro
March 8th, 2010 at 6:23 am
There are some benefits to using social bookmark sites to promote your business. You can acquire good backlinks, increase page rank, generate better search engine results and see an growth in targeted visitors to your site, but you must not use social bookmarking as the only means to advertise your website but it certainly should constitute a major part of your site promotion efforts.
March 8th, 2010 at 6:08 am
my God, i thought you were going to chip in with some decisive insght at the end there, not leave it with
March 7th, 2010 at 11:45 pm
This is an spectacular entry. Thank you very much for the supreme post provided! I was looking for this entry for a long time, but I wasn’t able to find a authentic source.
March 7th, 2010 at 6:20 am
I wish getting over a broken heart can be so easy as following a few steps.. but its not?:(
February 26th, 2010 at 9:47 am
Delightful. May I add your blog to my link exchange directory?
February 12th, 2010 at 1:35 am
If there is time visit to my new blog :)
February 11th, 2010 at 9:24 pm
I love to watch you write!
February 9th, 2010 at 3:13 pm
Just strive to smile for regarding a pair of-three mins then you’ll be able to come back to to figure
February 6th, 2010 at 12:56 pm
I’ve been a fan of free registry softwares, although I make sure I use PC safely but it’s always good to have registry cleaner softwares like ccleaner or revo uninstaller :)
February 6th, 2010 at 7:39 am
Fairly great article, very educational stuff. Never ever considered I’d obtain the facts I need right here. I have been looking throughout the net for a while now and was starting to get irritated. Luckily, I stumbled onto your site and received precisely what I had been hunting for.
January 31st, 2010 at 10:36 pm
Hi webmaster, commenters and everybody else - The blog was absolutely fantastic! Lots of great information and inspiration, both of which we all need - Keep ‘em coming… you all do such a great job at such Concepts… can’t tell you how much I, for one appreciate all you do!
January 28th, 2010 at 2:12 am
I started following your posts now and really find it interesting. From the many sites i usually rampage through this article definitely stands out. Thanks.
January 25th, 2010 at 2:52 am
nice job. I
January 24th, 2010 at 12:58 pm
Interesting point you make, very well thought out.
January 21st, 2010 at 11:13 pm
this is a tight lookin theme
January 15th, 2010 at 8:33 am
lkasd fkas dfkj k dfk adf ladfkl lkadf testComment_144
January 12th, 2010 at 6:12 pm
wow, good work on your article! Ping back on my site when you get a chance http://www.extremelywrong.com/ShowCat.aspx?contenttype=Image&category=%
January 6th, 2010 at 7:19 pm
Hi! I am a long time viewer, but am having trouble viewing your site in Opera today. Did you update something? Richard, Owner, The Singorama Scam
December 28th, 2009 at 10:27 pm
Well, the article is really the best on this valuable topic. I harmonise with your conclusions and will thirstily look forward to your incoming updates. Saying thanks will not just be enough, for the tremendous lucidity in your writing. I will instantly grab your rss feed to stay privy of any updates. Pleasant work and much success in your business dealings!
December 28th, 2009 at 2:49 am
http://thetaxitakes.com/tag/new-york-city/
December 27th, 2009 at 4:45 pm
sheesh… sounds easy when you say it!
December 22nd, 2009 at 8:37 am
Hi I discovered your site by chance, I was browsing Bing for new designer fashion when I came upon your blog, I must say your blog is really cool I truely think the layout, its amazing!. I’m in a bit of a rush right now to totally read through your website but I have saved the location of it and also subscribed for your RSS feeds. I will be back when I have more time. Bravo for a awesome webpage.
December 22nd, 2009 at 6:48 am
Hi found your blog post in Google, its is very informative. Subscribed to your feeds.
December 18th, 2009 at 11:54 am
Hiya - I found this site by mistake. I was looking in Yahoo for Registry software that I had already bought when I came upon your site, I have to say your site is really informative, I just love the theme, its amazing!. I don’t have the time at the moment to totally read your site but I bookmarked it and also will sign up for your RSS feed. I will be back around in a day or two. Thanks again for a great site.
December 14th, 2009 at 2:36 pm
Hey - whats up. Thanks a bunch for the info. I’ve been digging around looking some info up for shool, but i think i’m getting lost!. Yahoo lead me here - good for you i guess! Keep up the good work. I will be coming back over here in a few days to see if there is any more info.
December 14th, 2009 at 4:07 am
Howdy I came across your webpage by chance, I was searching Google for 1 888 Numbers when I found your website, I must say your webpage is very great I just love the theme, its amazing!. I’m strapped for time right now to completely browse your blog but I have favorited it and also subscribed for your RSS feeds. I will be back when I have more time. Thank you for a great webpage.
November 27th, 2009 at 8:32 pm
That
November 1st, 2009 at 4:23 am
good post congratulations
December 16th, 2008 at 1:36 pm
Thanks so much for figuring this out.
I tried for hours with no luck.
You would think that the folks at pdfLib would put something in their support site about this.