Unable to register the type library stdole2.tlb lỗi

This is in Delphi XE7. I had an existing type library (for Dynamic Virtual Channels- the client side) and needed to add a method to the interface so an application on the client side could talk to the dll to send messages over the virtual channel. I created a new interface, got a new GUI for it, modified the .idl file (Windows SDK provides the tsvirtualchannels.idl file in the Windows SDK).

I used midl to create the .tlb type library from the .idl and then ran tlibimp (Embarcadero utility) to generate the delphi -tlb.pas

My Delphi class implements the new method. But the new interface wasn't registered with Windows and all attempts using the Embarcadero tregsvr (running in an elevated command prompt) to register the library failed with the message Error accessing the OLE registry

I have tried to register the new interface manually. I'd created my interface similar to IWTSListener and went through the registry finding that key, exporting it, then changing the interface name to mine and the GUID to the new GUID then reimported it. There were four instances.

When the client dll starts, it starts an out of process server and passes it the Agile Reference (of the client dll interface. An agile reference is how a MTA application can talk to an STA). However when I query the interface to get my new interface, I get interface not supported.

I've more or less given up on tregsvr. It provides no details of errors. Is there anything else I need to do to get the new interface registered?

Discussion:

STDOLE2.TLB error message when opening Project

(too old to reply)

I get the following error message every time Microsoft Office Project 2003 Standard (happens with and without SP1 installed).

The file "STDOLE2.TLB" cannot be found or contains a Visual Basic for Applications library that is not valid.

Verify that the file name is correct, and then try again.

If the Visual Basic for Applications library is invalid, reinstall Project.

Now I have checked and the file exists in the C:\WINDOWS\SYSTEM32 directory. It has a file version of 3.50.5014.0 and description Microsoft OLE 3.50 for Windows NT and Windows 95 Operating Systems. This is on a Windows XP Pro with Service Pack 2 installed.

I have tried to reinstall and same error message. Other then that Project seems to work fine. I can't access the Macro Security menus but we don't use them very often here.

Any ideas?

You might try copying this file from another computer over the one on your computer. It may be corrupt and simply needs to be updated. I'll send you mine if you want to try it. It's the same version and I'm also running XP SP2 with Project 2003.

Jim

I get the following error message every time Microsoft Office Project 2003 Standard (happens with and without SP1 installed). The file "STDOLE2.TLB" cannot be found or contains a Visual Basic for Applications library that is not valid. Verify that the file name is correct, and then try again. If the Visual Basic for Applications library is invalid, reinstall Project. Now I have checked and the file exists in the C:\WINDOWS\SYSTEM32 directory. It has a file version of 3.50.5014.0 and description Microsoft OLE 3.50 for Windows NT and Windows 95 Operating Systems. This is on a Windows XP Pro with Service Pack 2 installed. I have tried to reinstall and same error message. Other then that Project seems to work fine. I can't access the Macro Security menus but we don't use them very often here. Any ideas?

In registry Give set value permissions t HKCR\TypeLib\{00020430-0000-0000-C000-000000000046}\2.0\0\win32 ke

-- SteDisle ----------- SteDisley's Profile: //forums.techarena.in/member.php?userid=2596 View this thread: //forums.techarena.in/showthread.php?t=22841

//forums.techarena.i

hi, i've got the same problem with my MS project on Vista, please give me some more info on how to solve. Thanks matrix

-- matrix -------- matrix's Profile: //forums.techarena.in/member.php?userid=26897 View this thread: //forums.techarena.in/showthread.php?t=228414

//forums.techarena.in

Matrix

Are you familiar with the registry? We had the problem on Windows XP where the std build is locked down for users. It turned out to be registry permissions on the key mentioned above. If you need to know how to correct, just relpy, and I will put the steps on.

hi, i've got the same problem with my MS project on Vista, please give me some more info on how to solve. Thanks matrix

-- SteDisley -------- SteDisley's Profile: //forums.techarena.in/member.php?userid=25969 View this thread: //forums.techarena.in/showthread.php?t=228414

//forums.techarena.in

Yes i am familiar with registry, but can you just point me to the righ path, thanks mate matri

-- matri ----------- matrix's Profile: //forums.techarena.in/member.php?userid=2689 View this thread: //forums.techarena.in/showthread.php?t=22841

//forums.techarena.i

Open reg and expand HKEY_CLASSES_ROOT then browse to TypeLib\{00020430-0000-0000-C000-000000000046}\2.0\0\win32 - then right click on that Key and choose permissions, give users groups FULL control. If that doesn't sort then make sure they can brosw to the path in the default value such ie...C:\WINDOWS\system32\stdole2.tlb , could also try copying the file from a working pc to see if that sorts.

