解析器错误消息:无法加载类型'webmarketing' [英] Parser Error Message: Could not load type 'webmarketing'
本文介绍了解析器错误消息:无法加载类型'webmarketing'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
完成Web应用程序并将其在线发布之后,无论我如何尝试均会遇到以下错误,请记住它应在本地运行...
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...
解析器错误消息:无法加载类型'webmarketing'.
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...
这是背后的代码:
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
{
}
}
}
}
推荐答案
在将 CodeBehind 更改为 CodeFile 之前,我遇到了同样的问题.在本地,但是上传后我遇到了这个问题.
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.
这篇关于解析器错误消息:无法加载类型'webmarketing'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文