Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help accessing c# component from asp page? 1

Status
Not open for further replies.

jrenae

Programmer
Jan 18, 2006
142
0
0
US
Hello,

I'm trying to access my c# component from a classic asp page.

I've used REGASM to add it to the registry and I've used GACUTIL to add it the the global assemby cache.


but I still get this error when trying to create the object on the asp page:
Server object, ASP 0177 (0x800401F3)
Invalid class string

When I look at the registry I see it under "HKEY_CLASSES_ROOT\typelib\{classid...}" but the name says "default"...is that correct?

Am I not getting it registered correctly?

Any help would be greatly appreciated!
Thanks!
 
personally i find it easier to build a setup program marked with build for com interop.

do the install and it all works noice (oh the hassles i have had with com interop...bleah)

just watch out cause IIS caches the assembly and needs a iisreset /restart to clear old versions.
 
Thank you, I finally got past the createobject statement, but now I get another error:

This line now works:
myobj = Server.CreateObject("TestNetClass.Class1")

this line now returns the error below
mystr = myobj.MyOutput()

Object required: 'TestNetClass.Class1'

any more suggestions?
 
Thank you so much, espar! I can't believe I forgot something so basic! This has been driving me crazy!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top