I am trying to execute a script written in VBScript, in a C# class library project
VBScript
C#
using System.Web.UI; //reference added at t
using Microsoft.VisualBasic;
Use this code:
MSScriptControl.ScriptControl script = new MSScriptControl.ScriptControl(); script.Language = "VBScript"; script.AddObject("Repository", connectToDB.GetRepository);