News.aspx problem
When I first started using the ThePhileVB site I could access the categories.aspx, settings.aspx and news.aspx pages under the newsmanager/admin section. Now all of a sudden I can access the categories and settings pages but not news.aspx. I never changed any roles or permissions for the admin login. I compared the current news.aspx and the one from the download. The following are the only differences I could find: (Differences are in bold)
[u]Current News.aspx file</u>
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
End Sub
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not (TypeOf Context.User Is SitePrincipal) _
OrElse Not CType(Context.User, SitePrincipal).HasPermission( _
CInt(NewsManagerPermissions.AdministerNews)) Then
Response.Redirect("/ThePhileVB/WebModules/Accounts/Login.aspx?ShowError=true", True)
[u]Downloaded News.aspx file</u>
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
AddHandler Me.Load, AddressOf Page_Load
End Sub
Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If Not (TypeOf Context.User Is SitePrincipal) _
OrElse Not CType(Context.User, SitePrincipal).HasPermission( _
CInt(NewsManagerPermissions.AdministerNews)) Then
Response.Redirect("/ThePhileVB/WebModules/Accounts/Login.aspx?ShowError=true", True)
I changed the current page to match the downloaded one. Rebuilt the solution and restarted the site. It still will not let me in.
I even checked all the Accounts tables in the DB to make sure something wasn't changed by accident. All the tables match the downloaded version.
Has anyone run into the same problem? What am I missing? I canât find any other differences.
Please Help!
|