通过IIS获取Asp.Net的解析器错误 [英] getting Parser error for Asp.Net by IIS

查看:53
本文介绍了通过IIS获取Asp.Net的解析器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一些Asp.Net网站,并试图在IIS上运行它,我发布了Web(在build选项下)并将其放在wwwroot下,但是在下面却出现了此解析器错误.我应该发布网络以将其添加到inetmgr中吗?或只是将文件放在我的项目文件夹中?发布的目的是什么?

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. shall I publish the web to add it in 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.

这是导致它的行.

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

推荐答案

尝试更改您的发布设置.发布网站时,请取消选中

Try changing your publish settings. When you publish the website, uncheck

Allow this precompiled site to be updateable

那应该照顾额外的App_Web_av5ghx1x.

That should take care of the extra the App_Web_av5ghx1x.

这篇关于通过IIS获取Asp.Net的解析器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