asp.net 错误提示:Could not load type 'SendEmail.WebPage'
2015-11-01 22:13
465 查看
写的asp.net 在我的机器上跑没问题,我把bin文件夹和WebPage.aspx以及web.conig拷贝到服务器上之后,访问这个webpage页面,就出现不能加载那个错误
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 type 'SendEmail.WebPage'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebPage.aspx.cs" Inherits="SendEmail.WebPage" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /windren/email/WebPage.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
原因:
我今天碰到了你两年前的问题我对它死磕了两个小时,
才发现原因
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebPage.aspx.cs" Inherits="SendEmail.WebPage" %>
这里不是CodeBehind="WebPage.aspx.cs"
而是CodeFile="WebPage.aspx.cs"
引用博客地址:
http://bbs.csdn.net/topics/390148498 http://blog.163.com/xiaokangzhijia@126/blog/static/165954856201171092619731/
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 type 'SendEmail.WebPage'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebPage.aspx.cs" Inherits="SendEmail.WebPage" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /windren/email/WebPage.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
原因:
我今天碰到了你两年前的问题我对它死磕了两个小时,
才发现原因
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebPage.aspx.cs" Inherits="SendEmail.WebPage" %>
这里不是CodeBehind="WebPage.aspx.cs"
而是CodeFile="WebPage.aspx.cs"
引用博客地址:
http://bbs.csdn.net/topics/390148498 http://blog.163.com/xiaokangzhijia@126/blog/static/165954856201171092619731/
相关文章推荐
- asp.net 页面上的点击事件
- asp.net:repeater嵌套(常用于新闻等在首页归类显示)
- ASP.Net在web.config中设置上传文件的大小方法
- ASP.Net中的四种状态保持机制
- 深入理解asp.net SessionState
- ASP.NET之Gridview图解
- asp.net微信公众平台开发的技术研究
- ASP.Net传参汇总
- asp.net之简易聊天室
- asp.net中gridview的checkbox使用总结
- 16、ASP.NET MVC入门到精通——MVC过滤器
- ASP.NET WebAPI 07 路由
- ASP.NET Web API基于OData的增删改查,以及处理实体间关系
- asp.net中output参数为null问题
- OData查询ASP.NET Web API全攻略
- ASP.NET MVC 原理
- ASP.NET MVC 原理
- Asp.net mvc生成验证码
- asp.net+Flash动态图片切换演示
- ASP.NET 异步编程