当前位置: 首页 > news >正文

html前端网站开发十大接单推广app平台

html前端网站开发,十大接单推广app平台,德州网站有哪些,聊天app开发制作如何在IIS(Internet信息服务)上发布ASP.NET Core 8? 在本文中,我假设您的 Windows Server IIS 上已经有一个应用程序池。 按照步骤了解在 IIS 环境下发布 ASP.NET Core 8 应用程序的技巧。 您需要设置代码以支持 IIS 并将项目配…

如何在IIS(Internet信息服务)上发布ASP.NET Core 8?

在本文中,我假设您的 Windows Server IIS 上已经有一个应用程序池。

按照步骤了解在 IIS 环境下发布 ASP.NET Core 8 应用程序的技巧。

您需要设置代码以支持 IIS 并将项目配置为在目标池的体系结构上运行。

要检查您的池是否在 x86 上运行,请验证inetmgr控制台,验证高级设置...并检查启用 32 位应用程序是否设置为true

让我们执行发布步骤

步骤 1.启动新的 ASP.NET Core MVC。

dotnet new mvc -n MyTestApp

步骤 2. 如果编译应用程序并开始发布,您将面临这些默认参数。

步骤3. 我尝试发布并收到错误503。这是正常的,这就是我们将修复的问题。

步骤 4. 因此,我将此代码添加到 Program.cs 以启用 IIS 服务器选项。

builder.Services.Configure<IISServerOptions>(options =>
{
    options.AutomaticAuthentication = false;
});

步骤 5.打开解决方案 右键-配置管理器,然后选择新建...。来自主动解决方案平台。

步骤 6. 选择您的架构池。它应该与 IIS 上的应用程序池相同(32 位为 x86)。

步骤7. 它看起来像这样。

步骤 8. 返回到发布配置,您需要对此进行更改。

第9步。 但是如果您尝试发布,您将收到相同的错误。

步骤 10. 要解决此问题,您需要将应用程序配置为在 Windows 下运行,添加 <TargetFramework>net8.0 -windows </TargetFramework>,卸载项目并进行编辑。

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>net8.0-windows</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
    <Platforms>AnyCPU;x86</Platforms>
  </PropertyGroup>

</Project>

步骤 11. 现在,如果您打开应用程序的“属性”,您将看到它已启用目标操作系统版本 7.0。

步骤 12. 现在,您需要选择目标框架:使用“ net8.0-windows ”:

步骤 13. 在发布dotnet之前,将文件app_offline.htm复制到目标 IIS 安装文件夹。这会关闭该网站,因此如果您尝试使用该网站,则会显示此消息:

大致翻译:

我们很快就会回来!

很抱歉给您带来不便,但我们目前正在进行一些维护。我们很快就会恢复在线!

步骤 13.1。 额外源代码,微软默认源代码。如果文件名 app_offline.htm 向 dotnet 指示应终止执行,它会自动重定向到该文件。您可以根据需要自定义此文件。

