I am wrapping headless chrome using the excellent ChromeHtmlToPDF library. This we are using to dynamically render PDFs from a website. This works locally under IIS express, and also works on the server when recompiled as a console app, so the technology works. However running under IIS, chrome always exits immediately and a error of "one or more parameters are invalid", is returned.
Linked Questions
- Webserver parsing chrome input from post request
- Website Collapsed Web Audi Autoplay Policy
- Web Design for Google Chrome
- What does Google Chrome mean to web developers?
- Site can't be reached Chrome
- Chrome autofill does not working on specific page
- Is anyone targeting Google Chrome yet? (Web apps, plugins)
- Where is the chink in Google Chrome's armor?
- What's a request for google search for hours?
- How to open PDF file in Google Chrome in new tab?
- Google chrome control for .net
- Google Chrome Extension: is there any per-tab storage?
- Google Chrome Extension Hello World
- Chrome: First Link(s) on Some Pages Don't Work--Why?
- Is there a way to edit a chrome extension manifest file from within the extension?
Popular Questions
- Can't change log level at runtime (log4j2)
- CGImageCreate: invalid image size: 0 x 0
- Partially applied generic function "cannot be cast to Nothing"
- Peek and Pop not an option
- RTSP Client Connected to VLC
- Get nodes of specific type in Networkx
- "bower install" failing on jenkins, but runs well through command line
- Google Developers Console - Duplicate Fingerprint
- How to parse custom objects from a list within a jsonstring?
- PHP Trait colliding constructor
1 Answers
Related Questions
- How to attach Chrome developer tools to the same window?
- Chrome Userscript Development
- Communication between the Options page and Background Page in Google Chrome
- Google Chrome KeyCode Assignment
- Change the current URL in Chrome using a regular expression or similar
- Chrome extensions : How to know when a tab has finished loading, from the background page
- Link to another file in chrome extension
- How do I directly modify a Google Chrome Extension File? (.CRX)
- Writing Google chrome extension for GET query
- Chrome extension:Cannot call method 'getElementsByTagName' of null
- retrieving google chrome booksmarks after uninstall
- equivalent of currentWindow.getBrowser().contentWindow; in chrome extensions
- context.drawWindow not working with chrome , why?
- Are all Google Chrome extensions open source by default?
- Access Google Chrome's cache
After many many hours looking into this I finally solved it by running it under my own user, the restricted IIS user, then comparing the activity logs generated by the excellent microsoft process monitor.
I tracked it down to file permissions on one directory: C:\Windows\System32\config\systemprofile\AppData\Local\Google\Chrome\User Data
The app pool user needs write + modify permissions to this directory. It's up to you if you feel this is an acceptable security risk; however for us it is, for now.
This is where headless chrome stores it's crashpad directory. No amount of parameter fiddling seems to be able to dissuade it of this. That seems to be a bug.
Hope this helps someone else, I couldn't find anything on this anywhere.