简体   繁体   English

HTTP 错误 503。服务不可用。 应用程序池在访问网站时停止

[英]HTTP Error 503. The service is unavailable. App pool stops on accessing website

There are number of posts on this and I have tried many a things by now.关于这个有很多帖子,我现在已经尝试了很多东西。 But to no avail.但无济于事。 Myself a Winforms Developer basically, started working on this Web stuff few days back as my company is taking Web initiatives.我自己基本上是一个 Winforms 开发人员,几天前开始研究这个 Web 的东西,因为我的公司正在采取 Web 计划。

I have a ASP.Net project and I want to host it on local IIS. In Project properties -> Web settings I chose Use Local IIS Server and gave a url as localhost/MyApp .我有一个 ASP.Net 项目,我想将它托管在本地 IIS 上。在Project properties -> Web设置中,我选择了Use Local IIS Server并将 url 作为localhost/MyApp I tried accessing it on my firefox browser and received error as HTTP Error 503. The service is unavailable.我尝试在我的 firefox 浏览器上访问它并收到错误HTTP Error 503. The service is unavailable.

Previously I got many other errors and I one by one fixed them all.以前我有很多其他错误,我都一一修复了。 But struck with this one.但是被这个击中了。 These are the settings I have in my project这些是我在项目中的设置

  1. Application Pool set to ASP.Net v4.0 Classic应用程序池设置为 ASP.Net v4.0 Classic
  2. App Pool Enable 32 bit Application property is true应用程序池Enable 32 bit Application属性为真
  3. App Pool is started应用程序池已启动
  4. Project build property set to Any CPU for Target framework项目构建属性设置为目标框架的Any CPU

But I would like to mention a weird behavior.但我想提一个奇怪的行为。 Following is something that I am facing以下是我面临的事情

  1. Application Pool is Started应用程序池已启动
  2. I try to access my local website (by giving url as localhost/MyApp )我尝试访问我的本地网站(通过将 url 作为localhost/MyApp提供)
  3. I receive the error as HTTP Error 503. The service is unavailable我收到错误HTTP Error 503. The service is unavailable
  4. Application Pool is Stopped应用程序池已停止

I have seen following link and I have already tried it.我看到了以下链接,并且已经尝试过了。 For the above behavior I reached here .对于上述行为,我到达了这里 According to this link, Computer name should not have .根据此链接,计算机名称不应包含. in it.在里面。 I don't have any .我没有. in my Computer name but do have - in it.在我的计算机名称中,但确实有-在里面。 Also my domain name contains .我的域名也包含. in it.在里面。 Moreover I can't change these settings as its my office laptop and our TFS settings are bound to our Domain and Computer Names.此外,我无法更改这些设置,因为它是我办公室的笔记本电脑,我们的 TFS 设置绑定到我们的域名和计算机名。

Can anyone help me to understand whats happening?任何人都可以帮助我了解发生了什么事吗? Please guide me.请指导我。 Thanks.谢谢。

Edit编辑

I have following code in Global.asax .我在Global.asax中有以下代码。 Application_BeginRequest method is empty in same file. Application_BeginRequest方法在同一文件中为空。

protected override void Application_Start(object sender, EventArgs e)
{
    base.Application_Start(sender, e);
    String _path = String.Concat(System.AppDomain.CurrentDomain.RelativeSearchPath, ";",
                                         System.Environment.GetEnvironmentVariable("PATH"));
    System.Environment.SetEnvironmentVariable("PATH", _path, EnvironmentVariableTarget.Process);
    MyAppLog.Initialize();
    MyAppLog.WriteMessage("Application Started");
}

Update更新

As per the suggestions in Comment, I am able to run the website from Cassini.根据评论中的建议,我可以从 Cassini 运行该网站。

One possible reason this might happen is that the Application Pool in IIS is configured to run under some custom account and this account either doesn't exist or a wrong password has been provided, or the password has been changed.发生这种情况的一个可能原因是 IIS 中的应用程序池被配置为在某个自定义帐户下运行,而该帐户不存在或提供了错误的密码,或者密码已更改。 Look at the advanced properties of the Application Pool in IIS for which account it uses.查看IIS中应用程序池的高级属性,它使用的是哪个帐户。

Also the Event Log might contain more information as to why the Application Pool is stopping immediately on the first request.此外,事件日志可能包含有关应用程序池为何在第一次请求时立即停止的更多信息。

在此处输入图片说明

Ok, I have another solution for one specific case: if you use WINDOWS 10, and you updated it recently (with Anniversary Update package) you need to follow the steps below:好的,我有针对一个特定情况的另一种解决方案:如果您使用 WINDOWS 10,并且您最近更新了它(使用周年更新包),您需要按照以下步骤操作:

  1. Check your Windows Event Viewer - press Win+R and type: eventvwr , then press ENTER.检查您的Windows Event Viewer - 按 Win+R 并键入: eventvwr ,然后按 ENTER。
  2. On the left side of Windows Event Viewer click on Windows Logs -> Application .Windows Event Viewer的左侧,单击Windows Logs -> Application
  3. Now you need to find some ERRORS for source IIS-W3SVC-WP in middle window.现在您需要在中间窗口中找到源IIS-W3SVC-WP一些错误。
  4. Probably you will see message like:可能你会看到这样的消息:

The Module DLL >>path-to-DLL<< failed to load.模块 DLL >>path-to-DLL<< 加载失败。 The data is the error.数据是错误的。

  1. You have to go to Control Panel -> Program and Features and depending on which dll cannot be load you need to repair another module:您必须转到Control Panel -> Program and Features ,根据无法加载的 dll,您需要修复另一个模块:
    • for rewrite.dll - find IIS URL Rewrite Module 2 and click Change -> Repair对于rewrite.dll - 找到IIS URL Rewrite Module 2并单击Change -> Repair
    • for aspnetcore.dll - find Microsoft .NET Core 1.0.0 - VS 2015 Tooling ... and click Change -> Repair .对于aspnetcore.dll - 找到Microsoft .NET Core 1.0.0 - VS 2015 Tooling ...并点击Change -> Repair
  2. Restart your computer.重启你的电脑。

For my situation is that my login password changed, while the application pool still uses the old one.我的情况是我的登录密码改变了,而应用程序池仍然使用旧的。 So just click the "Advanced Settings" of your application pool and reset your "Identity".因此,只需单击应用程序池的“高级设置”并重置您的“身份”。

I was facing the same problem, and debugged it using the event logs.我遇到了同样的问题,并使用事件日志对其进行了调试。 First it said that : "The description for Event ID 5059 from source Microsoft-Windows-WAS cannot be found".首先它说:“无法找到来自 Microsoft-Windows-WAS 源的事件 ID 5059 的描述”。

I then turned on WAS using turn windows features on/off .然后我使用turn windows features on/off打开 WAS。 Then i saw this in eventvwr "Microsoft-Windows-DistributedCOM cannot be found".然后我在 eventvwr “找不到 Microsoft-Windows-DistributedCOM”中看到了这一点。

Finally I gave up and deleted the App Pool (that used to stop on accessing the website) and created it again, as it is.最后我放弃并删除了应用程序池(用于停止访问网站)并重新创建它,原样。 This resolved the problem.这解决了问题。

Most of Time, it was occured due to AppPool Setting.大多数情况下,它是由于 AppPool 设置而发生的。

Check the following to resolve this检查以下内容以解决此问题

  1. Check Apppool service is running.检查 Apppool 服务是否正在运行。
  2. Check Identity of AppPool.检查 AppPool 的身份。
  3. Enter the new password if it has changed for that identity.如果该身份已更改,请输入新密码。

The following Images show these setting in IIS以下图像显示了 IIS 中的这些设置

在此处输入图片说明

For anyone coming here with Windows 10 and after updating them to Anniversary update, please check this link, it helped me:对于使用 Windows 10 并在将它们更新为周年更新后来到这里的任何人,请查看此链接,它对我有帮助:

https://orcharddojo.net/blog/troubleshooting-iis-apppool-crashes-status-503-after-windows-10-anniversary-update https://orcharddojo.net/blog/troubleshooting-iis-apppool-crashes-status-503-after-windows-10-anniversary-update

In case link goes down: If your Event log shows that aspnetcore.dll, rewrite.dll (most often, but could be others as well) failed to load, you have to repair the missing items.如果链接断开:如果您的事件日志显示 aspnetcore.dll、rewrite.dll(最常见,但也可能是其他)无法加载,您必须修复丢失的项目。

Here are two specific issues we've experienced so far and how to fix them, but you may bump into completely different ones:以下是我们迄今为止遇到的两个具体问题以及如何解决它们,但您可能会遇到完全不同的问题:

"C:\WINDOWS\system32\inetsrv\rewrite.dll" (reference)
    Go to "Programs and Features" (Win+X, F) and repair "IIS URL Rewrite Module 2".
"C:\WINDOWS\system32\inetsrv\aspnetcore.dll" (reference)
    Go to "Programs and Features" (Win+X, F) and repair "Microsoft .NET Core 1.0.0 - VS 2015 Tooling ...".

If you have McAfee HIPS and if you see the following error in event viewer application log:如果您有 McAfee HIPS 并且在事件查看器应用程序日志中看到以下错误:

The Module DLL C:\\Windows\\System32\\inetsrv\\HipIISEngineStub.dll failed to load.模块 DLL C:\\Windows\\System32\\inetsrv\\HipIISEngineStub.dll 加载失败。
The data is the error.数据是错误的。

Then the following resolved the issue in my case: https://kc.mcafee.com/corporate/index?page=content&id=KB72677&actp=LIST然后以下解决了我的问题: https : //kc.mcafee.com/corporate/index?page=content&id=KB72677&actp=LIST

Quote from the page:从页面引用:

  1. Click Start, Run, type explorer and click OK.单击开始,运行,键入资源管理器,然后单击确定。
  2. Navigate to: %windir%\\system32\\inetsrv\\config导航到:%windir%\\system32\\inetsrv\\config
  3. Open the file applicationHost.config as Administrator for editing in Notepad.以管理员身份打开文件 applicationHost.config 以在记事本中进行编辑。
  4. Edit the <globalModules> section and remove the following line:编辑 <globalModules> 部分并删除以下行:
    <add name="MfeEngine" image="%windir%\\System32\\inetsrv\\HipIISEngineStub.dll" /> <add name="MfeEngine" image="%windir%\\System32\\inetsrv\\HipIISEngineStub.dll" />

  5. Edit the <modules> section and remove the following line:编辑 <modules> 部分并删除以下行:
    <add name="MfeEngine" /> <添加名称="MfeEngine" />

  6. After you have finished editing the applicationHost.config file, save the file, then restart the IIS server using iisreset or by restarting the system.完成对 applicationHost.config 文件的编辑后,保存该文件,然后使用 iisreset 或通过重新启动系统来重新启动 IIS 服务器。

In my case I checked event logs and found error was Cannot read configuration file ' trying to read configuration data from file '\\\\?\\', line number '0'.就我而言,我检查了事件日志,发现错误是无法读取配置文件 ' 试图从文件 '\\\\?\\' 中读取配置数据,行号 '0'。 The data field contains the error code.数据字段包含错误代码。

The error code was 2307.错误代码是 2307。

I deleted all files in C:\\inetpub\\temp\\appPools and restarted the iis.我删除了 C:\\inetpub\\temp\\appPools 中的所有文件并重新启动了 iis。 It fixed the issue.它解决了这个问题。

I had a similar issue.我有一个类似的问题。 I solved it by adding my user to the "Log on as a batch job" policy under "Local Security Policy" > "Local Policies" > "User Rights Assignment".我通过将我的用户添加到“本地安全策略”>“本地策略”>“用户权限分配”下的“作为批处理作业登录”策略来解决它。

When I first time add the service and created the app pool for it.当我第一次添加服务并为其创建应用程序池时。 I did "iisreset" from command prompt, and it worked.我从命令提示符执行了“iisreset”,并且它起作用了。

If you can run the website in Visual Studio debugger, then might be able to see where in your code the application pool is crashing.如果您可以在 Visual Studio 调试器中运行该网站,则可能能够看到应用程序池在您的代码中崩溃的位置。 In my case, it was a function being called recursively an unlimited number of times, and that caused a stack overflow.就我而言,它是一个被无限次递归调用的函数,这导致了堆栈溢出。 Note: the Windows event log and the IIS logs were not helpful to diagnose the problem.注意:Windows 事件日志和 IIS 日志对诊断问题没有帮助。

I was experiencing this error and in my case the cause was that some time ago I modified the user password, and the 503 error didn't appears till I restarted the application pool.我遇到了这个错误,在我的情况下,原因是前段时间我修改了用户密码,直到我重新启动应用程序池才出现 503 错误。

So I fixed it setting the new password on Applications Pools / Advanced Settings / Identity / [...] / Set... / Password / Confirm Password所以我修复了它在应用程序池/高级设置/身份/[...]/设置.../密码/确认密码上设置新密码

I had the same issue with iis 8.5.我在 iis 8.5 上遇到了同样的问题。 After searching the eventViewer under windows Logs-->applications, I realized that I'm having a permission error for the machine.config file of the .net framework located at "C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Config\\machine.config".在windows Logs-->applications下搜索eventViewer后,我发现我对位于“C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319”的.net框架的machine.config文件有权限错误\\Config\\machine.config”。 Giving it a permission for IIS_IUSRS solved my problem (right click the file-->properties-->security-->edit-->add-->IIS_IUSRS)给它一个权限 IIS_IUSRS 解决了我的问题(右键单击文件-->属性-->安全-->编辑-->添加-->IIS_IUSRS)

Just to add to these Anniversary Update issues (thanks Microsoft) if the file you are missing is cgi.dll , ie your Event Viewer has如果您缺少的文件是cgi.dll ,即添加到这些Anniversary Update问题(感谢微软),即您的Event Viewer

The Module DLL C:\WINDOWS\System32\inetsrv\cgi.dll failed to load.  The data is the error.

Then to fix this:然后解决这个问题:

  1. Go to IIS Manager进入IIS Manager
  2. Select the very top row in the Connections panel (typically your PC name)在“ Connections面板中选择最顶行(通常是您的 PC 名称)
  3. At the very bottom of the right panel, under Management , you should have Web Platform Installer在右侧面板的最底部,在Management下,您应该有Web Platform Installer
  4. Once that loads, select Products加载后,选择Products
  5. In the search type in cgi then hit <Enter>cgi的搜索类型中,然后按<Enter>
  6. Select IIS: CGI then click Add on the right and finally Install on the bottom选择IIS: CGI然后点击右边的Add ,最后点击底部的Install
  7. After installing it should force you to restart your PC and you should be fixed.安装后它应该强制您重新启动您的PC,您应该得到修复。

I had a similar issue, all my app pools were stopping whenever a web request was made to them.我遇到了类似的问题,每当向它们发出 Web 请求时,我的所有应用程序池都会停止。 Although I was getting the following error in the Event Viewer:虽然我在事件查看器中收到以下错误:

The worker process for application pool 'appPoolName' encountered an error 'Configuration file is not well-formed XML ' trying to read configuration data from file '\\?\\C:\\inetpub\\temp\\apppools\\appPoolName\\appPoolName.config', line number '3'.应用程序池“appPoolName”的工作进程在尝试从文件“\\?\\C:\\inetpub\\temp\\apppools\\appPoolName\\appPoolName.config”中读取配置数据时遇到错误“配置文件格式不正确的 XML”,行数字“3”。 The data field contains the error code.数据字段包含错误代码。

Which told me that there were errors in the application.config at:这告诉我在 application.config 中有错误:

C:\\Windows\\System32\\inetsrv\\config\\applicationHost.config C:\\Windows\\System32\\inetsrv\\config\\applicationHost.config

In my scenario, I edited the web.config on deploy with an element IIS clearly dislikes, the applicationHost.config scraped the web.config and inserted this bad element and wouldn't resolve until I manually removed it在我的场景中,我在部署时编辑了 web.config,其中包含一个 IIS 明显不喜欢的元素,applicationHost.config 抓取了 web.config 并插入了这个坏元素,并且在我手动删除它之前无法解析

In addition to the steps outlined at this link from Orhan's answer , you may need to additionally remove the native module by going to IIS Manager > Server Root > Modules > Configure Native Modules.除了此链接中 Orhan 的回答中概述的步骤之外,您可能还需要通过转到 IIS 管理器 > 服务器根目录 > 模块 > 配置本机模块来额外删除本机模块。 Select MfeEngine and then select Remove.选择 MfeEngine,然后选择删除。

Changing "Managed Pipeline Mode" from "Classic" to "Integrated" worked for me.将“托管管道模式”从“经典”更改为“集成”对我有用。 It can be changed at Application Pools -> Basic Settings可以在应用程序池 -> 基本设置中更改

To Fix the problem, Follow the steps as I faced the same issue and below solution worked for me要解决此问题,请按照我遇到相同问题时的步骤操作,以下解决方案对我有用

1- Give full Rights or at least read access rights of Folder "C:\\inetpub\\temp" to IIS_IUSRS 1- 将文件夹“C:\\inetpub\\temp”的完全权限或至少读取访问权限授予 IIS_IUSRS

2- also check same rights given to User IIS_IUSRS of folder "C:\\inetpub\\wwwroot". 2- 还要检查授予文件夹“C:\\inetpub\\wwwroot”的用户 IIS_IUSRS 的相同权限。

hope this solution works!希望这个解决方案有效!

Such 503 errors were encountered on our side on Windows Server 2019 while setting up a fresh new Classic ASP website.在设置全新的 Classic ASP 网站时,我们在 Windows Server 2019 上遇到了此类 503 错误。

In fact, in the App Pool, setting " .NET CLR Version " to " No Managed code " caused the App Pool to stops 2 seconds after being started, thus generating WAS 5002 and 5021 errors in the Windows Event Log.实际上,在 App Pool 中,将“ .NET CLR Version ”设置为“ No Managed code ”会导致 App Pool 在启动后 2 秒停止,从而在 Windows 事件日志中产生 WAS 5002 和 5021 错误。

The solution was to put " v4.0 ", even if no .NET is used.解决方案是放置“ v4.0 ”,即使没有使用 .NET。

One possible reason this might happen is that you don't have enough disk space in your server machine.发生这种情况的一个可能原因是您的服务器计算机中没有足够的磁盘空间。 You can find more information in event viewer.您可以在事件查看器中找到更多信息。 if such thing happen, just stop the IIS, clean some free disk space and restart the IIS and then start the App Poll.如果发生这种情况,只需停止 IIS,清理一些可用磁盘空间并重新启动 IIS,然后启动 App Poll。 在此处输入图片说明

I'm late to the party, but the solution that worked for me isn't listed.我参加聚会迟到了,但没有列出对我有用的解决方案。

The solution for me was simply to delete the web site and application pool within IIS, and re-create them .我的解决方案是简单地删除 IIS 中的 web 站点和应用程序池,然后重新创建它们

This is because originally I had create the site/folder first, then installed the dotnet core runtime.这是因为最初我先创建了站点/文件夹,然后安装了 dotnet 核心运行时。 For some reason this failed to allow the site to start up.由于某种原因,这无法让网站启动。

