GithubHelp home page GithubHelp logo

Comments (10)

BryanSoltis avatar BryanSoltis commented on June 30, 2024

Hi @mcdonamw,

Thank you for writing. You just need to publish .NEWT application to run it in IIS. The /ready/AzNamingTool fodler is the correct file to publish from.

This guide should provide the details. Specifically, look at the "Publish and deploy the app" section of the guide.

https://learn.microsoft.com/en-us/aspnet/core/tutorials/publish-to-iis?view=aspnetcore-6.0&tabs=visual-studio

The site is a .NET 6 application so you will likely need to install the .NET Hosting bundle (also documented in the above guide).

Hope this helps!

  • Bryan

from cloudadoptionframework.

mcdonamw avatar mcdonamw commented on June 30, 2024

Appreciate the response. Prior to it I somehow managed to fumble my way through VS Code and noticed it ran when I did a run, so I published the code and pointed IIS to it. Now it appears like something is happening, but the browser is just spinning for over 5 min now.

EDIT: After looking at that link again to double check it appears I have done everything required, but it simply will not load. Guess I'll have to go hit some IIS/.NET boards.

from cloudadoptionframework.

BryanSoltis avatar BryanSoltis commented on June 30, 2024

It's possible there is something out of configuration somewhere. Here is what I just did to test the process:

  • Installed IIS

  • Installed .NET Core Hosting Bundle

  • Stopped/Started IIS

    • net stop was /y
    • net start w3svc
  • Create a new folder for my deployment (C;/ANT)

  • Created a new IIS site with the C:/ANT folder for the base directory

  • Downloaded the CAF repo

  • Opened a Command Prompt to my /ready/AzNamingTool folder

  • Ran the dotnet publish command, specifying the C:/ANT folder for the output

    • dotnet publish --configuration Release -o C:/ANT
  • Accessed the site to confirm it loaded

    My initial thought is something may be misaligned with the IIS configuration, so maybe the above process will get it working?

    • Bryan

from cloudadoptionframework.

mcdonamw avatar mcdonamw commented on June 30, 2024

That's essentially what I did, though I downloaded the .net Core 6 ASP.NET hosting bundle and the Core 6 Runtime. Did you install any additional/non-default options when adding the IIS role? I added the .NET 4.5 and ASP.Net with it.

I was digging into the event logs and noticed .NET/web errors citing "Unable to determine https port". I did not create an https binding as the docker container just ran http so figured would be the same here. With that said, with a packet capture I did see I am getting a 307 temporary redirect to the https version of the site. Any clues where that's coming from? Is that in the code or is that in IIS?

I went ahead and added an https binding, and now I get a prompt regarding the self-signed cert I generated but attempting to continue now leads to a "ERR_HTTP2_PROTOCOL_ERROR" error. Sheesh.

I'm using Windows Server 2022 btw.

from cloudadoptionframework.

mcdonamw avatar mcdonamw commented on June 30, 2024

So I'm trying this again per your instructions but I cannot build the app. I need the .NET SDK. Are there other pre-reqs not listed above?

from cloudadoptionframework.

mcdonamw avatar mcdonamw commented on June 30, 2024

Outside of installing the SDK so I can build the project, I completed everything else as outlined above. I'm back to the site just spinning endlessly. The event log again shows the following.

Category: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware
EventId: 3
SpanId: 80a213f3bfb0ba92
TraceId: 1fd2750a2a10c0927cd05df2e243679c
ParentId: 0000000000000000
RequestId: 40000008-0001-fd00-b63f-84710c7967bb
RequestPath: /

Failed to determine the https port for redirect.

from cloudadoptionframework.

mcdonamw avatar mcdonamw commented on June 30, 2024

I'm probably chasing my tail on the above error. Per the following this could be expected if no HTTPS ports are found in my configuration (none are) and it says while the error will generate, HTTP should continue to process normally.

https://learn.microsoft.com/en-us/dotnet/core/compatibility/aspnet-core/6.0/middleware-ambiguous-https-ports-exception

There's also an error about the w3wp.exe process crashing.

With that said, it finally stopped spinning and ultimately ended with an error "ERR_CONNECTION_RESET". the global HTTPERR log states

2023-05-25 20:11:32 ::1%0 61840 ::1%0 80 HTTP/1.1 GET / - - - 2 Connection_Abandoned_By_ReqQueue AzureNamingTool TCP

I'm at a loss here. With that said I understand this is likely nothing to do with the ANT but the system itself so this isn't the forum for support. I appreciate your help thus far though.

from cloudadoptionframework.

mcdonamw avatar mcdonamw commented on June 30, 2024

AHA! It's working. The crash of w3wp.exe/coreclr.dll lead me down a road of permissions for the App Pool on the website directory. I had added it but with read/execute only. I changed it to modify permissions, and the site came up instantly. Ugh, really wish all this was documented LOL.

from cloudadoptionframework.

mcdonamw avatar mcdonamw commented on June 30, 2024

This can be closed as I was able to work through and get this up and running. Thanks for your help @BryanSoltis

from cloudadoptionframework.

BryanSoltis avatar BryanSoltis commented on June 30, 2024

Glad you got it running! Definitely let us know if you run into any more issues.

Bryan

from cloudadoptionframework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.