未能加载类型'site._Default“ [英] Could not load type 'site._Default'

查看:501
本文介绍了未能加载类型'site._Default“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用VS8和C#,当我调试一切正常开发一个简单的网站,然后我建立使用Ctrl + Shift + B键,当我上传网站到GoDaddy的服务器时,它显示了一个错误:

I have develop a simple website using VS8 and C# when I debug everything works fine, then I built using Ctrl + Shift + B and when I upload the site to a godaddy server it display the next error:

分析器错误
说明:该请求提供服务所需资源的分析过程中出现错误。请检查下列特定分析错误详细信息并适当地修改源文件。

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.

分析器错误信息:未能加载类型'testDemo._Default

Parser Error Message: Could not load type 'testDemo._Default'.

源错误:

1号线:其中,%@页面语言=C#AutoEventWireup =真codeBehind =Default.aspx.cs继承=testDemo._Default%>
线路2:结果
3号线:​​

Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="testDemo._Default"%> Line 2:
Line 3:

我找到了一个解决方案是消除部分继承=testDemo._Default,但它debuging不执行时的Page_Load(对象发件人,EventArgs的)。

A solution I found is removing the part Inherits="testDemo._Default", but when debuging it do not execute the "Page_Load(object sender, EventArgs e)".

做的人都知道是什么原因造成这个错误?

Do anyone knows what is causing this error?

杰里

推荐答案

只要改变codeBehind到codeFILE您线路1

Simply change "CodeBehind" to "CodeFile" on your Line1

这篇关于未能加载类型'site._Default“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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