Problem calling COM object

G

Guest

Hi all,

I have developed a web project in ASP.NET that uses a legacy COM object
(developed in VB6) by creating a wrapper using TlbImp.exe. Everything works
fine on the Web server on Windows 2000, but I've been trying to move to
Windows 2003 and everytime a call is made to the COM object the following
exception occurs:

--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.

Exception Details: System.Security.SecurityException: Permission denied

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

--------------------------------------------------------------------------------

I have tried too many possible solutions to list here, but nothing seems to
work. I've seen a few other posts with the same problem but no one has
posted a solution that works for me. Please help!

Thanks,
Stefan
 
B

Bruce Barker

on your 2003 server, the machine.config is probably asp.net is set to not
trust unmanaged code (and thus all com objects). check this first.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top