Sunday, July 31, 2011

OLE error code 0x80029c4a: Error loading type library/DLL.

Just a quick tip on such an error i got when writing a .NET C# activeX control to be used in a FoxPro 9.0 application. I was using Regasm to register the DLL which was successful but when i try to add it to a FoxPro form then that error would pop up ! Well guess what just make sure you produce a .TLB for your DLL and that will sort out that error. A type library (.tlb) is a binary file containing all the information you need to use procedures or classes in DLLs. Type regasm /h on the command prompt for more info on how to use it, by the way regasm.exe is a tool with in the .NET framework so to use it, you either navigation to the .NET folder or you register the path in you environmental variable.
Find regasm tool at path CD %windir%\Microsoft.NET\Framework\v(N)*\ in the windows OS after installing .NET framework (Note (N) is the version number of version of .NET framework you have so replace (N) with 1 or 2 or 3 or 4).
Hope this helps in case you got such a silly error !

Was reading article here for creating a .NET activeX control for a FoxPro application.

Friday, January 28, 2011

Wamp error "Forbidden You don't have permission to access / on this server."

Well was faced with such a situation when i tried accessing my site remotely from a new installation of WAMP2.0 on the server. i googgled for an answer but most of the posts didn't quite get straight to the point why this was happening. I read around and got the solution.

Why the error
WAMP has an installation of apache (a web server) bundled together and it is configured to receive local connection by default so if you try accessing the site from outside the hosting machine then you will get that error.

Solution
You will need to edit the configuration file for apache to enable external access. Get to the hosting machine, locate the system tray click on the WAMP icon -> Apache -> httpd.conf, this will open up the apache config file in notepad. locate line '' (without the single quotes around line 207), a few lines below before you meet the closing tag '' you will find the line below:
Deny from all
Allow from 127.0.0.1

replace them with the lines below:

#Deny from all
#Allow from 127.0.0.1
Allow from all

Save file and close it, go back to the system tray click of the Wamp icon -> stop all services then wait for 1 min then back to the system tray again Wamp icon -> start all services.

Thats it you can now access your site from anywhere.