Category Archives: 7612

Is Your ASP.NET Development Server Not Working?

Since Visual Studio 2005, Visual Studio comes with a development web server: the ASP.NET Development Server.

I’ve been using this web server for simple test projects since than with Visual Studio 2005 and Visual Studio 2008 in Windows XP Professional on my work laptop and Windows XP Professional, Windows Vista 64bit Ultimate and Windows 7 64bit Ultimate at my home desktop without any problems (apart the known custom identity problem, that is).

When I received my new work laptop, I installed Windows Vista 64bit Enterprise and Visual Studio 2008 and, for my surprise, the ASP.NET Development Server wasn’t working.

I started looking for differences between the laptop environment and the desktop environment and the most notorious differences were:

System

Laptop

Desktop

SKU

Windows Vista 64bit Enterprise

Windows Vista 64bit Ultimate

Joined to a Domain

Yes

No

Anti-Virus

McAffe

ESET

After asserting that no domain policies were being applied to my laptop and domain user and nothing was being logged by the ant-virus, my suspicions turned to the fact that the laptop was running an Enterprise SKU and the desktop was running an Ultimate SKU. After having problems with other applications I was sure that problem was the Enterprise SKU, but never found a solution to the problem. Because I wasn’t doing any web development at the time, I left it alone.

After upgrading to Windows 7, the problem persisted but, because I wasn’t doing any web development at the time, once again, I left it alone.

Now that I installed Visual Studio 2010 I had to solve this. After searching around forums and blogs that either didn’t offer an answer or offered very complicated workarounds that, sometimes, involved messing with the registry, I came to the conclusion that the solution is, in fact, very simple.

When Windows Vista is installed, hosts file, according to this contains this definition:

127.0.0.1       localhost
::1             localhost


This was not what I had on my laptop hosts file. What I had was this:



#127.0.0.1       localhost
#::1             localhost


I might have changed it myself, but from the amount of people that I found complaining about this problem on Windows Vista, this was probably the way it was.



The installation of Windows 7 leaves the hosts file like this:



#127.0.0.1       localhost
#::1             localhost


And although the ASP.NET Development Server works fine on Windows 7 64bit Ultimate, on Windows 7 64bit Enterprise it needs to be change to this:



127.0.0.1       localhost
::1             localhost


And I suspect it’s the same with Windows Vista 64bit Enterprise.

From Vista To 7 With WET And WHS

My son inherits my old machines.

His current one was a machine that started with Windows Vista x86 Ultimate RTM, then SP1 and finally SP2. Also, along the way, several versions of Microsoft Office, .NET, Visual Studio, SQL Server and much more.

I usually have dozens of applications installed. Retrieving license keys and installing them a gain is such an hassle that I choose to upgrade whenever I can.

Now that Windows 7 is out and there’s a beta of Office 2010, my son wanted to upgrade the machine.

Because the machine had already gone through all those updates and he didn’t like the way I had partitioned the disk, I recommended him to format the disk and do a clean install.

One of the hassles of a clean install is that you loose all your settings such as Internet Explorer settings and favorites and Microsoft Outlook accounts and PSTs (specially if you have IMAP accounts).

Since I had already successfully used Windows Easy Transfer to migrate my work laptop from Windows XP (x86) to Windows Vista x64 Enterprise, I told him not to worry.

Windows Easy Transfer guides you through the process of transferring files and settings from one Windows installation to another.

With Windows Easy Transfer you can transfer:

  • Files and folders.
    Everything within the Documents, Pictures, and Shared Documents folders. Using advanced options, you can select additional files and folders to transfer.
  • E‑mail settings, contacts, and messages.
    Messages, account settings, and address books from Microsoft Outlook Express, Outlook, Windows Mail, and other e‑mail programs.
  • Program settings.
    Settings that keep your programs configured as you had them on your old installation. You must first install the programs on your new computer, because Windows Easy Transfer does not transfer the programs themselves. Some programs might not work on this version of Windows, including security programs, antivirus programs, firewall programs (your new computer should already have a firewall running to help ensure safety during the transfer), and programs with software drivers.
  • User accounts and settings.
    Color schemes, desktop backgrounds, network connections, screen savers, fonts, Start menu options, taskbar options, folders, specific files, network printers and drives, and accessibility options.
  • Internet settings and favorites.
    Internet connection settings, favorites, and cookies.
  • Music.
    Electronic music files, playlists, and album art.
  • Pictures and video.
    Pictures—which includes any visual file type (for example, .jpg, .bmp, .gif) – and personal videos.

After saving everything to the .MIG file, all it took was installing Windows 7, Office 2010 and import the settings back.

To get the other files and folders that were on the disk before being formatted, since we have a Windows Home Server that backs up all the PCs in the house , all it was needed was mounting one of the old backups as a disk and copying the files back.

It’s so easy that he did it al by himself while and he just turned 14. So, if you need to do something like this, don’t stress. It’s that easy.

Getting The Folder Path Into The Windows Search Results Windows

Unlike it happened on Windows XP, on Windows Vista and Windows 7, the search results window doesn’t have (by default) a column with the folder path of the found items. Instead, it has a column named Folder in the form of Folder name (folder’s containing folder path).

I don’t know the reason behind this decision, I just know that it makes hard to sort the found files by its path.

Fortunately, the folder path of the found items can be added to the list view by right clicking on any list column and selecting the folder path to be shown.

Unfortunately, I couldn’t find a way to make it permanent. I need to do that for every search.

Adobe Reader Fails To Upgrade/Install

Yesterday I was offered an update to Adobe Reader (the latest version for Windows Vista is version 9.1) on my company’s laptop.

I accepted the update but it failed. It was late and a failed update to Adobe Reader was the least of my worries at the time.

Today, when I tried to use Adobe Reader, I noticed it had been uninstalled.

It’s not nice having to download and install something like Adobe Reader when I need to open a document, but the worst came when I tried to install it.

Adobe Reader requires elevated privileges to install but, due to the way the installer works, being a local administrator (I running Vista x64 Enterprise joined to a corporate domain) is not enough to install Adobe Reader on C:\Program Files (x86), because it was still failing.

I had already created C:\Program Files (Utils), to install the Windows Sysinternals tools (in particular, Process Explorer) and did the same for Adobe Reader.

Do you know what was the first name I thought of for this folder? C:\Program Files (Bad)

Just blame it on Vista.

Using Windows Server 2008 As A Desktop Operating System

When I installed my new machine I considered installing Windows Server 2008 with Hyper-V. But this my desktop not my server and I like desktopy things on my desktop and I don’t need virtual machines running all the time, I thought Windows Vista plus Virtual PC 2007 (although x64 support on virtual machines would be nice) would be the right choice.


Yesterday I was trying the Developer Interface from InnerWorkings and I couldn’t get it to work because Internet Explorer kept popping up Internet Explorer Enhanced Security Configuration errors from the InnerWorkings’ Visual Studio add-in which blocked Visual Studio.


I know Rui uses Windows Server 2008 as his laptop operating system (as well as António) and I asked Rui how I could get rid of Internet Explorer Enhanced Security Configuration. Rui pointed me to this blog posts:



Looking through Systweak‘s series of posts about the Windows Server 2008 Desktop (see below) almost made me regret having installed Windows Vista instead of Windows Server 2008. But my next laptop will definitely be running on Windows Server 2008.


Windows Server 2008 Desktop