2014-05-05 38 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的完整路徑

相關問題