Visual Basic Compilation Error When Transferred to Server

Asked By 60 points N/A Posted on -
qa-featured

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.

SHARE
Answered By 0 points N/A #147916

Visual Basic Compilation Error When Transferred to Server

qa-featured

Follow these steps and you should get your solution –

1. Open Windows Explorer.

2. Navigate to C > Program Files > Microsoft Visual Studio > VBStart.

3. Right-click UT2000, and then select DELETE.

4. After you receive the message that asks you to confirm the deletion, select Yes.

5. Press Start, select Find, and then select Files or Folders.

6. In the Named box, type ut2000.dot, and then press Find Now.

7. Hold SHIFT button, click each Ut2000.dot file, and remove all of them.

.

Related Questions