Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 母版页错误_.net_Vb.net - Fatal编程技术网

.net 母版页错误

.net 母版页错误,.net,vb.net,.net,Vb.net,我已经创建了一个母版页并附加了其他页面,看起来很好。但当我运行它时,它会给我以下错误消息: *Parse Error Message: The file'/projectname/MasterPage.vb' does not exist* 我不知道为什么,因为母版页在那里。它继续到下一行并说: *Line1 <% Master Language="VB" CodeFile="MasterPage.master.vb" Inherits=MasterPage" %>* 有什么建议

我已经创建了一个母版页并附加了其他页面,看起来很好。但当我运行它时,它会给我以下错误消息:

*Parse Error Message: The file'/projectname/MasterPage.vb' does not exist*
我不知道为什么,因为母版页在那里。它继续到下一行并说:

*Line1 <% Master Language="VB" CodeFile="MasterPage.master.vb" Inherits=MasterPage" %>*

有什么建议吗?

请在解决方案资源管理器上查看此文件MasterPage.vb,可能您已删除。或者只需在设计视图中的文件MasterPage.master的任意位置单击两次,如果它显示文件MasterPage.vb,请检查您的类名是否为部分类MasterPage