ASP.NET错误:分析器错误信息:未能加载类型'webmarketing“ [英] ASP.NET Error: Parser Error Message: Could not load type 'webmarketing'

查看:393
本文介绍了ASP.NET错误:分析器错误信息:未能加载类型'webmarketing“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在完成Web应用程序和在线出版它,不管我尝试我不断收到以下错误后,请记住,它在本地运行,因为它应该...

 分析器错误信息:未能加载类型'webmarketing。

我通过解决方案,虽然据说我做一样的解决方案跑了,但我仍然面临着同样的问题...

<一个href=\"http://stackoverflow.com/questions/6213274/asp-net-parser-error-cannot-load-$c$c-behind\">ASP.NET分析器错误无法加载背后

code

下面是code背后:

 使用系统;
使用System.Collections.Generic;
使用System.Linq的;
使用的System.Web;
使用System.Web.UI程序;
使用System.Web.UI.WebControls;命名空间webmarketing
{
    公共部分类母版:System.Web.UI.MasterPage
    {
        保护无效的Page_Load(对象发件人,EventArgs的发送)
        {
            字符串管理=(字符串)会议[管理员];
            如果(string.IsNullOrEmpty(管理员))
            {
                logout.Visible = FALSE;
            }
            其他
            {            }
        }
    }
}


解决方案

我有同样的问题,我只是改变的 codeBehind codeFILE 之前,它worked.I记住它工作在本地,但我上传后有这个问题。

After finishing the web application and publishing it online no matter I try I keep getting the following error, keep in mind that it runs locally as it should...

Parser Error Message: Could not load type 'webmarketing'.

I ran through that solution though supposedly I'm doing the same as the solution, yet I'm still facing the same issue...

ASP.NET Parser Error Cannot load code behind


Here is the code behind:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace webmarketing
{
    public partial class Masterpage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string admin = (string)Session["Admin"];
            if (string.IsNullOrEmpty(admin))
            {
                logout.Visible = false;
            }
            else
            {

            }
        }
    }
}

解决方案

I had same problem before i just change CodeBehind to CodeFile and it worked.I remember it works in local but i had this problem after uploading.

这篇关于ASP.NET错误:分析器错误信息:未能加载类型'webmarketing“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