I am using below vb.net code to generate scripts. For particular user i will get "Could not read metadata, possibly due to insufficient access rights" error.