HTTP 错误 404.3 - 在带有 asp.net MVC 和 WebAPI 核心 2.1 的 Azure 中找不到

桑托什·贾

大家好,我遇到了以下错误,没有发布错误。并通过部署由 VS 2017 生成的 MVC 核心 2.1 应用程序进行检查,该应用程序还包含字体文件。因为它不会产生任何错误并且运行良好。但是该项目给出了以下例外情况,详细信息是......

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

桑托什·贾

这是从 2.0 升级到 2.1 的问题,所以我在 2.1 核心中创建了一个新的应用程序,并按原样实现了我的其他代码,一切正常,并且在 azure 上运行非常顺利。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

带有HtmlEncoder()的asp.net核心1.0 mvc RC2 tagBuilder方法在RC1中不起作用RC2

来自分类Dev

带有asp.net webapi的angular 2中put方法的Http失败响应

来自分类Dev

找不到资源(ASP.NET MVC 5中的错误)

来自分类Dev

使用asp.net核心MVC的任何操作都会出现404错误

来自分类Dev

使用asp.net核心MVC的任何操作都会出现404错误

来自分类Dev

使用ASP.NET MVC区域路由找不到错误404

来自分类Dev

找不到Asp.Net MVC脚本(404)

来自分类Dev

显示ASP.NET Core MVC的404找不到页面

来自分类Dev

如何在ASP.NET MVC中显示友好的“找不到对象”消息(不是404)

来自分类Dev

在asp.net中找不到angular.js路由404错误

来自分类Dev

具有Azure AD的Asp.net核心基于MVC角色的授权

来自分类Dev

ASP.Net MVC 4区域未注册。Visual Studio 2012的HTTP 404错误

来自分类Dev

为什么我的ASP.NET MVC路由配置导致HTTP 404错误?

来自分类Dev

为什么我的ASP.NET MVC路由配置导致HTTP 404错误?

来自分类Dev

.Net MVC WebApi 和 Angular2

来自分类Dev

Asp.NEt核心和MVC 6有什么区别?

来自分类Dev

如何在Asp.net MVC 6中使用NHaml(找不到模板错误)

来自分类Dev

在ASP.NET MVC版本配置中找不到Ajax的错误

来自分类Dev

Spring 4 MVC,警告:在DispatcherServlet中找不到名称为URI和HTTP 404的HTTP请求的URI映射

来自分类Dev

ASP.NET 5(核心1)-在ASP.NET MVC Web API中获取身份验证数据似乎有所不同

来自分类Dev

在ASP.NET 5 / MVC 6中区分MVC和WebAPI

来自分类Dev

在ASP.NET 5 / MVC 6中区分MVC和WebAPI

来自分类Dev

删除带有ajax和rails的表记录时出现404找不到错误

来自分类Dev

在AJAX中将带有属性和多个附件的表单发布到ASP.NET WebAPI2

来自分类Dev

在带有.NET核心和框架混合解决方案的Azure Devops中,蛋糕构建脚本失败

来自分类Dev

WebApi 2身份验证和ASP.NET MVC 5应用程序

来自分类Dev

找不到URL的Angular2 404:http:// localhost / WebApi2 / api / hero

来自分类Dev

Azure中具有MVC和ASP.NET Core的Outputcache IIS

来自分类Dev

ASP.NET MVC / WebApi的Azure表存储最佳实践

Related 相关文章

  1. 1

    带有HtmlEncoder()的asp.net核心1.0 mvc RC2 tagBuilder方法在RC1中不起作用RC2

  2. 2

    带有asp.net webapi的angular 2中put方法的Http失败响应

  3. 3

    找不到资源(ASP.NET MVC 5中的错误)

  4. 4

    使用asp.net核心MVC的任何操作都会出现404错误

  5. 5

    使用asp.net核心MVC的任何操作都会出现404错误

  6. 6

    使用ASP.NET MVC区域路由找不到错误404

  7. 7

    找不到Asp.Net MVC脚本(404)

  8. 8

    显示ASP.NET Core MVC的404找不到页面

  9. 9

    如何在ASP.NET MVC中显示友好的“找不到对象”消息(不是404)

  10. 10

    在asp.net中找不到angular.js路由404错误

  11. 11

    具有Azure AD的Asp.net核心基于MVC角色的授权

  12. 12

    ASP.Net MVC 4区域未注册。Visual Studio 2012的HTTP 404错误

  13. 13

    为什么我的ASP.NET MVC路由配置导致HTTP 404错误?

  14. 14

    为什么我的ASP.NET MVC路由配置导致HTTP 404错误?

  15. 15

    .Net MVC WebApi 和 Angular2

  16. 16

    Asp.NEt核心和MVC 6有什么区别?

  17. 17

    如何在Asp.net MVC 6中使用NHaml(找不到模板错误)

  18. 18

    在ASP.NET MVC版本配置中找不到Ajax的错误

  19. 19

    Spring 4 MVC,警告:在DispatcherServlet中找不到名称为URI和HTTP 404的HTTP请求的URI映射

  20. 20

    ASP.NET 5(核心1)-在ASP.NET MVC Web API中获取身份验证数据似乎有所不同

  21. 21

    在ASP.NET 5 / MVC 6中区分MVC和WebAPI

  22. 22

    在ASP.NET 5 / MVC 6中区分MVC和WebAPI

  23. 23

    删除带有ajax和rails的表记录时出现404找不到错误

  24. 24

    在AJAX中将带有属性和多个附件的表单发布到ASP.NET WebAPI2

  25. 25

    在带有.NET核心和框架混合解决方案的Azure Devops中,蛋糕构建脚本失败

  26. 26

    WebApi 2身份验证和ASP.NET MVC 5应用程序

  27. 27

    找不到URL的Angular2 404:http:// localhost / WebApi2 / api / hero

  28. 28

    Azure中具有MVC和ASP.NET Core的Outputcache IIS

  29. 29

    ASP.NET MVC / WebApi的Azure表存储最佳实践

热门标签

归档