Software Engineering

Unexpected error 0x8ffe2740 occurred

I realized that this happened when I try to start IIS when Apache web services has started (from XAMPP). When I stop Apache, I can start IIS.

And, vice versa, if I have my IIS started, I can’t able to start Apache. Perhaps this is due to they have the same port.

So, if you encountered this error message, check if you have Apache running at that time


Unable to send to all recipients … Mailbox unavailable. The server response was: 5.7.1 Unable to relay for …

Managed to fix it by going to IIS > Default SMTP Virtual Server > Property > Access > Relay


Even though I still not able to receive the mail I sent out yet, but there is no more error message when I use VB.NET code (System.Net.Mail.MailMessage) to send it.

When I went to C:InetpubmailrootQueue, I saw that the mail was there. My next goal is to make sure I receive this email. I think the next I need to look into SMTP thingy at my code.


Error: Failure sending mail … Unable to connect to the remote server

During my development, I bound into this error. The short error message is “Failure sending mail”. The long one is

Failure sending mail. —> System.Net.WebException: Unable to connect to the remote server —> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

I googled a bit and found out that this is could be due to my SMTP services was not started. So, I went to start it but I got another message “Could not start the Simple Mail Transfer Protocol (SMTP) service on Local Computer. Error 1068: The dependency Service or group failed to start”.

So, I googled again and found out that this could be due to my IIS services was not started and so I went to start it. And guess what, there was still another error. I didn’t manage to save the error message this time.

Without giving up, I googled again and got tips to check on Event Log to see if there is any thing I can get from there. When I opened it, I saw nothing. Then, I went back to Window Services and found out that Event Log was disabled! I enabled it back, that is it. After that, I can start IIS services and SMTP services liao.

Wait a minute … as I continued with my development, I got another message, “Unable to send to all recipients”. This is will be shared in the next post.

Software Engineering

Could not start the world wide web publishing service on local computer error 1717: the interface is unknown

When I try to restart services like “FTP Publishing” and “World Wide Web Publishing”, it keeps on pop up this annoying message, “could not start the world wide web publishing service on local computer error 1717: the interface is unknown”

Finally, I realized that this is due to Event Log has been disabled. Once I changed it back to “Automatic” and started it, I can start back “FTP Publishing” service and “World Wide Web Publishing” service now.

SQL / Stored Procedures SQL Server 2000

Cannot perform bulk insert. Invalid collation name for source column 1 in format file ‘C:bcp.fmt’.

It took me a while to finally figured what what went wrong to fix the above error. The problem is my bcp.fmt needs to have an empty line at the last row.


The first screen capture is the one before I added the empty line and the second screen capture is the one after I added the empty line. Take note of the cursor.

After you have added the empty line, it should works.