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/

  • 相关阅读:
    systemctl无法停掉keepalived
    python小工具
    python pip
    linux下安装python3
    python process
    python socket模块
    python logging日志模块
    板邓:C#的声明数组和赋值
    板邓:解决jquery中全选点击第二次不生效的问题
    板邓:php+mayql分页原理及案例
  • 原文地址:https://www.cnblogs.com/38yundandan/p/4928844.html
Copyright © 2011-2022 走看看