And the error makes sense because of this:
You're passing zero to the ManagePhotoAlbum page which will try to insert a picture referencing an album with an ID of 0 which doesn't exist.
The problem can still be in the same areas as before:
1. You're not handling Inserted correctly.
2. Your database doesn't geberate the ID correctly.
For the first issue, can you post the full code (markup and code behind) of NewPhotoAlbum again?
For the second issue, ensure you set (Is Identity) on the Id colum of the PhotoAlbum table and then refresh the EF diagram if necessary (e.g. if Is Identity wasn't set).
Hope this helps,
Imar