Error Calling COM object - Possible permissions problem

A

Andrew Daniels

I am having a problem calling a 3rd party COM object in ASP.Net.

My problem is happening when i try and create a instance of the
object. The code and DLL are valid as has been working on several
other servers. I have now moved it to the live one and its not
working.

The error I was getting was the really great and useful "Unspecified
error". The stack trace was:

at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic)

Everyone has Full Control of the DLL.

I have created a old style ASP 3.0 page which trys and creates the
object and that doesn't work - that returns the same error!

I have then created a WScript that creates the object and ran it. THIS
WORKS. This will be running under a user with administrator rights.

If i get the ASP 3 page to run under the same user it works.

The weird thing is the ASP.net one doesn't! If i get it to run under
that user i get this error: Exception has been thrown by the target of
an invocation.

Stack Trace
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers,
Int32 culture, String[] namedParameters) at
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[]
modifiers, CultureInfo culture, String[] namedParameters) at
Tt360.M21Gas.Accounts.DataCash.Debit() at
Tt360.M21Gas.Accounts.AccountTransaction.Credit(Card card, User user)

I have spent many hours messing around with permissions on various
objects but to no avail.

Help!
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top