COM DLL through Interop doesn't seem to work :: Pls. Help

tripps

New member
Joined
Sep 5, 2003
Messages
4
hi all,
I am using a COM dll in VB.Net through Interop.
I create an instance of a class of thid DLL in VB.Net then I execute a method of this class.
The problem is that this method of this COM DLL class returns me an string saying <Permission Denied>.
When I use this COM DLL in an VB6 application, then it does not cause any problem and gets executed properly.
This method is actually writing a Excel file after fetching data from the database.
Any help on this is highly appreciated

thanks
tripps
 
Where is your code running that calls into the ActiveX control? Is it from a website or from an EXE running through the browser? Is the file being saved to a network share maybe? Is the COM component hosted in COM+ or MTS?

If the Access Denies is because of the file system, its likely that the identity your EXE is running as doesnt have permission to the disk. It might also be that your process cant create the ActiveX object (can you verify where the error occurs)?

-Nerseus
 
Back
Top