简体   繁体   English

通过IIS获取Asp.Net的解析器错误

[英]getting Parser error for Asp.Net by IIS

I'm developing some Asp.Net website and I'm trying to run it on my IIS, I published the web (under build option) and put it under wwwroot, but I get this parser error below. 我正在开发一些Asp.Net网站,并且试图在IIS上运行它,我发布了Web(在build选项下),并将其放在wwwroot下,但是在下面出现了此解析器错误。 shall I publish the web to add it in inetmgr? 我应该发布网络以将其添加到inetmgr吗? or just put the files in my project folder there? 或者只是将文件放在我的项目文件夹中? what's the point of publishing? 发布的重点是什么?

Description: An error occurred during the parsing of a resource required to service this request. 说明:在解析服务于此请求所需的资源期间发生错误。 Please review the following specific parse error details and modify your source file appropriately. 请查看以下特定的解析错误详细信息,并适当地修改您的源文件。

and this is the line which cause it. 这是导致它的线。

Line 1:  <%@ page language="C#" autoeventwireup="true" inherits="App_Pages_Default, App_Web_av5ghx1x" %>

我不知道它的目的是什么,但是我会尝试从Inherits中删除App_Web_av5ghx1x ,并添加CodeBehind属性:

<%@ page Language="C#" Autoeventwireup="true" CodeBehind="App_Pages_Default.aspx.cs" Inherits="App_Pages_Default" %> 

Try changing your publish settings. 尝试更改您的发布设置。 When you publish the website, uncheck 发布网站时,请取消选中

Allow this precompiled site to be updateable

That should take care of the extra the App_Web_av5ghx1x. 那应该照顾额外的App_Web_av5ghx1x。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM