I declared a variable as below in script task
dynamic sqldata = Dts.Variables["User::sqldata"].Value;
When I try to click OK for script task component, error coming as below
But when I replace dynamic keyword with object or var , which works fine.
So why dynamic datatype not working in script task?
stumbled across query when I had this same error myself so I thought I'd share my findings. My solution was to add Microsoft.CSharp as a reference when editing the script.
Hope that helps!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.