Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Retrieving the COM class factory for component with CLSID...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dna8088@googlemail.com - 20 Dec 2007 10:33 GMT
I've written a .NET class that needs to be used in an ASP page I've
done all the normal com-interop stuff but it keeps bombing out so I
tried putting the code in an ASPX page with a try catch to see if that
made a difference but when it gets to the line:-

testing = Server.CreateObject("TLDOTNETGDS.Galileo")

I get the following error:-

System.Runtime.InteropServices.COMException (0x80070775): Retrieving
the COM class factory for component with CLSID {79A7535C-2C47-410F-
A357-2CF63BBCF1EC} failed due to the following error: 80070775.
  at System.RuntimeTypeHandle.CreateInstance(RuntimeType type,
Boolean publicOnly, Boolean noCheck, Boolean& canBeCached,
RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
  at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly,
Boolean fillCache)
  at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly,
Boolean skipVisibilityChecks, Boolean fillCache)
  at System.Activator.CreateInstance(Type type, Boolean nonPublic)
  at System.Activator.CreateInstance(Type type)
  at System.Web.HttpServerUtility.CreateObject(String progID)
  at _Default.Page_Load(Object sender, EventArgs e) in C:\Documents
and Settings\Dhenry\My Documents\Visual Studio 2005\WebSites
\WebSite1\Default.aspx.vb:line 24

I've tried searching for the error on-line but I can only find
"80070005" not "80070775"
Aidy - 20 Dec 2007 12:27 GMT
> I've written a .NET class that needs to be used in an ASP page I've
> done all the normal com-interop stuff but it keeps bombing out

Could you define "bombing out"?

Also post the structure of your .net class.  ie the class without the actual
code inside the functions, just the class definitions, function definitions
etc.
dna8088@googlemail.com - 20 Dec 2007 14:17 GMT
> Could you define "bombing out"?
old term means the same as crash the ASP page gives the error:-

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/Index.asp, line 959

Invalid class string

> Also post the structure of your .net class.  ie the class without the actual
> code inside the functions, just the class definitions, function definitions
> etc.

Imports Microsoft.VisualBasic
Imports System
Imports System.IO
Imports System.Net
Imports System.Configuration
Imports System.Xml
Imports System.Xml.XPath
Imports System.Runtime.InteropServices

<ProgId("TLDOTNETGDS.Galileo")> _
<Microsoft.VisualBasic.ComClass(ComHeader.CLSID_GALILEO,
ComHeader.INFID_GALILEO, ComHeader.EVEID_GALILEO)> _
Partial Public Class Galileo
   Inherits com.cendant.copyws.XmlSelect

   Public ReadOnly Property Requests() As String
   Public ReadOnly Property Responses() As String

   Public Property GlobalConn() As String

   Public Property DepartureAirport() As String
   Public Property DestinationAirport() As String
   Public Property DepartureDate() As Date
   Public Property ReturnDate() As Date
   Public Property Airline() As String
   Public Property Seats() As String
   Public Property CabinClass() As String
   Public Property JourneyType() As String
   Public Property Duration() As Integer

   Public Sub New()

   Public Sub Initialise(ByVal Conn As String)

   Public Sub Initialise(ByVal Username As String, _
                         ByVal Password As String, _
                         ByVal Profile As String, _
                         ByVal Url As String, _
                         ByVal Debug As String)

   Public Sub ClearLogs()

   Public Function SendXml(ByVal request As String) As XmlElement

   Public Function SendXmlOnSession(ByVal request As String) As
XmlElement

   Public Sub CloseSession()

   Public Function SuperBBRequest() As XmlDocument

   Public Function SuperBBSearch() As XmlDocument

   Public Function FareSearch() As XmlDocument

   Public Function GetFareRules(ByVal strLineNumber As String) As
XmlDocument

   Public Function AirAvailability() As XmlDocument
End Class
Aidy - 20 Dec 2007 15:22 GMT
Two things.  First have you registered the component using regasm?

http://msdn2.microsoft.com/en-us/library/ms753058.aspx

Secondly, I don't think you'll get your functions that return things like
XmlElement etc working as there is no COM equivalent for the recipient code
to use.  Things like int, string etc will be mapped from .net to COM for
you, but complex structures aren't possible.

>> Could you define "bombing out"?
> old term means the same as crash the ASP page gives the error:-
[quoted text clipped - 73 lines]
>    Public Function AirAvailability() As XmlDocument
> End Class

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.