Visual Basic Compilation Error When Transferred to Server
I have built an App in a development environment that I have uploaded to the live server. My app is error-free when executed in the development environment but receives errors when launched on the server. I only have the ability to FTP my files and can’t control the server. The errors my app gives on the server are below. Can anyone see what’s wrong with my code?
Any help is appreciated.
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: BC30124: Property without a 'ReadOnly' or 'WriteOnly' specifier must provide both a 'Get' and a 'Set'.
Line 3: Inherits System.Web.UI.Page
Line 5: Private Property ErrorLabel As Object
Line 7: Protected Sub FormView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertedEventArgs) Handles FormView1.ItemInserted Source File: E:InetpubcflaAdministrationAddAction.aspx.vb Line: 5
It comes from using a simple piece of VB:
Private Property ErrorLabel As Object
Protected Sub FormView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertedEventArgs) Handles FormView1.ItemInserted If e.AffectedRows = 0 Then
Me.ErrorLabel.text = "There is a problem with the action"
Thanks in advance.