ASP. NET Core MVC website runs on Windows Server

Source: Internet
Author: User

1.vs remote Publishing to the server, browser access, error 5022. Open the URL reference provided by the wrong prompt 3. Install runtime,sdk,hosting Bundle Installer, other operations ..... There is no use for discovery (follow-up discovery or environmental issues ...) Here's the point. 4. Open the WinDOS log and find an error message

···
Application ' Machine/webroot/apphost/myweb ' with physical root ' C:\IIS\MyWeb ' failed-Start process with commandline ' do Tnet. \sky.hellocore.web.dll ', ErrorCode = ' 0x80004005:8000808c.
···

5. Open CMD window to website directory, run "dotnet Sky.HelloCore.Web.dll", find error ...

6. Direct Baidu error message, the answer is that ASP. NET does not have the server needs to publish all the packages, it is considered to be the target system with, and in fact, the target system is not. 7. Finally, add a line of code to the project file (csjproj file). The Chinese translation seems to be a list of aspnetcore targets on tape?

···
False
···

The complete project file xml
···


netcoreapp2.0
False








.. \dll\newlife.core.dll


.. \dll\sky.gallery.dll


.. \dll\xcode.dll

···

8. The problem is solved, but!!! Publish put all the packages are released, the whole folder is more than 40 trillion, so this method is not very good To study, the server has been installed on the runtime, it should not be reported that a package does not exist ... Waiting to be cleared is not the GAC without this package ....

ASP. NET Core MVC website runs on Windows Server

Related Article

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.