ASP。NET网站显示503项服务在成功发布后不可用

时间:2021-04-08 10:26:18

Every time I try to publish a website, it runs fine but when the website opens up it gives me a,

每次我尝试发布一个网站,它都运行得很好但是当网站开放时,它会给我一个,

"HTTP Error 503. The service is unavailable."

“HTTP 503错误。服务不可用。”

Everywhere I look on the internet talks about it being my application pool but that seems to be running fine. I think it may be my web.config file but I'm not entirely sure.

我在网上看到的每一个地方都在谈论它是我的应用程序池,但它似乎运行得很好。我想可能是我的网络。配置文件,但我不完全确定。

PLEASE can someone help me.

有人能帮我吗?

"PICTURE OF ERROR BELOW"

“图片下面的错误”

ASP。NET网站显示503项服务在成功发布后不可用

2 个解决方案

#1


1  

Make absolute sure the App Pool is running

确保应用程序池正在运行

Goto WinKey+R (Start > Run) type in InetMgr, press enter. Left side, Connections, expand your computer or the server in question. Select Application pools. Start all pools that have their "Status" as Stopped.

后藤WinKey+R(启动>运行)类型在InetMgr,按enter。左边,连接,扩展你的计算机或相关的服务器。选择应用程序池。启动所有已停止其“状态”的池。

Make sure the site is set to the correct pool

确保该站点被设置为正确的池。

Not all sites are assigned to the default application pool, in this case, in the left side expand sites, find your site, expand it. In the right column, click Basic configurations. Edit the application pool there, go back to the first block and make sure your newly assigned Application Pool is running.

并不是所有的站点都被分配到默认的应用程序池中,在本例中,在左侧展开站点,找到您的站点,展开它。在右边的列中,单击基本配置。编辑那里的应用程序池,回到第一个块,确保新分配的应用程序池正在运行。

Test it

测试它

Select your site again, In the right side, there is a Browse site group, click on Browse *:80 (or something like that, this should do it).

再次选择您的站点,在右边,有一个浏览站点组,单击Browse *:80(或者类似的东西,应该这样做)。

Check permissions on site's folder.

检查网站文件夹的权限。

Go to your site folder and give full permission to NETWORK SERVICE.

进入你的网站文件夹,并给予充分的许可网络服务。

Make sure Application Pool service is not disabled in windows services.

确保windows服务中没有禁用应用程序池服务。

If everything else fails, go to Services.msc and set the service related to your app pool to Automatic (maybe you or someone disabled it for some reason, who knows).

如果其他一切都失败了,请转到Services。将与应用程序池相关的服务设置为Automatic(也许你或某人出于某种原因禁用了它,谁知道呢)。

Reinstall IIS

重新安装IIS

Go to Control panel > Programs and resources > Install Windows Resources, find everything related to .NET, ASP.NET and install. Check all leftover boxes from IIS and subselects. If this fails, uninstall it completely then install it again.

到控制面板>程序和资源>安装Windows资源,找到一切有关。net, ASP。净和安装。检查IIS和子选择器中所有剩余的框。如果失败,完全卸载,然后再次安装。

Let us know if any of these work.

如果有任何工作,请告诉我们。

#2


0  

This is most times caused by Application pool which has been disabled or because the application pool identity is invalid.

这主要是由于应用程序池被禁用或应用程序池标识无效引起的。

  • Go too IIS > hostname > Application Pools (Observe the Application is stopped)
  • Go too IIS >主机名>应用程序池(观察应用程序已停止)
  • Right click and go to Advance Settings
  • 右击并进入高级设置
  • On Identity Select an Identity Pool from the drop-down list (possibly change the identity already selected by default)
  • 在Identity上从下拉列表中选择一个标识池(可能更改默认选中的标识)
  • Restart the Application pool
  • 重新启动应用程序池

To set up an Identity Pool to select from follow this link

要设置一个标识池以从该链接中进行选择

#1


1  

Make absolute sure the App Pool is running

确保应用程序池正在运行

Goto WinKey+R (Start > Run) type in InetMgr, press enter. Left side, Connections, expand your computer or the server in question. Select Application pools. Start all pools that have their "Status" as Stopped.

后藤WinKey+R(启动>运行)类型在InetMgr,按enter。左边,连接,扩展你的计算机或相关的服务器。选择应用程序池。启动所有已停止其“状态”的池。

Make sure the site is set to the correct pool

确保该站点被设置为正确的池。

Not all sites are assigned to the default application pool, in this case, in the left side expand sites, find your site, expand it. In the right column, click Basic configurations. Edit the application pool there, go back to the first block and make sure your newly assigned Application Pool is running.

并不是所有的站点都被分配到默认的应用程序池中,在本例中,在左侧展开站点,找到您的站点,展开它。在右边的列中,单击基本配置。编辑那里的应用程序池,回到第一个块,确保新分配的应用程序池正在运行。

Test it

测试它

Select your site again, In the right side, there is a Browse site group, click on Browse *:80 (or something like that, this should do it).

再次选择您的站点,在右边,有一个浏览站点组,单击Browse *:80(或者类似的东西,应该这样做)。

Check permissions on site's folder.

检查网站文件夹的权限。

Go to your site folder and give full permission to NETWORK SERVICE.

进入你的网站文件夹,并给予充分的许可网络服务。

Make sure Application Pool service is not disabled in windows services.

确保windows服务中没有禁用应用程序池服务。

If everything else fails, go to Services.msc and set the service related to your app pool to Automatic (maybe you or someone disabled it for some reason, who knows).

如果其他一切都失败了,请转到Services。将与应用程序池相关的服务设置为Automatic(也许你或某人出于某种原因禁用了它,谁知道呢)。

Reinstall IIS

重新安装IIS

Go to Control panel > Programs and resources > Install Windows Resources, find everything related to .NET, ASP.NET and install. Check all leftover boxes from IIS and subselects. If this fails, uninstall it completely then install it again.

到控制面板>程序和资源>安装Windows资源,找到一切有关。net, ASP。净和安装。检查IIS和子选择器中所有剩余的框。如果失败,完全卸载,然后再次安装。

Let us know if any of these work.

如果有任何工作,请告诉我们。

#2


0  

This is most times caused by Application pool which has been disabled or because the application pool identity is invalid.

这主要是由于应用程序池被禁用或应用程序池标识无效引起的。

  • Go too IIS > hostname > Application Pools (Observe the Application is stopped)
  • Go too IIS >主机名>应用程序池(观察应用程序已停止)
  • Right click and go to Advance Settings
  • 右击并进入高级设置
  • On Identity Select an Identity Pool from the drop-down list (possibly change the identity already selected by default)
  • 在Identity上从下拉列表中选择一个标识池(可能更改默认选中的标识)
  • Restart the Application pool
  • 重新启动应用程序池

To set up an Identity Pool to select from follow this link

要设置一个标识池以从该链接中进行选择