Hello,
I am a student that is currently struggling financially and wants to learn enough skills to market himself aside his apprenticeship behind the scenes as a sysadmin guy.
So basically, I created a test project and test website that has used this example:
https://help.monsterasp.net/books/deploy/page/how-to-deploy-net-core-web-api-with-swagger-using-visual-studio
I called the test website "testing-deployment.tryasp.net"
The project I published was a .net project created via visual studio with .net 8, then published it after importing the profile and apply it to the profile for publishing.
Entering swagger/index.html after the website's url returns a 404 Error.
So accessing "testing-deployment.tryasp.net/swagger/index.html" returns an not found error and I can't access even the api section of the default "weatherforecastapi".
This is the cs.proj file:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>
</Project>
This is the sln file:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.35122.118
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{37842C59-86D4-42A6-9BC9-0306ACEDA22A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{37842C59-86D4-42A6-9BC9-0306ACEDA22A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{37842C59-86D4-42A6-9BC9-0306ACEDA22A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{37842C59-86D4-42A6-9BC9-0306ACEDA22A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{37842C59-86D4-42A6-9BC9-0306ACEDA22A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D93E6021-4FCF-46F0-868E-CDFF5617EE3E}
EndGlobalSection
EndGlobal
I would love to get guidance on this, since I have a minimal Web-Api project that I want to progress on to enable my passion to create applications.
Thank you in advance.
Please let me know if I missed any information that I should provide. It helps me learn to be a better customer, if not a better developer.