<%@ Application Codebehind="Global.asax.cs" Inherits="FS.JYPEIS.WeCharReserve.WebApiApplication" Lan
2016-12-09 16:58
295 查看
直接开门见山 错误如下:
在网上找到如下原因:
1.项目命名空间 检查项目命名空间 包括Global.asax、app_start下、controllers等文件夹下,命名空间是否与项目名称一致(至少我是这样,然后KO了bug)controllers下一级命名空间与项目名一致(.controllers之前).
2.项目->属性 查看输出目录是否是bin
我的问题就这么解决了 给大家一个借鉴 如没能解决 希望大家不要踩我··
对了 我的项目是mvc4 razor的。
在网上找到如下原因:
1.项目命名空间 检查项目命名空间 包括Global.asax、app_start下、controllers等文件夹下,命名空间是否与项目名称一致(至少我是这样,然后KO了bug)controllers下一级命名空间与项目名一致(.controllers之前).
2.项目->属性 查看输出目录是否是bin
我的问题就这么解决了 给大家一个借鉴 如没能解决 希望大家不要踩我··
对了 我的项目是mvc4 razor的。
相关文章推荐
- 分析器错误 <%@ Application Codebehind="Global.asax.cs" Inherits="erfang.web.Global" Language="C#" %>
- <%@ Application Codebehind="Global.asax.cs" Inherits="XXX.MvcApplication" Language="C#" %>
- ASP.NET 调试出现<%@ Application Codebehind="Global.asax.cs" Inherits="XXX.XXX.Global" Language="C#" %>
- <%@ Page language="c#" Codebehind="Main.aspx.cs" AutoEventWireup="false" Inherits="Vod.WebForm1" %>
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
- 菜鸟关于 aps.net<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 的认识
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="EmptyProjectNe
- 关于 aps.net<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 的认识
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="_Default" %>
- 声明中"AutoEventWireup"、"Codebehind"、"Inherits"分别表示什么意思?
- <%@ page language="C#" autoeventwireup="true" inherits="index, App_Web_vsb3n 生成网站后,发布到网站上就提示这个错误
- 声明中"AutoEventWireup"、"Codebehind"、"Inherits"分别表示什么意思?
- 声明中"AutoEventWireup"、"Codebehind"、"Inherits"分别表示什么意思?
- 声明中"AutoEventWireup"、"Codebehind"、"Inherits"分别表示什么
- 声明中"AutoEventWireup"、"Codebehind"、"Inherits"分别表示什么意思?
- aspx头部代码<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ceshi.aspx.cs" Inherits="SM_ceshi" %
- <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
- IOS App发布问题:code signing is required for product type "Application" in SDK 'iOS 9.2'
- Where is the Global.asax.cs file
- Building a Web Application->Code Behind vs. Code Inline