If you can't see HKEY_CLASSES_ROOT, it can also be found under HKEY_LOCAL_MACHINE > Software > Classes. Classes is the same as HKEY_CLASSES_ROOT

Cheers

-- SteDisley -------- SteDisley's Profile: //forums.techarena.in/member.php?userid=25969 View this thread: //forums.techarena.in/showthread.php?t=228414

//forums.techarena.in

Thanks alot guys,let you guys know on my progress cheers matri

-- matri ----------- matrix's Profile: //forums.techarena.in/member.php?userid=2689 View this thread: //forums.techarena.in/showthread.php?t=22841

//forums.techarena.i

Thanks alot sted, the registry actually worked..no more messages popping up.. thanks matrix

-- matrix -------- matrix's Profile: //forums.techarena.in/member.php?userid=26897 View this thread: //forums.techarena.in/showthread.php?t=228414

//forums.techarena.in

I've tried both solutions and both seem to be locked out because of permissions.

  1. tried renaming stdole.tlb to stdole.old file secured and only have READ access; even though I am the administrator.
  1. tried registry edit and the following msg appeard: "Unable to change permission changes on win32. Access is denied."

I do have this file from previous desktop that is working fine.

Any additionalsuggestions?

-- alangr8zins -------- alangr8zins's Profile: //forums.techarena.in/member.php?userid=32990 View this thread: //forums.techarena.in/showthread.php?t=228414

//forums.techarena.in

Hi alangr8zins,

Welcome to this Microsoft Project newsgroup :)

What version of Project are you using? Where did you get guidance on the 2 solutions? Have you tried re-installing Project?

FAQs, companion products and other useful Project information can be seen at this web address: //project.mvps.org/faqs.htm

Hope this helps - please let us know how you get on :)

Mike Glen MS Project MVP See //tinyurl.com/2xbhc for Project Tutorials

I've tried both solutions and both seem to be locked out because of permissions.

  1. tried renaming stdole.tlb to stdole.old file secured and only have READ access; even though I am the administrator. "Unable to change permission changes on win32. Access is denied." I do have this file from previous desktop that is working fine. Any additionalsuggestions? -- alangr8zins -------- alangr8zins's Profile: //forums.techarena.in/member.php?userid=32990 View this thread: //forums.techarena.in/showthread.php?t=228414 //forums.techarena.in

This post might be inappropriate. Click to display it.

Hi Dana,

(I've been away) The problem is that your original post is blank! Still, reading between the lines, you have this error message when opening this project. Which procedure did you follow? Does it load any of your project or is this the first thing you see? Do you get a similar message with other projects? Does the project have customized macros, as this file seems to be vba specific? You could try the suggestions in FAQ Item: 43. Handling project file corruption and/or bloat.

FAQs, companion products and other useful Project information can be seen at this web address://project.mvps.org/faqs.htm

Hope this helps - please let us know how you get on :-)

Mike Glen Project MVP

Hello Mike, I am receiving the same error message as in the original Post. The error is diplayed upon first opening of the Project 2003 app. The error is "The file "STDOLE2.TLB" cannot be found or contains a Visual Basic for Applications library that is not valid. Verify that the file name is correct, and then try again. If the Visual Basic for Applications library is invalid, reinstall Project." The version of Project 2003 has been installed, followed by the installation of SP2 for Project 2003. I have not moved to SP3 yet since our environment has not been approved to use it. The machine is just built and has not been previously used, so the error was shown on the first run of the app. Trying the 2 previous posts that deal with permissions on the registry keys do not solve the problem. Users have full control both in the registry and of the actual .tlb file. But the error persists. Despite users that are admins or not. Any assistance is appreciated. Thanks in advance. Dana Windows XP w/SP2 Office 2003 w/SP2 Project 2003 w/SP2 Visio 2003 w/SP2 Visual Studio 2005 w/SP1

Hi alangr8zins, Welcome to this Microsoft Project newsgroup :) What version of Project are you using? Where did you get guidance on the 2 solutions? Have you tried re-installing Project? FAQs, companion products and other useful Project information can be seen at this web address: //project.mvps.org/faqs.htm Hope this helps - please let us know how you get on :) Mike Glen MS Project MVP See //tinyurl.com/2xbhc for Project Tutorials

I've tried both solutions and both seem to be locked out because of permissions.

  1. tried renaming stdole.tlb to stdole.old file secured and only have READ access; even though I am the administrator. "Unable to change permission changes on win32. Access is denied." I do have this file from previous desktop that is working fine. Any additionalsuggestions? -- alangr8zins -------- //forums.techarena.in/member.php?userid=32990 View this thread: //forums.techarena.in/showthread.php?t=228414 //forums.techarena.in

Loading...

Chủ đề