IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 15th, 2006, 02:57 PM
sunil_ranade sunil_ranade is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Mumbai, India
Posts: 2 sunil_ranade User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 9 sec
Reputation Power: 0
Post .net Component in ASP page (Error 0x80131509)

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

Reply With Quote
  #2  
Old May 15th, 2006, 08:17 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,969 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 17 h 19 m 56 sec
Reputation Power: 802
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

Reply With Quote
  #3  
Old May 16th, 2006, 08:18 AM
sunil_ranade sunil_ranade is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Mumbai, India
Posts: 2 sunil_ranade User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 9 sec
Reputation Power: 0
Question

Quote:
Originally Posted by Doug G
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.


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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > .net Component in ASP page (Error 0x80131509)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT