“/”应用程序中的服务器错误。
分析器错误
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。分析器错误信息: 服务器块的格式不正确。源错误:行 1: <%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="_Default, App_Web_cmw9fn7t" title="Page" culture="auto" uiculture="auto" validaterequest="false" meta:resourcekey="PageResource1" %>
行 2: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
行 3: <div style="width: 100%; height: 150px">
源文件: d:\wwwroot\lzroi\wwwroot\Default.aspx 行: 1版本信息: Microsoft .NET Framework 版本:1.1.4322.2407; ASP.NET 版本:1.1.4322.2407
分析器错误
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。分析器错误信息: 服务器块的格式不正确。源错误:行 1: <%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="_Default, App_Web_cmw9fn7t" title="Page" culture="auto" uiculture="auto" validaterequest="false" meta:resourcekey="PageResource1" %>
行 2: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
行 3: <div style="width: 100%; height: 150px">
源文件: d:\wwwroot\lzroi\wwwroot\Default.aspx 行: 1版本信息: Microsoft .NET Framework 版本:1.1.4322.2407; ASP.NET 版本:1.1.4322.2407
现在还有用1.0开发的?
而版本:1.1.4322.2407
版本信息: Microsoft .NET Framework 版本:1.1.4322.2407; ASP.NET 版本:1.1.4322.2407而我是用2.0做的,所以出错!
IIS配置上有问题.
同时有1.0 2.0的话,需要专门开池,不能用默认的
Server Error in '/' Application.
Parser Error
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.Parser Error Message: Could not load the assembly 'App_Web_cmw9fn7t'. Make sure that it is compiled before accessing the page.Source Error:Line 1: <%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="_Default, App_Web_cmw9fn7t" title="兰州若易电子科技有限公司" culture="auto" uiculture="auto" validaterequest="false" meta:resourcekey="PageResource1" %>
Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Line 3: <div style="width: 100%; height: 150px">
Source File: /Default.aspx Line: 1Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
你页面的inherits里面的东西是什么意思..
需要安装个组件包
我改成 inherits="_Default.App_Web_cmw9fn7t" 还是一样的问题!如果改成inherits="_Default",也就是和我页面编辑时一样的,也抱错,问题在于我发布的网站现在在我本计算机上的虚拟目录跑得好好的!
在IIS里网站->你的网站名称->右键->属性->ASP.NET->ASP.NET版本里选择2.0.50727
就可以了
服务商把我空间framework改成了2.0,但还是出错了,在本地虚拟目录调试都没问题啊!错误如下,成英文了:
Server Error in '/' Application.
Parser Error
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.Parser Error Message: Could not load the assembly 'App_Web_cmw9fn7t'. Make sure that it is compiled before accessing the page.Source Error:Line 1: <%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup ="true" inherits="_Default, App_Web_cmw9fn7t" title="兰州若易电子科技有限公司 " culture="auto" uiculture="auto" validaterequest="false" meta:resourcekey="PageResource1" %>
Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Line 3: <div style="width: 100%; height: 150px">
Source File: /Default.aspx Line: 1Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
'App_Web_cmw9fn7t'
你建立的一定是WEB网站 不是APPLICATION
而且每次 重新修改后是随机生成的Dll
这个应该是你的主要原因如果你是 web站点项目的话 最好生成DLL的时候 发布的时候点击 上面的强命名 就不会生成随机的Dll了
觉得,学习还是学定一个版本好。或者,用个 VS 看看,检错误方便(错误都有下划线 ^_^)
web.config有问题.
这几天都在晕着呢
'App_Web_cmw9fn7t' 这个原因是:asp.net发布网站时,动态链接库的名字是动态产生的,每次都不一样,所以,如果你修改了网站的一部分,需要更新,那么就需要把bin目录下的动态链接库也相应的更换!