BC30456 Error on ASP.Net Pages

cjhammer2004

Newcomer
Joined
Jun 27, 2005
Messages
5
Using Visual Studio 2005, VB

The error BC30456 seems to be a regular occurrence with my asp.net sites, all im trying to do is to change the title of the asp.net page in Visual Basic on the Page_Load() Function:

Line 7: Protected Sub page_load()
Line 8: Me.Title = "Forums"
Line 10: End Sub

This works fine when running on the Developer web server within Visual Studio but when i publish it to my win2003 server i get the following error:

______________________

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30456: 'Title' is not a member of 'ASP.Default_aspx'.

This also happens when using the "Request.LogonUserIdentity.Name":

________________________________

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30456: 'LogonUserIdentity' is not a member of 'System.Web.HttpRequest'.

Source Error:



Line 6:
Line 7: Protected Sub page_load()
Line 8: MsgBox(Request.LogonUserIdentity.Name)
Line 9: End Sub
Line 10: </script>



Any Help would be greatly appreciated.
 
Back
Top