EmbedIO is a module based web server for .NET which is written in C#.
Questions tagged [embedio]
13 questions
2
votes
1 answer
Is there any way to clear cache from web view in Xamarin ios?
I have developed a hybrid xamarin ios mobile application using embedio(external package).
I have added the front end resource files(html and javascript files) under ios project resources.
Then we are running the static file server by using embedio…

Rashedul Alam
- 27
- 1
- 7
1
vote
1 answer
Defined in an assembly that is not referenced
Hi im trying to add EmbedIO DLL to a Unity C# project, i have added EmbedIO.dll and Swan.Lite.dll to my project just adding them with NuGet and also try with placing the .DLL in the assets directory, but i keep getting this error.
All the DLL im…

LearninMachineGuy
- 11
- 1
1
vote
1 answer
How to setup an exception handler in EmbedIO Web API
I'm using EmbedIO with the Web API module.
I'd like to have an exception handler that will catch all the unhandled exceptions and return a suited HTTP error code according to the exception type. However, it's not clear if this can be achieved.
The…

Paul
- 1,224
- 2
- 14
- 31
1
vote
1 answer
Convert F# function a b -> c into C# Func c >
In C#:
private Task HandleRequest(HttpListenerContext context, CancellationToken ct)
To become in F#:
let HandleRequest (context:HttpListenerContext, ct:CancellationToken) =
Task.FromResult(false)
//or
let HandleRequest…

mamcx
- 15,916
- 26
- 101
- 189
0
votes
0 answers
Intercept and manipulate request of file in EmbedIO with staticfolder
I'm triying to serve static html pages using embedIO 3.0 from a c# (MAUI app)
While everything works great, i need to intercept some html files by name that exists in the staticfolder, for manipulate and serve to the browser.
Those files are…

extremeKaos
- 33
- 6
0
votes
1 answer
How to return custom content on HttpException in EmbedIO?
I have an EmbedIO API and want to return an HttpException, like for example "401 - unauthorized". If a username is not found upon logging in, I throw an HttpException inside my API endpoint method, like the following:
// return 401
throw…

Ro0f3r
- 5
- 1
0
votes
0 answers
Xamarin embedio webserver dependency injection
I have my custom service collection
public static IServiceProvider Init()
{
var serviceProvider = new ServiceCollection()
.ConfigureDatabase()
.ConfigureCsvExporter()
.ConfigureServices()
…

Qhori
- 157
- 12
0
votes
2 answers
Android emulator port forwarding results in ERR_EMPTY_RESPONSE
My scenario is as follows. I have an Android Emulator which is hosting an EmbedIO web server through an App. When I try to access the URL to the web server from the host machine's (Mac) browser I receive ERR_EMPTY_RESPONSE error.
I have issued the…

Sach K
- 591
- 4
- 20
0
votes
0 answers
embedio - Post pdf with embedio in xamarin app - status is OK but the stream is 0
I have been using embedio and I would like to post pdf and display it in my Webview in my xamarin application. The pdf is as embedded resource in my application. It all seems to be ok, but the stream position is 0, however the status is 200 ok. and…

KuramaUzumaki
- 23
- 7
0
votes
1 answer
EmbedIO with a list of unknown web APIs
I want to have a modular EmbedIO setup with a dynamic list of unknown web API controller types. I thought it'd be easy :( But at the moment I'm stuck at registering the web APIs:
// Some APIs to setup at the EmbedIO webserver in…

nd_
- 93
- 1
- 9
0
votes
1 answer
How to setup the principal in EmbedIO with bearer token and API modules
I'm using the Bearer Token Module to secure the API module.
How can I get the IHttpContext.User property set to the current user, so that I can access it in my controllers?
Here's the relevant part of the web server setup:
WebServerEmbedded
…

Paul
- 1,224
- 2
- 14
- 31
0
votes
0 answers
Returning a file download in async in embeddedIO (async and disposing of streams)
While this particular question is about embeddedIO and FileReponseAsync but it probably has more to do with the handling of streams and async in Tasks in C#.
I am using EmbeddedIO (I needed a quick and dirty web server, and so far it has worked like…

Kris Erickson
- 33,454
- 26
- 120
- 175
0
votes
1 answer
Xamarin.Forms Webview: ERR_CONNECTION_REFUSED trying to load local server with EmbedIO
I am trying run a local server for a Xamarin.Forms WebView. This is to get around CORS, and so the html can be structured like a normal page. This works for UWP and iOS, but Android always comes up with an ERR_CONNECTION_REFUSED. Some further…

Sonic1015
- 55
- 1
- 16