无法加载母版页 [英] unable to load master page

查看:122
本文介绍了无法加载母版页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究我的fyp,使用visual studio 2013在asp.net 4.5中开发一个网站。

我有一个母版页和一个扩展该母版页的网页。 2天前,它运行良好,但现在它给出了错误。主页面无法加载。



分析器错误
描述:解析所需资源时出错服务请求。请查看以下特定的解析错误详细信息相应地修改源文件。

分析器错误消息:加载类型' shiaeventpopper.Users'

来源错误:
1 :<%@ Master Language = C# AutoEventWireup = true CodeBehind = Users.master.cs Inherits = shiaeventpopper.Users%>
2
3 :<!DOCTYPE html>


源文件:/Users.Master行: 1





如果有人知道这个错误。请帮助。

解决方案

可能存在命名空间/类名冲突,因为用户也可能是由Entity Framework创建的类(如果允许复数化)。将用户名称Users更改为UsersPage,然后让我知道结果或错误。



请查看以下链接:

分析器错误:无法加载类型 [ ^ ]



http://stackoverflow.com/questions/1709831/master-page- get-could-not-load-type-error-when-publishing?rq = 1 [ ^ ]



谢谢

I am working on my fyp, developing a website in asp.net 4.5 using visual studio 2013.
I have a master page, and a webpage that extends that master page. 2 days ago, it was working well but now it gives error. that master page can not be load.

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 'shiaeventpopper.Users'.

Source Error:
Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Users.master.cs" Inherits="shiaeventpopper.Users" %>
Line 2:  
Line 3:  <!DOCTYPE html>


Source File: /Users.Master    Line: 1 



if any body knows about this error. please help.

解决方案

There may be namespace/class name conflict as Users may be a class created by Entity Framework too (if pluralization is allowed). Change the name "Users" to "UsersPage" for UI code and Let me know the outcome or error after that.

Please look into following links those may help:
Parser error: Could not load type[^]

http://stackoverflow.com/questions/1709831/master-page-getting-could-not-load-type-error-when-publishing?rq=1[^]

Thanks.


这篇关于无法加载母版页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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