Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

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

"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
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...