简体   繁体   English

运行 razor 托管页面,blazor web 程序集,IIS 上的应用程序 10

[英]Running razor pages hosted, blazor web assembly, application on IIS 10

I have created a razor pages application which hosts several blazor wasm components on various pages.我创建了一个 razor 页面应用程序,它在各个页面上托管了几个 blazor wasm 组件。 It runs perfectly okay in visual studio with no errors reported in the browser developer tools console, but when I uploaded the published application to a new aws ec2 instance, it returns a 500 error.它在 visual studio 中运行完美,在浏览器开发人员工具控制台中没有报告错误,但是当我将已发布的应用程序上传到新的 aws ec2 实例时,它返回 500 错误。 Is this a .net core, IIS or AWS problem, please?请问这是 .net 核心、IIS 还是 AWS 问题?

I had a problem with new AWS instances running plain old razor pages applications.我在运行普通旧 razor 页面应用程序的新 AWS 实例时遇到问题。 Did you install the.Net core hosting bundle?您是否安装了 .Net 核心托管包?

https://do.net.microsoft.com/en-us/download/do.net/thank-you/runtime-as.netcore-6.0.3-windows-hosting-bundle-installer https://do.net.microsoft.com/en-us/download/do.net/thank-you/runtime-as.netcore-6.0.3-windows-hosting-bundle-installer

It fixed my 500s straight away.它立即修复了我的 500s。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当应用程序托管在 windows VM 中的 IIS 上时,无法将文件复制到 Azure 文件共享安装的驱动器 - Not able to copy file to Azure file share mounted drive when application hosted on IIS in windows VM 对于 Azure 托管 Static Web App (Blazor) 为什么在从移动浏览器查看 URL 时 RedirectURI 和 PostLogoutRedirectUri 不起作用 - For a Azure hosted Static Web App (Blazor) why does RedirectURI and PostLogoutRedirectUri not work when the URL is viewed from a mobile browser 当托管在与应用程序本身不同的域时,如何为 web 组件获取 HTML 和 CSS 文件? - How to fetch HTML and CSS files for web components when hosted on a different domain than the application itself? 为什么在托管模式下运行 GWT App Engine 应用程序时出现 ClassNotPersistableException? - Why do I get ClassNotPersistableException while running GWT App Engine application in hosted mode? C# Razor 页 上传文件到 Azure - C# Razor Pages Uploadin Files to Azure Google Cloud IAP:如何从托管在单独的 Firebase 项目上的 web 应用程序访问 App Engine API(受 IAP 保护)? - Google Cloud IAP: How to access App Engine API (protected by IAP) from a web application hosted on a separate Firebase project? 使用自托管代理运行 python 脚本 - Running python script with self hosted agent 上传 Web API 到 Azure 使得 886803227288 Web App 无法访问 - Uploading Web API to Azure makes Blazor Web App not accessible React Js 应用程序可以托管在 S3 存储桶上吗 - Can React Js application be hosted on S3 bucket 如何在 Hosted Blazor WebASM 中将自定义基于权限的授权与 MicrosoftIdentity/MSAL 相结合 - How to combine custom permission-based authorization with MicrosoftIdentity/MSAL in Hosted Blazor WebASM
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM