zoukankan      html  css  js  c++  java
  • asp.net 错误提示:Could not load type 'SendEmail.WebPage'

    写的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/

  • 相关阅读:
    2020软件工程作业02
    2020软件工程作业01
    为什么需要平衡二叉树?
    手机号码和邮箱等联系地址,为什么不明文显示?
    请把重要的事看轻 ——2017年终总结
    万事皆空:随缘而定
    微服务:微服务架构模式译文说明
    Mysql 查询—按位运算
    解决:spring security 登录页停留时间过长 跳转至 403页面
    excel模板解析—桥接模式:分离解析模板和业务校验
  • 原文地址:https://www.cnblogs.com/38yundandan/p/4928844.html
Copyright © 2011-2022 走看看