abuzaid

We have 3rd party component from Jinny that is used to send SMS2WEB, we built a web part control on a seperated .NET solution and it's working fine. but when we put this webpart inside our sharepoint server portal it's not working and gives teh following error:

"Unable to cast COM object of type 'VASCMDTest.VASCMDClass' to interface type 'VASCMDTest._VASCMD'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6AA13D08-2DB3-11D5-B353-5C9357000000}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))."

below are steps we followed on the server to run it

the Active X component "VASCMD" used to access the Remote Command Line Interface of the VAS Platform

The following shows the steps must be taken to use "VASCMD":

1. Registering it to the Microsoft IIS server using regsvr32 application.

2. Copy "vascmddll.dll" and paste it in Windows\System32 folder.

In our .Net solution, we tried to use it but we faced that if you are refrenceing it in a vb code you got only one Interface "VASCMD"

but when using it in C# code we got 3 Interfaces "VASCMD","_VASCMD" and ""VASCMDTestClass"".



Re: SharePoint - Development and Programming COM object with MOSS 2007

Stefan Keir Gordon

There is a bit too much custom work going on in your solution for me to have a good answer, but I'll make a suggestion atleast...

It sounds like it could definitely be a code security issue, becuase you say it worked outside of sharepoint, but fails inside.

This is largely a guess, but in your webpart assemblyinfo.cs file, do you have an entry like this

[assembly: AllowPartiallyTrustedCallers()]






Re: SharePoint - Development and Programming COM object with MOSS 2007

abuzaid

Yes we have it in our assemblyinfo.cs.

any other steps we have to do





Re: SharePoint - Development and Programming COM object with MOSS 2007

smc750

Is your webpart control strong named and deployed to the gac

Does your webpart show up in the safecontrols section of your webconfig file

Try setting your trust level to full in the webconfig.

<trust level="Full" originUrl="" />

run an IIsreset






Re: SharePoint - Development and Programming COM object with MOSS 2007

abuzaid

we have done with all of these but still the same problem.