运行 Fastcgi with IIS 8 + Python 3.4 + Django 1.8 + Windows Server 2012 时出现错误 0x80070585
Error 0x80070585 when running Fastcgi with IIS 8 + Python 3.4 + Django 1.8 + Windows Server 2012
我正在尝试使用 Fastcgi 和 Python 3.4 通过 Django 1.8.3 设置 IIS 8。我在 tutorial 之后添加了以下环境变量:
DJANGO_SETTINGS_MODULE -> 值:FirstSite.settings
PYTHONPATH -> 值:C:\inetpub\wwwroot\Django\FirstSite
WSGI_HANDLER -> 值:django.core.wsgi.get_wsgi_application()
我将 WSGI 处理程序值从 django.core.handlers.wsgi.wsgihandler() 更改为 django.core.wsgi.get_wsgi_application(),因为教程讨论的是以前的 Django 版本。
我按照教程中的所有内容进行操作,当我尝试在 Windows Server 2012 R2 的 IE 浏览器中打开网站时,出现以下错误:
记住 8003 是我在教程中配置的端口。
HTTP Error 500.0 - Internal Server Error scriptProcessor
could not be found in application configuration
Most likely causes: •IIS received the request; however, an internal
error occurred during the processing of the request. The root cause of
this error depends on which module handles the request and what was
happening in the worker process when this error occurred.
•IIS was not able to access the web.config file for the Web site or
application. This can occur if the NTFS permissions are set
incorrectly.
•IIS was not able to process configuration for the Web site or
application.
•The authenticated user does not have permission to use this DLL.
•The request is mapped to a managed handler but the .NET Extensibility
Feature is not installed.
Things you can try:
•Ensure that the NTFS permissions for the web.config file are correct
and allow access to the Web server's machine account.
•Check the event logs to see if any additional information was logged.
•Verify the permissions for the DLL.
•Install the .NET Extensibility feature if the request is mapped to a
managed handler.
•Create a tracing rule to track failed requests for this HTTP status
code. For more information about creating a tracing rule for failed
requests, click here.
Detailed Error Information:
Module FastCgiModule
Notification ExecuteRequestHandler
Handler Django Handler
Error Code 0x80070585
Requested URL http://127.0.0.1:8003/
Physical Path C:\inetpub\wwwroot\Django\FirstSite
Logon Method Anonymous
Logon User Anonymous
More Information: This error means that there was a problem while
processing the request. The request was received by the Web server,
but during processing a fatal error occurred, causing the 500 error.
View more information »
Microsoft Knowledge Base Articles: •294807
有什么办法可以解决这个错误吗? Python 3.4 有任何额外的步骤吗?
发现我的错误。 Handler Mapping Executable 参数指向 fastcgi.py 而不是 wfastcgi.py
我正在尝试使用 Fastcgi 和 Python 3.4 通过 Django 1.8.3 设置 IIS 8。我在 tutorial 之后添加了以下环境变量:
DJANGO_SETTINGS_MODULE -> 值:FirstSite.settings
PYTHONPATH -> 值:C:\inetpub\wwwroot\Django\FirstSite
WSGI_HANDLER -> 值:django.core.wsgi.get_wsgi_application()
我将 WSGI 处理程序值从 django.core.handlers.wsgi.wsgihandler() 更改为 django.core.wsgi.get_wsgi_application(),因为教程讨论的是以前的 Django 版本。
我按照教程中的所有内容进行操作,当我尝试在 Windows Server 2012 R2 的 IE 浏览器中打开网站时,出现以下错误:
记住 8003 是我在教程中配置的端口。
HTTP Error 500.0 - Internal Server Error scriptProcessor could not be found in application configuration
Most likely causes: •IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
•IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
•IIS was not able to process configuration for the Web site or application.
•The authenticated user does not have permission to use this DLL.
•The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.
Things you can try:
•Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
•Check the event logs to see if any additional information was logged.
•Verify the permissions for the DLL.
•Install the .NET Extensibility feature if the request is mapped to a managed handler.
•Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.
Detailed Error Information:
Module FastCgiModule
Notification ExecuteRequestHandler
Handler Django Handler
Error Code 0x80070585
Requested URL http://127.0.0.1:8003/
Physical Path C:\inetpub\wwwroot\Django\FirstSite
Logon Method Anonymous
Logon User Anonymous
More Information: This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error. View more information »
Microsoft Knowledge Base Articles: •294807
有什么办法可以解决这个错误吗? Python 3.4 有任何额外的步骤吗?
发现我的错误。 Handler Mapping Executable 参数指向 fastcgi.py 而不是 wfastcgi.py