分析器错误消息: 未能加载类型“xxxx”。
源错误:
行 1: <%@ page language="c#" autoeventwireup="true" codebehind="index.aspx.cs" inherits="bj_wt.index" %>
行 2:
源错误:
行 1: <%@ page language="c#" autoeventwireup="true" codebehind="index.aspx.cs" inherits="bj_wt.index" %>
行 2:
行 3: <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
解决方案:
仅供参考···有不同意见的欢迎交流
0、看下html页面的inherits属性和index.aspx.cs页面的public partial class index : System.Web.UI.Page的红色部分是否一样
1、整个工程清理一下重新编译生成
上面两种是我从网上找到的解决方法,但是对我无效
我认真看了下生成的警告信息
做了以下修改
2、右击→解决方案→配置属性→配置→全部改为Any CPU
我的就是这么搞好的、当然不一定全配置成Any CPU 、或许你的机子上改为别的呢···(⊙o⊙)…
很蛋疼的一个小问题、也和自己没细心看警告有关···(⊙o⊙)…