Closed Novotnde closed 3 years ago
Hello @Novotnde, thanks for using EmbedIO!
I've never worked with Xamarin, so I hope someone else will help you with platform-specific issues. In the meanwhile, here's a couple things I would do if facing a similar problem:
ZipFileProvider
is not thread-safe and therefore may have problems with simultaneous requests, I'd try the embedded resource scenario with the simplest possible index.html
(<html><body>Hello world!</body></html>
isn't exactly valid HTML - no head
tag, no title, etc. - but will do the job). If that works, try adding a couple images, or an external stylesheet and an external script, and see if you start getting errors.xamarin-macios
repository too.OnAny
returning the HTML code above, to rule out problems with anything not fileModule
-related.It's not much, I know, and you probably have already done all of the above - but it's all I can do, sorry.
Also, it may help if you post your version of Xamarin, Mono, iOS, and Visual Studio; while this is always good practice, it is especially with "moving targets" like Xamarin/iOS.
Hello, thank you for fast reply!
I have figured the way to do it with WithZipFileStream at the end. Thank you very much!
@Novotnde you're welcome!
Let me guess:
WebApiModule
, was "stealing" requests from the FileModule
created by WithZipFileStream
;If it was something else, please take a minute to explain, so others can benefit from your experience. Thanks!
I worked around a threading issue with a SharpZipLib provider
Hello, I have a question I am trying to use embedio in xamarin application and I need to open up a zip folder so far no luck. Since its been few days I decided to ask for some advice
I have my folder as embedded resource and I am trying to unzip it with .WithZipFileStream - but I am getting 404 exception. Since I am unsure that this method also works with folders I have tried to unzip it and then use static folders. - here I am getting iOS exception
[HandleHttpException] exception. Request route: http://127.0.0.1:8080/index.html. 2021-06-23 11:24:23.508491+0200 EsignoReader.iOS[25534:34280063] 2021-06-23 11:24:23.667350+0200 EsignoReader.iOS[25534:34278886] [Process] 0x7f93743fbc20 - [pageProxyID=5, webPageID=6, PID=25535] WebPageProxy::didFailProvisionalLoadForFrame: frameID = 3, domain = WebKitErrorDomain, code = 102
Could you please advise where am I making mistake?