tripps Posted February 6, 2004 Posted February 6, 2004 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 Quote
*Experts* Nerseus Posted February 7, 2004 *Experts* Posted February 7, 2004 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, it's likely that the identity your EXE is running as doesn't have permission to the disk. It might also be that your process can't create the ActiveX object (can you verify where the error occurs)? -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts