-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to access .local-chromium #295
Comments
Since #264 got merged, i think you should be able to set the executable path via Plotly.NET/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs Lines 12 to 18 in b8f1d88
Just set it to a path via mutable assignment ( |
On another note, it might be that your application simply does not have the permissions to access the content of .local-chromium. It has been some time since i used IIS, but there is a user ( |
Thanks for your advice. I've updated from Version 2.0 prev 6 to Version 2.0. I'm now getting some strange behaviour. When I'm exporting an image to an svg string with
It's exporting an image. I added the executable like:
But with and without the behaviour isn't changing at all. |
is this done from C#? If so, i guess the |
Yes, from C# |
Hello. Do you have a solution yet. |
No i do not have a solution, i have no way of debugging your very specific issue in your very specific use case without any reproducible code. But i have identified a possible problem in my last answer:
So i'd suggest trying to set an actual using Plotly.NET.CSharp;
using Plotly.NET.ImageExport;
using Microsoft.FSharp.Core;
var path = @"executable/path/to/chrome.exe";
FSharpOption<string> opt = FSharpOption<string>.Some(path);
Plotly.NET.ImageExport.PuppeteerSharpRendererOptions.localBrowserExecutablePath = opt;
Chart.Line<int,int,string>(
x: new int[]{1,2,3,4},
y: new int[]{1,2,3,4}
).SaveJPG(@"somewhere\test.jpg") this works in a notebook without issues, so any problems here are specific to your use case in IIS, and might be related to your application not having the rights to use the chromium instance |
Closing this until we get either feedback or reproducible code |
Hi,
I'm trying to export an svg string in an ASP.NET WebApp with Plotly.Net vers 2.0 . It works fine on my local computer but when i try rolling it out on an IIS server i get "no permission on c:/path-to-file/.local-chromium" ). The issue might be a wrong installation of the chromium browser but I'm not quite sure. Maybe I have to set the executablepath for PuppeteerSharp but I don't know where to do this.
Do you have any idea how to fix this?
The text was updated successfully, but these errors were encountered: