Ошибка HTTP 404.3 - не найдена в Azure с asp.net MVC и ядром WebAPI 2.1 - PullRequest
0 голосов
/ 03 марта 2019

Привет, все, что я получаю ниже ошибки, нет ошибки публикации.а также проверяется путем развертывания приложения MVC core 2.1, которое генерируется VS 2017, и приложение также содержит файл шрифта.В том, что он не выдает никаких ошибок и работает нормально.Но проект его дает ниже исключения и подробности ...

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Most likely causes:
It is possible that a handler mapping is missing. By default, the static file handler processes all content.
The feature you are trying to use may not be installed.
The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.)
If ASP.NET is not installed.

Things you can try:
In system.webServer/handlers:
Ensure that the expected handler for the current page is mapped.
Pay extra attention to preconditions (for example, runtimeVersion, pipelineMode, bitness) and compare them to the settings for your application pool.
Pay extra attention to typographical errors in the expected handler line.
Please verify that the feature you are trying to use is installed.
Verify that the MIME map is enabled or add the MIME map for the Web site using the command-line tool appcmd.exe.
To set a MIME type, use the following syntax: %SystemRoot%\windows\system32\inetsrv\appcmd set config /section:staticContent /+[fileExtension='string',mimeType='string']
The variable fileExtension string is the file name extension and the variable mimeType string is the file type description.
For example, to add a MIME map for a file which has the extension ".xyz": appcmd set config /section:staticContent /+[fileExtension='.xyz',mimeType='text/plain']
Warning: Ensure that this MIME mapping is needed for your Web server before adding it to the list. Configuration files such as .CONFIG or dynamic scripting pages such as .ASP or .ASPX, should not be downloaded directly and should always be processed through a handler. Other files such as database files or those used to store configuration, like .XML or .MDF, are sometimes used to store configuration information. Determine if clients can download these file types before enabling them.
Install ASP.NET.
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	   StaticFileModule
Notification	   ExecuteRequestHandler
Handler	   StaticFile
Error Code	   0x80070032
Requested URL	   https://~1GpsLearning:80/Content/fonts/glyphicons-halflings-regular.woff
Physical Path	   D:\Program Files (x86)\SiteExtensions\Kudu\79.20129.3767\Content\fonts\glyphicons-halflings-regular.woff
Logon Method	   Anonymous
Logon User	   Anonymous

1 Ответ

0 голосов
/ 17 марта 2019

Это была проблема обновления с 2.0 до 2.1, поэтому я создал новое приложение в ядре 2.1 и просто реализовал свой другой код, как есть, и все работало нормально и работает на лазуре очень плавно.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...