Skip to content
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

.Net Core 2.0 preview-2 issues deployed to IIS #723

Closed
yupingyong opened this issue Jul 2, 2017 · 11 comments
Closed

.Net Core 2.0 preview-2 issues deployed to IIS #723

yupingyong opened this issue Jul 2, 2017 · 11 comments

Comments

@yupingyong
Copy link

.Net Core 2.0 preview-2 installed in windows server 2016 Windows Server Hosting IIS does not appear AspNetCoreModule module

@Petermarcu
Copy link
Member

I think there is something called the asp.net core hosting bundle that you need to install.

@Petermarcu
Copy link
Member

@DamianEdwards do you know where the link to that is?

@yupingyong
Copy link
Author

@Petermarcu
thank you for your reply.
I installed the following files:
1.AspNetCore.2.0.0-Preview2.RuntimePackageStore_x64.exe
2.DotNetCore.2.0.0-Preview2-WindowsHosting.exe
3.dotnet-runtime-2.0.0-preview2-25407-01-win-x64.exe
Whether there are other packages that need to be installed.

@Petermarcu
Copy link
Member

#2 in your list looks like the one I'm thinking of. @DamianEdwards would know if that's the right one or if there is another issue here.

@danroth27
Copy link
Member

@yupingyong Could you please provide more details on the steps you performed and the error you are seeing?

@Petermarcu
Copy link
Member

@yupingyong, any more details you can provide to @danroth27 so we can dig deeper?

@yupingyong
Copy link
Author

@danroth27 @Petermarcu
Thank you for your reply.
I provide my server installation environment information, whether it helps to find the problem.

  1. System version: Windows Server 2016 Datacenter Chinese version
    2.IIS Version: 10.0.14393.0
    Steps:
  2. Remove the original 1.1.2 version of Windows Server Hosting and 1.1.2 version of the Runtime
  3. Start installing the following three files
    A) .AspNetCore.2.0.0-Preview2.RuntimePackageStore_x64.exe
    B) .DotNetCore.2.0.0-Preview2-WindowsHosting.exe
    C) .dotnet-runtime-2.0.0-preview2-25407-01-win-x64.exe
  4. After installing the IIS module can not see AspNetCoreModule, restart the server is useless

@nzcoward
Copy link

nzcoward commented Aug 4, 2017

You can add it manually into the pipeline: Go into the modules feature in IIS for the server, and 'Configure Native Modules' on the right. You will see AspNetCoreModule in the list. You can add it there.

image

However, even after adding it, I still see the dreaded 502.5 error on both standalone and framework dependent apps. Now, the version it is referencing, after removing all .netcore 1.x installations from my machine is 7.1.1982 - is this the correct .netcore 2 version?

I have followed all the steps for getting a 1.x site deployed. I have added the Kestrel and IISConfiguration elements to my Program.cs (ootb template doesn't for some reason). I have tested that Kestrel runs it just fine (dotnet myapp.dll) but the reverse proxy between IIS and Kestrel is still not working. It is not an app issue, but an AspNetCore Module problem.

Do we have anyone from the .net core team even looking into this? IIS just makes administration so much easier.

@danroth27
Copy link
Member

@yupingyong We generated the required web.config file to add the ASP.NET Core Module to your app when you run dotnet publish. Can you confirm that you have run dotnet publish on your app and that the web.config file is present in the publish output?

@Petermarcu
Copy link
Member

Is this still an issue?

@Petermarcu
Copy link
Member

I'm going to close this issue now. Let us know if its still a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants