Ok, I got past that problem. Again I had to restart Chapter 14. I figured it had to do with the database and recreated it. So now everything works except for one thing. When I do the Try it out on page 515 and I try not to enter a .jpg url, I get an error in the ManagePhotoAlbum.aspx.
vb code
Protected Sub ListView1_ItemInserting(sender As Object, e As System.Web.UI.WebControls.ListViewInsertEventArgs) Handles ListView1.ItemInserting
Dim FileUpload1 As FileUpload = CType(ListView1.InsertItem.FindControl("FileUpload 1"), FileUpload)
If Not FileUpload1.HasFile OrElse
Not FileUpload1.FileName.ToLower().EndsWith(".jpg") Then
Dim cusValImage As CustomValidator = CType(ListView1.InsertItem.FindControl("cusValImag e"), CustomValidator)
cusValImage.IsValid = False
e.Cancel = True
End If
End Sub
Mainly it does not like the "cusValImage.IsValid = False" is the complaint. The error that I am getting is:
NullReverenceException was unhandled by user code
Object reference not set to an instance of an object
Troubleshooting tips:
Use the "new" keyword to create an object instance.
Check to determine if the object is null before calling the method.
etc
Fred Fenk