Comments (5)
Thank you for finding this. I tried copying the the bin folder before but as we know that causes the app pool to recycle, which can have adverse effects when not desired. I have an idea though, I'll try it out and if it checks out I will upload it.
from tuespechkin.
0.9.3.2 is hot off the presses; it now copies uniquely based on the base directory of the running app domain. I've also begun using GZip compression on the embedded assemblies, cutting the package size down by over half.
from tuespechkin.
Just tried the latest version and it works great, thanks!
I end up with a folder name like this "TuesPechkin0.9.3.2_x86_CWindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesrootaecc03447ef3384bassemblydl33f655eab45d12f5e_8f63cf01" I guess that the random named folder within Temporary ASP.NET Files is unique for that website/app pool? I've tried with 2 of the sites on the server and they produce different folder names so all seems good.
Just wondering whether the Windows/Temp folder is the best place for this as it's not really a temporary file? You've ruled out the bin folder for good reason but could it possibly sit in the root of the application? I'm sure there is probably some security issue with that though. Or how about just adding the wkhtmltox.dll file as a reference when the NuGet package is installed so it gets copied to the bin folder? I know it's an extra reference, just thinking aloud.
from tuespechkin.
Glad to hear it is working for you.
Adding it as a reference would be a breeze but it is not possible to add unmanaged assemblies as references. There is a lovely attribute called PreApplicationStartMethodAttribute and it allows one to specify a number of methods to call in an assembly before the application starts. I could stick that in the AssemblyInfo.cs file and be good to go for copying to bin, except it's .NET 4.0 and up only, and web application only.
Since there is no good way to get that thing into the bin folder without recycling the app pool, asking users to remember to copy it, or expecting users to properly manage post build and post publish events in their .csproj files, I'm settling for the temp folder. 👅
from tuespechkin.
Ah I see. Sounds like the temp folder is the way to go then.
It's still working great on our web server where 2 sites are using it, however I'm getting it hanging quite a lot on my local machine running under IIS. Will create a separate issue for this now, got a couple of other issues I'll add too.
from tuespechkin.
Related Issues (20)
- Type 'Win32EmbeddedDeployment' is not defined HOT 2
- Tuespechkin generating blank PDF
- IIS wkhtmltox.dll_unload error HOT 2
- Tuespechkin takes a long time to respond, and returns null HOT 2
- TOC produces blank page on second conversion within lifecycle
- Qt: Could not initialize OLE (error 80010106) HOT 2
- System.DllNotFoundException - Unable to load DLL 'wkhtmltox.dll': Access is denied HOT 6
- Can I generate same pdf page height with the HTML page height?
- Could we directly send html content to head/foot, not a html page?
- Tagged Content Failed HOT 1
- Migrate Net Core
- Header ends up outside paper HOT 1
- First time works fine, second request nothing happen HOT 1
- Error in MVC solutions using NuGet package
- Border thickness issue for all elements
- PDF Margin being ignored
- Lib causing 2 versions of razor to happen
- Canvas is not converted to image in pdf
- Html not getting load
- System.TypeLoadException: 'Could not load type 'System.Security.Principal.WindowsImpersonationContext' (compatibility .NET 6) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tuespechkin.