Once re-created, the site came to life with none of the other suggestions being required.重新创建后,该网站无需任何其他建议即可开始使用。

Will this answer Help you?这个答案对你有帮助吗?
If you are receiving the following message in the EventViewer如果您在 EventViewer 中收到以下消息

The Module DLL aspnetcorev2.dll failed to load.模块 DLL aspnetcorev2.dll 加载失败。 The data is the error.数据是错误的。

Then yes this will solve your problem那么是的,这将解决您的问题


To check your event Viewer检查您的事件查看器

  1. press Win+R and type: eventvwr , then press ENTER.按 Win+R 并键入: eventvwr ,然后按 ENTER。
  2. On the left side of Windows Event Viewer click on Windows Logs -> Application .Windows Event Viewer的左侧,单击Windows Logs -> Application
  3. Now you need to find some ERRORS for source IIS-W3SVC-WP in the middle window.现在您需要在中间窗口中找到源IIS-W3SVC-WP一些错误。

if you receiving the previous message error then solution is : 如果您收到上一条消息错误,则解决方案是:

Install Microsoft Visual C++ 2015 Redistributable 86x AND 64X (both of them)安装 Microsoft Visual C++ 2015 Redistributable 86x 和 64X(两者)

Source来源

In my case error message displaed in Windows Event Viewer -> Windows Logs -> Application was "The Module DLL C:\\Windows\\system32\\inetsrv\\rewrite.dll failed to load. The data is the error."在我的情况下,Windows 事件查看器 -> Windows 日志 -> 应用程序中显示的错误消息是“模块 DLL C:\\Windows\\system32\\inetsrv\\rewrite.dll 无法加载。数据是错误。” Uninstalling rewrite module via installer solved the problem.通过安装程序卸载重写模块解决了这个问题。 I wasn't using any rewrite rules so I uninstalled rewrite module.我没有使用任何重写规则,所以我卸载了重写模块。 Reinstalling the module may help the problem as well.重新安装模块也可能有助于解决问题。

I just had this issue on some legacy servers running Windows 2008 R2.我刚刚在一些运行 Windows 2008 R2 的旧服务器上遇到了这个问题。 32bit applications would crash the app pool and return a 503 without hitting the app code. 32 位应用程序会使应用程序池崩溃并返回 503,而不会命中应用程序代码。 The problem seems to be related to .net core module erroneously trying to load the 64bit version of the module even though the 32bit application in question was not a .net core app.该问题似乎与 .net 核心模块错误地尝试加载模块的 64 位版本有关,即使有问题的 32 位应用程序不是.net 核心应用程序。

It seems that IIS still loads the module when figuring out which module to load to service the request and trying to load a 64bit version into a 32bit process is no bueno.在确定要加载哪个模块来为请求提供服务并尝试将 64 位版本加载到 32 位进程中时,IIS 似乎仍然加载该模块不是 bueno。

In the end, I had to uninstall all versions of .net core from the server and reinstall the latest (at this time 3.1.15- we're not using 5 yet).最后,我不得不从服务器上卸载所有版本的 .net core 并重新安装最新版本(此时 3.1.15 - 我们还没有使用 5)。 After that my 32bit apps and .net core apps could coexist on the same server.之后,我的 32 位应用程序和 .net 核心应用程序可以在同一台服务器上共存。

This is the blog post that helped me resolve this after days of banging my head on it.这篇博文帮助我解决了几天后的问题。 Hopefully it helps someone out.希望它可以帮助某人。 Blog post with the solution 包含解决方案的博客文章

授予文件夹“C:\\inetpub”的完全权限 为我工作!

In my case, the web sites displayed "503 Service unavailable" and the application event log showed "...\aspnetcorev2.dll failed to load. The data is the error."就我而言,web 站点显示“503 服务不可用”,应用程序事件日志显示“...\aspnetcorev2.dll 加载失败。数据是错误。” This only happened for IIS sites where where the IIS setting "Enable 32-Bit Applications" was True .这只发生在 IIS 设置“启用 32 位应用程序”为True的 IIS 站点上。 The system was stopping the app pools for these sites, which is what generated the "503 Service unavailable" message when trying to retrieve the site.系统正在停止这些站点的应用程序池,这就是在尝试检索站点时生成“503 服务不可用”消息的原因。

It turns out the path specified in this application event log didn't even exist.事实证明,此应用程序事件日志中指定的路径甚至不存在。 Trying to repair the two "Microsoft.NET Core SDK 2.1.50x" versions installed on the system didn't resolve the issue, nor did installing the latest and only aspnetcorev2.dll that Microsoft seems to have available, nor did uninstalling these SDKs.尝试修复系统上安装的两个“Microsoft.NET Core SDK 2.1.50x”版本并没有解决问题,也没有安装微软似乎可用的最新且唯一的 aspnetcorev2.dll,也没有卸载这些 SDK。

NOTE: Microsoft doesn't even seem to have the installers available anymore for the original v2 ASP.NET Core versions that had been installed on my system.注意:Microsoft 似乎甚至不再提供已安装在我的系统上的原始 v2 ASP.NET Core 版本的安装程序。

What worked: Since I don't have any ASP.NET Core sites on this system, the solution that worked for me was to uninstall all the related DLLs from my system and to remove them from the IIS applicationhost.config file by commenting them out (see aspnetcore.dll failed to load and applicationhost.config file path in IIS 7, 7.5, 8, 8.5 and IIS 10? ).什么有效:由于我在此系统上没有任何 ASP.NET 核心站点,因此对我有用的解决方案是从我的系统中卸载所有相关的 DLL,并通过将它们从 IIS applicationhost.config 文件中将它们注释掉(参见aspnetcore.dll 未能加载applicationhost.config 文件路径在 IIS 7、7.5、8、8.5 和 IIS 10? If you do use a later version of ASP.NET Core, I'd think you could just as well update the references in applicationhost.config [I haven't tried that].如果您确实使用更高版本的 ASP.NET 内核,我认为您也可以更新 applicationhost.config 中的引用 [我没有尝试过]。

Check the log written to [event viewer\Windows Logs\System] node.检查写入 [事件查看器\Windows 日志\系统] 节点的日志。 Source is 'WAS'.来源是“WAS”。

在此处输入图像描述

暂无
暂无

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

相关问题 HTTP 错误 503。该服务在 IIS 中不可用? - HTTP Error 503. The service is unavailable in IIS? 仅当使用NetworkService时,站点才不会使用ApplicationPoolIdentity在本地启动:“ HTTP错误503。该服务不可用。” - Site wont start on local using ApplicationPoolIdentity, only when using NetworkService: “HTTP Error 503. The service is unavailable.” IIS 停止并出现错误消息“HTTP 错误 503。服务不可用” - IIS stopped and error message "HTTP Error 503. The service is unavailable" HTTP错误503。当端口80已空闲时,该服务不可用 - HTTP Error 503. The service is unavailable when port 80 is already free HTTP 503:服务不可用 - HTTP 503 : Service Unavailable 远程服务器返回错误:(503)服务器不可用。 在谷歌翻译 - The remote server returned an error: (503) Server Unavailable. in Google Translator Visual Studio IIS HTTP 503 服务不可用 - Visual Studio IIS HTTP 503 Service Unavailable HttpListener服务器返回错误:(503)服务不可用 - HttpListener server returns an error: (503) Service Unavailable 使用 ApplicationPoolIdentity 或自定义帐户时,IIS8“HTTP 错误 503 - 服务不可用”,但在使用 NetworkService 时则不然 - IIS8 'HTTP Error 503 - Service unavailable' when using ApplicationPoolIdentity or a custom account, but not when using NetworkService 尝试浏览信号器/集线器时,HTTP 503服务不可用 - HTTP 503 Service is unavailable when trying to browse signalr/hubs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM