Thanks Li-fan,
It was the former case.
After a lot of trials, I've narrowed down my problem to the db.ExecuteReader
method to load into an IDataReader:
....
Dim db As Database = DatabaseFactory.CreateDatabase
Dim cmd As DBCommandWrapper
Dim dataReader As IDataReader
cmd =
db.GetStoredProcCommandWrapper("usp_OnLine_EmailAddr_for_Staff_SELECT")
cmd.AddInParameter("@ExtranetUSID", DbType.Int32, Me.intUSID)
dataReader = db.ExecuteReader(cmd) ' <--- Fails. Triggers exception
....
As background, I have used normal xcopy deployment for project folder and
files, then set up the virtual directory on IIS, and enabled the required
use of SSL on the virtual directory.
I have not installed or run any other process for the EntLib on the server.
Should I install the msi and run the "Install Services" batch file?
Being cautious, I avoid installing anything I don't have to on the
production server.
Thanks for any pointers.
Al