using a com object

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Hello folks!

I'm converting an asp page to an asp.net page.

What I have is

set obj=server.createobject("MyDLL.MyClass")
obj.PublicMethod()

this works fine in asp but it doesn't work in dot-net.

Anybody got the upgraded code?

Thanks-In-Advance,

Bob
 
There are a lot of possibilities. Keep in mind that ASP.NET is still ASP so
ASP code should, in general, work. One thing that is very different is
security. By default ASP.NET apps run as a low-priveleged local system user
ID called ASPNET. You may have to check whether you have permissions to do
that.

Security is a big topic. I would suggest determining what your exact error
is when it fails, and if it's security you will probably get some kind of
"Access Denied" error. If not, it will help you figure out which tree to
bark up.
 
Back
Top