Win + + IIS 10 deployment. NET Core 1.1 Web API

Source: Internet
Author: User
Tags dotnet

This morning, the deployment of WCF, deployed for a long time, has not been deployed, and finally found the Dudu deployment method, the result of midday meal success, this is the link: http://www.cnblogs.com/dudu/p/3328066.html.

The Web API was deployed in the afternoon, because of the Core 2.0 preview version 1, the results have been deployed for a long time without success, reported the error is: 502.5,

502.5 -thisevent for error messagesenable logging the Application process ' stdout Messagesattach a debugger to the application process and inspect

I tried for a long time have no effect, which refer to the Dudu of the http://www.cnblogs.com/dudu/p/6110727.html, even reported the same mistakes, but tried, not with their own disease, and then executed with the command line dotnet/ WenAPI.dll

After the test, it is also fruitless, so think of the version is not correct, that is, windowhost and. NET Core version does not match, I use the Windowhost version is the latest 1.0.4:http://download.microsoft.com/ Download/3/8/1/381cbbf3-36da-4983-bff3-5881548a70be/dotnetcore.1.0.4_1.1.1-windowshosting.exe

My core is beginning to say 2.0 of the preview version.

The Final solution is: After I put the Web API under core into core 1.1, I executed the results with the command line,

PS c:\webapi> dotnet. \api.dll
Hosting environment:production
Content Root Path:c:\webapi
Now listening on:http://localhost:5000
Application started. Press CTRL + C to shut down.

So, I again in accordance with the practice of the official website, to the hair department, after the launch of the directory browsing function, the results of the browsing time, give me 404 I was a bit blindfolded, and later thought about it, since the command line can be successful, stating that I released is no problem, there is no interface Web API, So browse the time reported 404 is also normal, and later I in the client, have httpclient carried out the test, the results obtained data.

That is the release success!!

Win + + IIS 10 deployment. NET Core 1.1 Web API

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.