|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have one small .net component. I want to use this component in ASP 3.0.
1. This .net component has one method. This method has one string parameter and return type is string. When I am returning hard coded string value then this component is working fine in ASP. But when I am trying to get some values from database in .net component I am getting this error. 2. I have tried to use this component in ASPX page and it is working fine. 3. Then I tried to use this in VB6.0 and surprisingly it is working absolutely fine and returning data from database. Following steps I have followed to create this .net interop: a) sn -k AssemblyName.snk b) Added reference of snk file and complied assembly again. c) regasm AssemblyName.dll /tlb:AssemblyName.tlb d) gacutil /I AssemblyName.dll e) in asp code object is created with CreateObject(“AssemblyName.ClassName”) f) When I am trying to access method then I am getting error as, “(0x80131509) An exception occurred while attempting to execute the command.” Regards Sunil |
|
#2
|
|||
|
|||
|
I've never heard anywhere that you can do what you're attempting to do. That doesn't mean you can't but I don't have any answer for you, sorry.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Quote:
Any clue why this interop is working fine in VB6 and not in ASP? Or Anybody knows any other way to create .net interop or use .net component in ASP page. Thanks, Sunil |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > .net Component in ASP page (Error 0x80131509) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|