Link to home
Start Free TrialLog in
Avatar of Anthony Matovu
Anthony MatovuFlag for Uganda

asked on

calling sas from vb.net

I am trying to call SAS from vb.net and i getting message
on line
  Dim sasWS As New SAS.Workspace

Open in new window



i have imported

Imports SASWorkspaceManager
Imports SAS

Thank you


System.Runtime.InteropServices.COMException was caught
  ErrorCode=-2147221164
  HResult=-2147221164
  Message=Retrieving the COM class factory for component with CLSID {440196D4-90F0-11D0-9F41-00A024BB830C} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
  Source=mscorlib
  StackTrace:
       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
       at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at System.Activator.CreateInstance(Type type)
       at test_sas.Form1.Button1_Click(Object sender, EventArgs e) in C:\bi\test sas\Form1.vb:line 14
  InnerException:
ASKER CERTIFIED SOLUTION
Avatar of dinesh manikkam
dinesh manikkam

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Anthony Matovu

ASKER

Make sure assemblies are okay
Make sure assemblies are okay