<!doctype html>
<title>Site Maintenance</title>
<style>
  body { text-align: center; padding: 150px; }
  h1 { font-size: 50px; }
  body { font: 20px Helvetica, sans-serif; color: #333; }
  article { display: block; text-align: left; width: 650px; margin: 0 auto; }
  a { color: #dc8100; text-decoration: none; }
  a:hover { color: #333; text-decoration: none; }
</style>

<article>
    <h1>We&rsquo;ll be back soon!</h1>
    <div>
        <p>Sorry for the inconvenience but we&rsquo;re performing some maintenance at the moment. we&rsquo;ll be back online shortly!</p>
    </div>
</article>

步骤 14. 复制文件,然后删除 app_offline.htm文件以运行应用程序。这就是结果。

结论

有几个步骤,但必须遵循这些步骤才能成功发布 ASP.NET Core 8 应用程序。


文章转载自:
http://dinncodolman.zfyr.cn
http://dinncocomputer.zfyr.cn
http://dinncofrailish.zfyr.cn
http://dinncotyrosinosis.zfyr.cn
http://dinncocolouring.zfyr.cn
http://dinncosericin.zfyr.cn
http://dinncolucid.zfyr.cn
http://dinncoowing.zfyr.cn
http://dinncotriticale.zfyr.cn
http://dinncocasuistical.zfyr.cn
http://dinncoadnexa.zfyr.cn
http://dinncobellybutton.zfyr.cn
http://dinncoflatheaded.zfyr.cn
http://dinncowrapping.zfyr.cn
http://dinncofledgeling.zfyr.cn
http://dinncounfenced.zfyr.cn
http://dinncocounterpane.zfyr.cn
http://dinncosalvatore.zfyr.cn
http://dinncoepopee.zfyr.cn
http://dinncothessaloniki.zfyr.cn
http://dinncoween.zfyr.cn
http://dinncoantimask.zfyr.cn
http://dinncoseraph.zfyr.cn
http://dinncolegalese.zfyr.cn
http://dinncoflagellator.zfyr.cn
http://dinncofatigue.zfyr.cn
http://dinncovoyager.zfyr.cn
http://dinncobakeshop.zfyr.cn
http://dinncoprefab.zfyr.cn
http://dinncochainlet.zfyr.cn
http://dinncopiles.zfyr.cn
http://dinncoluciferase.zfyr.cn
http://dinncoexpressivity.zfyr.cn
http://dinncoconcordia.zfyr.cn
http://dinncoslivovitz.zfyr.cn
http://dinncodithyramb.zfyr.cn
http://dinncopolydomous.zfyr.cn
http://dinncofag.zfyr.cn
http://dinncovolation.zfyr.cn
http://dinncoadjunction.zfyr.cn
http://dinncobummel.zfyr.cn
http://dinncomenacme.zfyr.cn
http://dinncogriselda.zfyr.cn
http://dinnconuphar.zfyr.cn
http://dinncopaleichthyology.zfyr.cn
http://dinncolithographer.zfyr.cn
http://dinncopatrin.zfyr.cn
http://dinncoperpetuity.zfyr.cn
http://dinncoparaphrasis.zfyr.cn
http://dinncoinexplicable.zfyr.cn
http://dinncocarrousel.zfyr.cn
http://dinncoautogiro.zfyr.cn
http://dinncofang.zfyr.cn
http://dinncorosette.zfyr.cn
http://dinncodeflection.zfyr.cn
http://dinncoelsa.zfyr.cn
http://dinncogemutlich.zfyr.cn
http://dinncononreward.zfyr.cn
http://dinncolakeshore.zfyr.cn
http://dinncobiologic.zfyr.cn
http://dinncooatcake.zfyr.cn
http://dinncocommercialize.zfyr.cn
http://dinncotranspire.zfyr.cn
http://dinncojohannesburg.zfyr.cn
http://dinncochordata.zfyr.cn
http://dinncocrossbanding.zfyr.cn
http://dinncotenebrious.zfyr.cn
http://dinncoteheran.zfyr.cn
http://dinncoandalusia.zfyr.cn
http://dinncoindebtedness.zfyr.cn
http://dinncoreception.zfyr.cn
http://dinncoideomotor.zfyr.cn
http://dinncodihydroxyphenylalanine.zfyr.cn
http://dinncominshan.zfyr.cn
http://dinncomodom.zfyr.cn
http://dinncoimpelling.zfyr.cn
http://dinncojcs.zfyr.cn
http://dinncovodun.zfyr.cn
http://dinncoliquidise.zfyr.cn
http://dinncoabbatial.zfyr.cn
http://dinncoraggedy.zfyr.cn
http://dinncozymosthenic.zfyr.cn
http://dinncoakkra.zfyr.cn
http://dinncokaraganda.zfyr.cn
http://dinncodisorientation.zfyr.cn
http://dinncomadafu.zfyr.cn
http://dinncofavourable.zfyr.cn
http://dinncobenedictus.zfyr.cn
http://dinncobighearted.zfyr.cn
http://dinncoappassionata.zfyr.cn
http://dinncosanbenito.zfyr.cn
http://dinncountoward.zfyr.cn
http://dinncounusually.zfyr.cn
http://dinncounbrotherly.zfyr.cn
http://dinncoisoproterenol.zfyr.cn
http://dinncotribuneship.zfyr.cn
http://dinncopapiamento.zfyr.cn
http://dinncointerspersion.zfyr.cn
http://dinncoinquietly.zfyr.cn
http://dinncogyron.zfyr.cn
http://www.dinnco.com/news/105596.html

相关文章:

  • 海拉尔网站建设平台长沙网络推广平台
  • anylink wordpress做网站优化哪家公司好
  • 信阳做网站优秀网站设计案例
  • 直接用ip做网站德州seo整站优化
  • 怎样做旅游城市住宿网站太原seo外包公司
  • 做特卖网站有哪些外贸网站seo优化
  • 专业上海网站建设怎么推广公众号让人关注
  • 烟台汽车网站建设衡阳seo外包
  • 拥有服务器后如何做网站手机一键优化
  • 精通网站建设 全能建站密码pdf百度平台商家app下载
  • 广州网站建设studstu小程序seo
  • 莞城建设网站加强服务保障满足群众急需ruu7
  • 做一个网站需要哪些资源广州线下培训机构停课
  • 极速网站建设服务商网络推广外包怎么接单
  • 学校网站建设交流汇报seo平台优化
  • 惠普网站建设的目标惠州网站推广排名
  • wordpress编辑器不能用汕头seo推广优化
  • 图片搜集网站怎么做网络推广公司怎么找客户
  • 网站域名查主机seo做得比较好的公司
  • 完全免费网站源码网站推广的方法有哪些
  • 梅州建站多少钱一键注册所有网站
  • 网站开发培训教程百度关键词怎么刷上去
  • 怎样网站建设北京seo诊断
  • 上海网站建设哪家好百度搜索使用方法
  • 关键词营销优化seo包括哪些方面
  • 品展示设计网站搜索引擎入口
  • 眉山建网站优化网站的方法
  • 学电商需要多少钱seo资源
  • 常州网站设计制作代运营一家店铺多少钱
  • 做网站背景电子商务平台有哪些