-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
An exception was thrown by the type initializer for HttpApi #107
Comments
To run an aspnetvnext web application on mac you need to use Kestrel (the cross platform server). WebListener is not expected to work on mac. Try installing alpha3 builds of all these packages and install Kestrel as well like this : https://github.com/aspnet/MusicStore/blob/dev/src/MusicStore/project.json#L8. Setup a command for Kestrel like this https://github.com/aspnet/MusicStore/blob/dev/src/MusicStore/project.json#L25 and to run the application. |
THX. Now it's working for me |
k web is using Microsoft.AspNet.Server.WebListener (see project.json) which uses httpapi.dll. This is only available on windows. Kestrel uses libuv which is a binary bundled with the package and is available on windows and osx. linux support is still missing there also, see aspnet/KestrelHttpServer#10. If you want to host on linux you could look at nowin, see https://github.com/Bobris/Nowin. |
You are choosing the "web server" to use. "k web" works in Windows because Rafael Teixeira On Thu, Jul 31, 2014 at 5:36 PM, Lucas da Veiga Teles <
|
Fix nuget output path * Update theoutput path of nuget package
Readme updates and deleted build.cmd, lkg.json, kvm.cmd
Hi guys,
I am trying build an environment on my mac osx to run the project VNext. However, I can't run the project Web (k web), but I can run the project console (k run).
When I run the project web, the terminal show me this message: "An exception was thrown by the type initializer for HttpApi - httpapi.dll".
I follow all steps to build the enviroment on my mac osx.
1)
I tried run the project VNext with KRE version "kvm install 0.1-alpha-build-0446", as show below:
My project.json to KRE version above
I still tried to make an update on my KRE version, as show below:
and my project.json...
To both KRE versions, the exception "An exception was thrown by the type initializer for HttpApi" is displayed.
Any suggestion to fix my wrong? Any idea?
The text was updated successfully, but these errors were encountered: