Archive

Archive for December 13th, 2007

Failed to access IIS metabase

December 13th, 2007
Comments Off

Ok, I’m a Java developer; it’s been a long time since I’ve been inside the inner workings of IIS and .NET (where my development career started). While I am still a very dedicated Java developer, the company I am working for is integrating a third party .NET solution into our product stack. So, I’ve jumped back into the world of .NET.

I knew from the start that I had the .NET 2.x framework on my machine already, which was a plus. I also knew that I had to install IIS because the solution is web based. So that was easy enough.

I installed the solution, configured it according to the documentation, and attempted to run it through a browser. <BAM>”Failed to access IIS metabase.” error was triggered. Digging way back into the recesses of my memory, I did recall something about this (something about running a command), but again my memory is slightly outdated. Thankfully having full access to the internet provided me the solution.

c:\<path to .NET Framework version root>\aspnet_regiis -i

Give Credit where Credit is due:

http://blog.devstone.com/Aaron/archive/2006/05/08/1586.aspx

James Hawes System Administration

Cannot Delete: Path Too Long

December 13th, 2007
Comments Off

Just now I ran into a problem with an installation of a product which had very deep folder structures. I had to uninstall and delete the folders and files in order to do a fresh install. When I attempted to delete the files through Explorer and the cmd prompt I was being told that either the path was too long or the file name was too long.

Perhaps I’ve been doing development too long because I could not remember for the life of me how to get around this problem. After a few quick searches I was reminded of the the syntax “\\.\” and this solved my problem. I wanted to remove everything from the root folder of the application.

To remove folders and files:

ex. rd “\\.\c:\Path to long directory” /s /q

To removefiles

ex. del “\\.\c:\Path to file”

Give credit where credit is due:

  1. My good friend Jeremy Simmons
  2. Microsoft Support
  3. Where my memory was jogged: IT News Group.NET which is simply an alias to: microsoft.public.windows.server.general

James Hawes System Administration