 |

04-02-2003, 01:48 AM
|
|
Centurion
Preferred language: VB.NET
|
|
|
|
Class import problem
|
|
I got this Library that i've imported: winawsrv.dll.
The PCanywhere library i've converted from the winawsrv.tlb.
Now i can see all of the member classes in the object browser (see the pic)
Now i've tried to register the dll with regsvr32 but I get: "winawsrv.dll was loaded, but the DllRegisterServer entry point was not found"
within the environment, when i make these calls:
Dim pcaManager As New winawsrv.CHostDataManagerClass()
Dim pcaData As New winawsrv.CHostDataClass()
the first call passes, but I get the following:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in PoLLit.exe
Additional information: COM object with CLSID {0B30DAC0-B532-11D2-8177-300A44000000} is either not valid or not registered
I can see the class in the object browser, how is that I can't use it???? I can seem to be able to get out of this, ever,please help!!!
|
|

04-07-2003, 10:16 PM
|
|
|
If you have the source code available to you, you have to put the DllRegisterServer function into it. If you dont have the source code then I dont think youll get somewhere with this.
|
|

04-08-2003, 02:16 AM
|
|
Centurion
Preferred language: VB.NET
|
|
|
|
|
|
No I dont have the source. Its not a native .NET dll. I imported it from a .tlb with the tlbimp.exe that comes with the Studio.
the tlbimp makes a wrapper for the library so i can see it in the object browser. But the wrapper doesn't seem to be good enough.
this is wierd though, because as u can see the component is exposed in the object browser....
|
__________________
Auto-suggestion: "I have a life"
Uncontroled thinking: "So what the.."
|

04-08-2003, 10:29 AM
|
 |
Exalted One
Preferred language: C#
|
|
Join Date: Nov 2002
Location: Rhode Island, USA
|
|
Is the DLL properly registered? The error that you are getting indicates that it is not.
|
|

07-02-2003, 11:23 AM
|
|
Newcomer
Preferred language: VB.NET
|
|
|
|
I'm also having an identical problem with a third party COM DLL, uniobjects.dll.
How do I properly register the Runtime Callable Wrapper generated by tlbimp? Do I have to create a Stongly named assembly and add it to the assembly cache of the target machine? If so, I can't register it as I need the original code to do that.
The code I am using is as follows (the 2nd line throws the same exception that Ariez got)
Code:
Dim UvSession as Object
Dim uvType As Type = GetType(UNIOBJECTSLib.UnioaifCtrlClass)
UvSession = Activator.CreateInstance(uvType)
where UNIOBJECTSLib is in the project references.
I can also see all properties and methods in the DLL by using the object browser
Any help greatly appreciated
Regards, Scott
|
|

08-15-2003, 09:32 AM
|
|
|
Yeah I have the same problem if anyone has a solution please let us know...
Thanks in advance..
|
|

08-15-2003, 09:52 AM
|
|
Newcomer
Preferred language: C#
|
|
Join Date: Aug 2003
Location: Istanbul/Turkiye
|
|
I have also the same problem as Ariez.I refer nctdialogicvoice2lib.dll file with the Add Reference.I also see the classes of this dll file but if I run it gives such an error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in SampleCSDialogicGetBuffer.exe
Additional information: COM object with CLSID {AD3E2FA8-E18A-40E1-AE97-655B0F1C906A} is either not valid or not registered.
I deal with this problem 6 days and didn't found any solution for that.
|
__________________
fatihsen
|

08-15-2003, 11:07 AM
|
|
Neutiquam Erro
Preferred language: C# and VB.NET
|
|
|
|
Did you register the DLL? You'll probably need to register the TLB too.
Start >> Run >> regsvr32 <path to dll or tlb>
|
|

08-17-2003, 05:03 AM
|
|
Centurion
Preferred language: VB.NET
|
|
|
|
Quote:
|
I deal with this problem 6 days and didn't found any solution for that
|
I still haven't found...
I inserted the CLSID manually in the registry, and it didn't help.
fatihsen did you also use the Tlbimport?
|
__________________
Auto-suggestion: "I have a life"
Uncontroled thinking: "So what the.."
|

08-17-2003, 11:03 AM
|
|
|
I used tlbimp but it didnt work maybe I used it correctly.
I am writing a program with WindowsMediaServices SDK and as yours, the classes appear in the program; they compile; but @ runtime it gives the same error (CLSID..not registered..blabla)
I tried tlbimp xxxx.dll, it produced some more dll's but it still doesn't work....
|
|

08-19-2003, 03:21 AM
|
|
Centurion
Preferred language: VB.NET
|
|
|
|
Hey gensunasumus, I'm not in that project anymore so i can't test.
But Voltface said to register the tlb along with the dll...I dont remember having tried this one (register the tlb also i mean).
I'm very curious to know if you succeeded with this method..(or any other, so keep posting)
thanks...
|
__________________
Auto-suggestion: "I have a life"
Uncontroled thinking: "So what the.."
|

09-11-2003, 02:01 PM
|
|
|
I'm having the same issue. Any more ideas?
We're changing file-level permissions on a directory of pdfs from an app written in .net.
Application references ActiveDs (Interop.ActiveDs.dll) which comes from c\winnt\system32\activeds.tlb using VS.NET 2003.
Application works FINE on local computer where it is compiled. We get the following error when we copy the application to a server (Win2000):
"COM object with CLSID {F270C64A-FFB8-4AE4-85FE-3A75E5347966} is either not valid or not registered
So we use RegSvr32 on Interop.ActiveDs.dll and activeds.tlb, both of which give this error:
"loaded, but the DllRegisterServer entry point was not found."
Application still won't work on the server and gives the same error. Help!
|
|

09-18-2003, 10:39 AM
|
|
|
Next I added corresponding registry entries for {F270C64A-FFB8-4AE4-85FE-3A75E5347966} to the server which existed on my local machine.
So, now I'm getting, "ClassFactory cannot supply requested class."
Not sure what to do next?
|
|

09-20-2003, 12:05 AM
|
|
Junior Contributor
Preferred language: VB.Net
|
|
|
|
I'm not sure if this is of any use but you can try it. It's a COM system registration program, it should be able to Register DLLs, EXEs and TLBs using the TypeLibInfo Class
|
__________________
.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
|

09-20-2003, 12:40 AM
|
|
Freshman
Preferred language: VB,C#
|
|
Join Date: Sep 2003
Location: India
|
|
You may try with the following:
1. Register the COM component using regsvr32 utility
2. Use tlbimp.exe to create a com wrapper .
3. Copy the assembly into the /bin direcory.
In order to understand how to use wrapper assembly you may use ildasm.exe to examine the structure of wrapper assembly.
Hope to help.
|
__________________
Jitesh Sinha
|

09-21-2003, 06:51 AM
|
|
Junior Contributor
Preferred language: VB.Net
|
|
|
|
There was a utility for Registering TLBs. REG*TLB.exe but I couldn't find it, the TLB needs to be registered using a specific method(Regsvr32 won't work seeing as TLBs don't have DLLRegisterServer APIs)
If you register the TLB you shouldn't need to register the DLL since the TLB is the exposed DLL methods but you still may need to register both or the .Net dll into the GAC
|
__________________
.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
|

09-22-2003, 09:12 AM
|
|
|
Thank you AndreRyan and Jitesh for your posts.
AndreRyan, I tried the application you offered, which is pretty cool, but hasn't fixed the problem yet. Do you think I've messed my registry up by adding entries manually? Should I remove them and the use this tool again?
I believe TLBImp.exe is built-in to VS.NET and used when adding corresponding references.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
| |
|