Visual Basic Compilation Error When Transferred to Server
Hi,
Â
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.
Â
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: BC30124: Property without a 'ReadOnly' or 'WriteOnly' specifier must provide both a 'Get' and a 'Set'.
Â
Source Error:
Â
Line 3: Inherits System.Web.UI.Page
Â
Line 4:
Â
Line 5: Private Property ErrorLabel As Object
Â
Line 6:
Â
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"
Â
Else
Â
Server.Transfer("~/Administration/default.aspx")
Â
End If
Â
End Sub
Thanks in advance.