Where are you seeing the error?
While executing the proc in the primary database? Or is the error in the repserver's errorlog, in conjunction with the DSI (into the replicate database) going down?
If the latter, try running the sp_dboption commands for the replicate database.