<%= error.stack %>diff --git a/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_acr_task/views/index.ejs b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_acr_task/views/index.ejs new file mode 100644 index 00000000000..7b7a1d6dee0 --- /dev/null +++ b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_acr_task/views/index.ejs @@ -0,0 +1,11 @@ + + + +
Welcome to <%= title %>
+ + diff --git a/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_buildpack/HelloWorldApp.csproj b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_buildpack/HelloWorldApp.csproj new file mode 100644 index 00000000000..35ad5ee2ea9 --- /dev/null +++ b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_buildpack/HelloWorldApp.csproj @@ -0,0 +1,13 @@ +
+ Request ID: @Model.RequestId
+
+ Swapping to the Development environment displays detailed information about the error that occurred. +
++ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +
diff --git a/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_buildpack/Pages/Error.cshtml.cs b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_buildpack/Pages/Error.cshtml.cs new file mode 100644 index 00000000000..c0939d66084 --- /dev/null +++ b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_buildpack/Pages/Error.cshtml.cs @@ -0,0 +1,27 @@ +using System.Diagnostics; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace HelloWorldApp.Pages; + +[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] +[IgnoreAntiforgeryToken] +public class ErrorModel : PageModel +{ + public string? RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + private readonly ILoggerLearn about building Web apps with ASP.NET Core.
+Use this page to detail your site's privacy policy.
diff --git a/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_buildpack/Pages/Privacy.cshtml.cs b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_buildpack/Pages/Privacy.cshtml.cs new file mode 100644 index 00000000000..3210038665f --- /dev/null +++ b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_buildpack/Pages/Privacy.cshtml.cs @@ -0,0 +1,19 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace HelloWorldApp.Pages; + +public class PrivacyModel : PageModel +{ + private readonly ILogger
+ Request ID: @Model.RequestId
+
+ Swapping to the Development environment displays detailed information about the error that occurred. +
++ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +
diff --git a/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_dockerfile/Pages/Error.cshtml.cs b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_dockerfile/Pages/Error.cshtml.cs new file mode 100644 index 00000000000..5f4c7bd76e2 --- /dev/null +++ b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_dockerfile/Pages/Error.cshtml.cs @@ -0,0 +1,27 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; +using System.Diagnostics; + +namespace TestWebApp202305.Pages +{ + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + [IgnoreAntiforgeryToken] + public class ErrorModel : PageModel + { + public string? RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + private readonly ILoggerLearn about building Web apps with ASP.NET Core.
+Use this page to detail your site's privacy policy.
diff --git a/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_dockerfile/Pages/Privacy.cshtml.cs b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_dockerfile/Pages/Privacy.cshtml.cs new file mode 100644 index 00000000000..c21837888a1 --- /dev/null +++ b/src/containerapp/azext_containerapp/tests/latest/data/source_built_using_dockerfile/Pages/Privacy.cshtml.cs @@ -0,0 +1,19 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace TestWebApp202305.Pages +{ + public class PrivacyModel : PageModel + { + private readonly ILoggerLearn about building + Web apps with ASP.NET Core.
\r\nLearn about building + Web apps with ASP.NET Core.
\r\nLearn about building + Web apps with ASP.NET Core.
\r\nLearn about building + Web apps with ASP.NET Core.
\r\nLearn + about building Web apps + with ASP.NET Core.
\r\n