While retasking a fairly old Windows 2003 server into a web server I ran into a weird error after installing the IIS6 service.
The errors I got when trying to start the two sites I had configured were :
“The format of the specified network name is invalid”
“The network location cannot be reached. For Information about network troubleshooting see Windows Help.”
One site was listening on “(All Unassigned)” and the other was listening on a specific IP, resulting in these two different errors.
It was fairly easy to find a solution to this problem, for as it turns out this server had once before been running IIS before it was retasked to the purpose it served before it was my time to retask it ( makes me wonder how old this machine really is )
Got this funny little thing today when I was trying to enumerate children of a Directory Entry:.
System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000) at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_IsContainer() at System.DirectoryServices.DirectoryEntries.ChildEnumerator..ctor(DirectoryEntry container) at System.DirectoryServices.DirectoryEntries.GetEnumerator() at Program.Program.Main(String args)
Very helpful error message, see the full post for more information.
If you are creating Windows Services you may run into this annoying little error from time to time,
Error 1001. The specified service has been marked for deletion
At first I used to restart my machine to get rid of it, but there is a (much) simpler way. Simply closing the Services Manager (services.msc or the mmc.exe tool) will solve it
Here’s a useful bit of information. If you need to know if you are running your program in debug mode or not you can do this :
// Program is running in debug mode
More on how this can be useful in the full post.
Jóhannes H. Laxdal is a specialized humanoid carbon unit whose field is computers and telling lousy jokes, it has a tendency to put "well" before every sentence it utters. In here you will find its ramblings about computer-related stuff.
Tags.net 7 8 2008 2008 R2 Administrator Administrator for web ADSI Application Pool AppPool asp.net backup BannerBitmap C# CentOS CIDR Create debian Decimal Dedicated Server Enumerate Enumerate Websites error IE 7 IIS IIS 6 install banner L4D2 Left 4 dead 2 Linux PeriodicRestartSchedule php Recycle Recycling Samba script spam Submask user-agent Website windows Windows 7 Windows 2008 R2 Windows Media Services WMS