c# - Error when running JSON.NET -


i have added using statement class running:

using newtonsoft.json.linq; 

and referencing newtonsoft.json.dll in same project.

i no compile-time errors. run-time one. cant simple code (the hello doesn't show before crashing):

        public void main()         {             messagebox.show("hello");             jobject j = new jobject();             dts.taskresult = (int)scriptresults.success;         } 

i following error:

dts script task has encountered exception in user code: exception has been thrown target of invocation

with following stacktrace:

at system.runtimemethodhandle.invokemethod(object target, object[] arguments, signature sig, boolean constructor) @ system.reflection.runtimemethodinfo.unsafeinvokeinternal(object obj, object[] parameters, object[] arguments) @ system.reflection.runtimemethodinfo.invoke(object obj, bindingflags invokeattr, binder binder, object[] parameters, cultureinfo culture) @ system.runtimetype.invokemember(string name, bindingflags bindingflags, binder binder, object target, object[] providedargs, parametermodifier[] modifiers, cultureinfo culture, string[] namedparams) @ microsoft.sqlserver.dts.tasks.scripttask.vstataskscriptingengine.executescript()

anyone know might causing this?


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -