2014-05-05 41 views
0

嗨,我将网页应用程序转换为网站。我遵循这个链接来做到这一点。然而,我有一个错误的几页是.ascx和Global.asax。错误是“上下文不是...的成员”。我也排除.vbroj文件。从网络应用程序转换为网站有错误

我在网上搜索了解上述错误,发现链接http://forums.asp.net/t/1148374.aspx?Context+is+not+a+member+of+Page+name+ 。虽然我做了它所说的,但错误没有消失。有人会告诉我我能解决什么问题。

总结我所做的:

1. Delete the .desginer file 
2. Changed Codebehind to CodeFile 
3. Change the path of the code file with full path within the root directory. 
    For example: 
    Form CodeFile=" Footer.ascx.vb" Inherits="Testing.Footer" 
    To CodeFile="~/Templates/Footer.ascx.vb" Inherits="Testing.Footer" 

回答

0

我通过继承的删除的命名空间解决了这个问题,改变的CodeFile的完整路径。还要更改@Reference的完整路径

相关问题