I see this error when I rebuild my website as a first step before deploying it to a server:
'varchar' is not declared. It may be inaccessible due to its protection level. Line 47. Here is line 47:
For Each file In FileUpload1.PostedFiles
It's in this subroutine:
Protected Sub Upload(sender As Object, e As EventArgs)
If FileUpload1.HasFiles Then
If FileUpload1.PostedFiles.Count = 1 Then
SaveFile(FileUpload1.PostedFiles.FirstOrDefault())
Else
Dim related As Guid = Guid.NewGuid
For Each file In FileUpload1.PostedFiles
SaveFile(file, related)
Next
End If
End If
Response.Redirect("BulkUploadPRIVATEPhysicianFiles.aspx")
End Sub
The subroutine that's called (SaveFile):
Private Sub SaveFile(ByRef AFile As HttpPostedFile ...
Go to the complete details ...