Hi Jason,
Sorry, I misread your first post. I thought you were doing COM interop ;-)
To get the assembly references working in VSA you do not have to add the
assemblies to the GAC but you have to specify the full path to your assembly
for the AssemblyName property:
IVsaReferenceItem refItem = (IVsaReferenceItem)
Items.CreateItem("MyAssembly.dll", VsaItemType.Reference, VsaItemFlag.None);
refItem.AssemblyName = AppDomain.CurrentDomain.BaseDirectory +
"MyAssembly.dll";
I will try to get it working for the GAC and get back to you.
HTH, Jakob.

Signature
http://www.dotninjas.dk
http://www.powerbytes.dk
> I got VSAException
>
[quoted text clipped - 15 lines]
> > > IVsaReferenceItem)
> > > reference_item.AssemblyName = "RBA.MyDotnetdb"
Jakob Christensen - 07 Jul 2005 10:08 GMT
Come to think of it - you probably can not add a reference to an assembly
from the GAC. You need the dll to add the reference.
Regards, Jakob.

Signature
http://www.dotninjas.dk
http://www.powerbytes.dk
> Hi Jason,
>
[quoted text clipped - 32 lines]
> > > > IVsaReferenceItem)
> > > > reference_item.AssemblyName = "RBA.MyDotnetdb"
Jason - 07 Jul 2005 13:20 GMT
Thanks for the reply...
Actually i already add reference from my MainForm.dll and also import the
namespace .. I run my script from this dll. But when i run my script i just
said cannot find namespace and so on...
Please help

Signature
Jason
> Come to think of it - you probably can not add a reference to an assembly
> from the GAC. You need the dll to add the reference.
[quoted text clipped - 37 lines]
> > > > > IVsaReferenceItem)
> > > > > reference_item.AssemblyName = "RBA.MyDotnetdb"
Jakob Christensen - 08 Jul 2005 08:09 GMT
Are you getting the exception "Microsoft.Vsa.VsaException:
AssemblyNameInvalid" when running the script or are you talking about a new
exception now?
Regards, Jakob.

Signature
http://www.dotninjas.dk
http://www.powerbytes.dk
> Thanks for the reply...
>
[quoted text clipped - 44 lines]
> > > > > > IVsaReferenceItem)
> > > > > > reference_item.AssemblyName = "RBA.MyDotnetdb"
Jason - 08 Jul 2005 09:48 GMT
Actually it is the same exception
Sorry for mislead

Signature
Jason
> Are you getting the exception "Microsoft.Vsa.VsaException:
> AssemblyNameInvalid" when running the script or are you talking about a new
[quoted text clipped - 50 lines]
> > > > > > > IVsaReferenceItem)
> > > > > > > reference_item.AssemblyName = "RBA.MyDotnetdb"
Jakob Christensen - 08 Jul 2005 11:44 GMT
Did you try with an assembly that has not been added to the GAC?
/Jakob

Signature
http://www.dotninjas.dk
http://www.powerbytes.dk
> Actually it is the same exception
> Sorry for mislead
[quoted text clipped - 53 lines]
> > > > > > > > IVsaReferenceItem)
> > > > > > > > reference_item.AssemblyName = "RBA.MyDotnetdb"
Jason - 08 Jul 2005 17:07 GMT
Or it is a better way to ask "how can i call and use my own dll inside VSA
script ?"

Signature
Jason
> Did you try with an assembly that has not been added to the GAC?
>
[quoted text clipped - 57 lines]
> > > > > > > > > IVsaReferenceItem)
> > > > > > > > > reference_item.AssemblyName = "RBA.MyDotnetdb"