Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
This can be closed as I was able to work through and get this up and running. Thanks for your help @BryanSoltis
from cloudadoptionframework.
Glad you got it running! Definitely let us know if you run into any more issues.
Bryan
from cloudadoptionframework.
Related Issues (20)
- Import Custom Components from JSON file HOT 2
- Specified delimeter is not allowed for "Compute/virtualMachines - Windows (vm)" HOT 4
- AzNamingTool - New feature request: Add componet of type free text similar with instances HOT 2
- AzureNamingTool: Globally optional in version 2.5.0 does not apply when generating multiple resource type names HOT 2
- AzNaming Tool - Option to return also expanded resourceName using API HOT 3
- AzNamingTool - Unable to generate name using rest api for optional custom component HOT 2
- When Running the Command docker build -t azurenamingtool . from Linux Server an Error Showed up like nu1301 unable to load the service index for source HOT 6
- How to Make AzureNamingTool to Listen HTTPS Port HOT 8
- Backing up all configuration and data from AzureNamingTool HOT 2
- AzNamingTool - New feature - ReadOnlyApiKey HOT 1
- This repo is missing important files
- HTTP ERROR 500 HOT 1
- Inconsistent Bootstrap reference HOT 2
- Generate screen autocomplete HOT 1
- Validate resource names HOT 1
- Is there a way of auto using the next instance number available HOT 4
- naming & tagging convention template - Naming convention inconsistencies HOT 4
- Error while updating filepath parameter [azure-virtual-machine-cost-estimator.pbix] HOT 2
- Cannot access blob storage in azure-virtual-machine-cost-estimator.pbix HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudadoptionframework.