Thursday, May 01, 2008

Problem loading IIS7 hosted WAP projects in VS 2005 after installing Vista SP1

After Vista SP1 got released, I was excited as it was very promising and wrote about it that every Vista user should get it. Now before I start with the problem it is important to understand my environment prior to installing Vista SP1:

  • Vista Enterprise RTM
  • IIS 7
  • Visual Studio 2005
  • Visual Studio 2008

It is also important to note that I work with WAP projects which are configured to be hosted on IIS7 and NOT the ASP.NET Development server.

Now, I installed Vista SP1 and it went without any hitch despite a lot of pain that people have expressed on the forums.

Next, I opened my WAP project in VS 2005 and the project would not load. It showed the dreadful 'Unavailable' status. I right-clicked on the project file and chose to edit the project file. I went down the file and changed the highlighted property to False.

  <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
        <WebProjectProperties>
          <UseIIS>True</UseIIS> ---> Changed to False
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>60528</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>http://localhost/Cronus</IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions

Well that made me load my project in VS, but now it was not hosted in IIS 7. That is where the whole problem started.

If I tried to change the project to be hosted on IIS 7 via the project properties in VS, I would get the following error:

Error Message 1

I tried a lot of stuff and googled a lot but could not find anything relevant. So, I shamelessly emailed Scott Guthrie, who has helped me in the past. He sent me a reply the next day (that is pretty quick for a guy so high in ranks in Microsoft):

Can you check out the steps in this article to see if they help: http://learn.iis.net/page.aspx/431/using-visual-studio-2005-with-iis-70/

Well, I read the article and in gist the article suggested to install the “IIS Metabase and IIS 6 configuration compatibility” component. The following screenshot from the above article describes what should be in place:

iis_4

Now, I had a lead to follow. I checked on the “IIS Metabase and IIS 6 configuration compatibility” checkbox and Windows installed stuff or atleast it seemed so... But. alas, after a minute or two it errored out with the following message:

iis_2

After I clicked OK, Windows still wanted me to Restart and I did. It showed messages that it was configuring updates and the machine came back. I went back to the Windows features window, and the “IIS Metabase and IIS 6 configuration compatibility” checkbox was now "unchecked". I thought I will try again but I got the same result. Now, I was stuck again. I replied to Scott's email with the above explanations. He forwarded the message to some of his colleagues at MS looking for a resolution. Greatly appreciate the effort, Scott.

While I waited, I searched again, and now for the failed “IIS Metabase and IIS 6 configuration compatibility” component. As luck would have it, I found an article by "bluemanifold" at http://forums.iis.net/p/1148581/1866381.aspx#1866381 (see the last post) that solved my problem. Here is the clear instructions from the article:

Hurrah!  After goodness know how many fruitless hours, I have managed to enable IIS6 compatibility.  For anyone else who happens to become trapped in this mess, here is the solution:

  1. Enable the built-in Administrator account:
    • From Start menu, run cmd as administrator.
    • At prompt, type net user administrator /active:yes
    • Exit, log off and log in using the now-visible Administrator account.
  2. Open Explorer and make sure that hidden files/directories are visible.
  3. Navigate to C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys.
  4. Set the permissions on the directory as follows:
    • Right-click on MachineKeys directory, select Properties and then select the Security tab.
    • Click Advanced, select the Permissions tab and click Edit.
    • Click Add and add the following object names:  Administrators and SYSTEM.  Give then full permission and make sure the 'Include inheritable permissions' is not selected.
    • I also did the same for the files in the directory (just in case).
  5. From the Start menu run cmd as administrator and type the following at the prompt:
    • start /w pkgmgr /uu:IIS-WebServerRole;WAS-WindowsActivationService
  6. Now open Control Panel and select Programs, Programs and Features, Turn Windows features on or off.
  7. Select Windows Process Activation Service (at the bottom of the tree) and select all components.  Hit OK.
  8. Repeat step 6 and select Internet Information Services.  Now select the appropriate options, click OK and it should just work!!

I performed the last steps in stages so that I could be sure that everything worked. This whole process sucks - I cannot believe that something as simple as setting up compatibility should require such contortions.

I thing to note is that after I did the above steps, all the components in Windows Features under IIS->Web Management Tools and World Wide Web Services were unchecked. So, I check the relevant ones as shown below.

iis7_3

All is well now. I can open my WAP projects in VS 2005 and host them on IIS 7. Thanks to Scott Guthrie for all the help and "bluemanifold" for the article. Hope this helps someone else.

Technorati Tags: ,,,

Thursday, April 24, 2008

.NET 3.5 Framework Enhancements Training Kit released

The .NET 3.5 Framework Enhancements Training Kit includes presentations, hands-on-labs and demos. It helps in learning the new concepts and features including:

  • ASP.NET MVC
  • ASP.NET Dynamic Data
  • ASP.NET AJAX History
  • ASP.NET Silverlight controls
  • ADO.NET Data Services
  • ADO.NET Entity Framework

The supported operating systems are Windows Vista and Windows XP. The pre-requisites to run the training kit application are:

The installation was pretty standard and easy. The web page that describes the kit, states it as April Content Preview. It also mentions the fact that it only includes hands-on labs. The presentations, demos and screencasts will be added in a future release of the training kit. Each lab has an overview page which lists the pre-requisites for the lab in details.

The following are the excerpts from the kit's details page:

ASP.NET MVC

Developing ASP.NET MVC Applications

This lab shows the fundamentals of creating and ASP.NET MVC applications, their core concepts, how they work and how to use them. You will also learn what is needed and how to perform unit testing while creating the application and how to extend the ASP.NET framework to use an IoC container.

ASP.NET Dynamic Data

Introduction to ASP.NET Dynamic Data

In this lab, you will learn how to quickly create and customize a data-driven Web application without the need to write a great amount of code. The application created uses the ASP.NET Dynamic Data features to offers viewing, editing, filtering and sorting operations over the data model of the underlying database.

ASP.NET AJAX History

Introduction to ASP.NET AJAX History

One problem faced by a typical AJAX application is that the browser’s Back button does not move back one AJAX step, but moves back one entire document, which is unlikely to be what the user expects. In this lab, you will learn how to use the ASP.NET AJAX History features to insert history points using server controls or client-side code, so that the user may click the browser’s Back and Forward buttons to move between AJAX states.

ASP.NET Silverlight Controls

Introduction to ASP.NET Silverlight Controls

In this lab, you will learn how to use the ASP.NET controls for Silverlight to add rich media capabilities to your Web application. From one side, you will learn about the ASP.NET MediaPlayer control which lets you integrate audio and video into a Web site. On the other side, you will learn about the ASP.NET Silverlight generic control to integrate XAML into your Web site.

ADO.NET Data Services

Introduction to ADO.NET Data Services

This lab highlights the creation of a data service using the Entity Framework as its data source, and shows how to consume the service using both the .NET client APIs and the ASP.NET AJAX APIs. Additionally, you will use Service Interceptors to add validation support and Service Operations to perform custom queries.

ADO.NET Entity Framework

Introduction to ADO.NET Entity Framework

In this lab, you will learn how to create an Entity Data Model using the ADO.NET Entity Framework Tools and how to consume it using the Entity Framework APIs.

I recommend downloading the .NET 3.5 Framework Enhancements Training Kit to get familiar with the new concepts.

Let me know your thoughts by putting comments about the usefulness of the training kit.

 

Thursday, April 17, 2008

Vista SP1 is released

All Vista users, you should install Vista SP1 and here is why

 

Technorati Tags: ,

Wednesday, April 09, 2008

All that "Googles" is not gold...

Well, agreed that most of the stuff that Google has put their hands on has been gold, but not App Engine. I think it is too early to judge but why just limit it to Python. People compared it to Amazon's EC2 - my take it is not even close. Amazon is a totally different beast altogether. Well, 10,000 invites to try the program was gobbled up fast, but only time will tell what happens. Another theory could be to compete with Facebook who have opened up and allowed developers to write code against their API and host their apps on Facebook.

Or it could just be another thing that Google can afford to do with the kind of money they have.

Friday, April 04, 2008

Silverlight 2 Tools Beta 1 For Visual Studio 2008

Microsoft just recently released Silverlight 2 Beta 1 at MIX08. They had also released the Expression 2 Betas and the Expression Blend 2.5 March 2008 Preview. These are truly exciting technologies that help us to create stunning RIA web applications.

Usually it is a bit of challenge for me to setup newer versions as they are released but I had come to believe that is a small price to pay for living on the edge. But, this time when Microsoft released Silverlight 2 Beta 1 and its additional SDKs/components to support Visual Studio 2008, they made the installation easy and in one package. So if you are interested, go ahead and download the Microsoft Silverlight Tools Beta 1 for Visual Studio 2008. The installation actually takes care of everything that is required and installs the following:

  • Silverlight 2 Beta 1
  • Silverlight 2 SDK Beta 1
  • KB949325 for VS2008
  • Silverlight Tools Beta 1 for VS2008

And it includes:

  • Visual Basic and C# Project templates
  • Intellisense and code generators for XAML
  • Debugging of Silverlight applications
  • Web reference support
  • Integration with Expression Blend

Just make sure you uninstall any previous installations of Silverlight versions or any Silverlight SDK components, otherwise the installer will throw an error. For other scenarios, errors and gotchas read the excellent post from Bradley Bartz, which covers the installation process in detail.

Wednesday, April 02, 2008

Amazon starts new Amazon TextBuyIt service

amazontext Continuing on its innovation trail, Amazon has again done it. It released a new service TextBuyIt, which allows anyone with a SMS capable phone to send a message to Amazon to get pricing details of a product and then choose to buy it.

Very easy, just SMS the item name or author, artist ISBN/UPC code or any keyword to 'AMAZON' (262966). Amazon sends back a text message with the details and with instructions to buy the product by replying with 1 or 2 to buy an item. If the person chooses to buy, the person has to sign-in with an email address and zip code. Then an automated call is received by the buyer for order confirmation. Also, the first time one uses the service, a separate help text message is sent with all commands applicable to the service.

Truly remarkable. If you have any experience with the service (good or bad), please share it in the comments.

Technorati Tags: ,,

Visual Studio 2008 Tip of the day - Vista Sidebar Gadget

vistagadget I found the Visual Studio 2008 Tip of the day Vista Sidebar gadget and I love it. I am surprised to find a lot of things that I did not know about VS 2008.

 

Tuesday, April 01, 2008

My new found love for HD-DVD movies

While I was reading and following the format war between HD-DVD and Blu-Ray Hi-Def formats, I was still a little hesitant in buying a HD-DVD and Blu-Ray player, as the prices were still high. But, things changed overnight, when the unfortunate step was taken and HD-DVD format lost the battle. Toshiba stated that it will not develop, manufacture or market HD DVD players and recorders. Microsoft followed suit with withdrawing its future support for HD DVD and support for its HD DVD add-on for XBox 360. Others like Netflix, BestBuy, Walmart have since announced their abandonment of the format.

But, for me that was a cloud with a silver lining. I bought the HD-DVD player for XBox for a low price of $49.99. It came with the King Kong movie. I watched it that night. I was blown away.

That started a uncontrollable spiral to get the slowly vanishing HD-DVD movies off the shelves. So far, I have collected the following titles:

King Kong

The Chronicles Of Riddick

The Kingdom

Transformers

 

 

 

 

Mission Impossible III

Batman Begins

300

 

 

 

 

They are one of the best titles in HD DVD format. Click on the titles to read the reviews from High-Def Digest.

Technorati Tags: ,,,,

Roundup of April's Fool Day 2008 Bluffs

Well, here is an assortment of April's Fool Day 2008 news story headlines:

My best pick: XBox.com First look for long time gamers - I actually wanted to believe it!

InfoWorld: Microsoft, Yahoo agree on buyout price

Redmond nabs Yahoo's data centers, Web properties, and ad platform for $47.2 billion.

Google: gDay with MATE

Search tomorrow’s web, today! Google Australia has introduced a new feature, enabling you to search content on the internet before it is created.

Google: Announcing Project Virgle

Virgle's goal is simple: the establishment of a permanent human settlement on Mars.

Google: Gmail Custom Time

Introducing Gmail Custom Time. Be on time. Every time.

Telegraph: Flying penguins found by BBC programme

The BBC will today screen remarkable footage of penguins flying as part of its new natural history series, Miracles of Evolution.

The Independent: Ramsay vows to forswear bad language after he gets the brush-off from Australia

His name has long been synonymous with abuse, asterisks and four-letter words, but Gordon Ramsay has had a dramatic change of heart on swearing. In a move that will have diners choking on their oven-roasted Bresse pigeon, he plans to ban foul language in all his restaurants, whether in the kitchens or the dining areas.

Daily Mail: Mile-high tower: Saudi prince promises £5bn desert spire TWICE as tall as nearest rival being built

Plans for a mile-high tower in the Saudi Arabian desert have been unveiled by the billionaire owner of London's Savoy Hotel.

Inhabitat: MICROCHIPS THAT RUN ON BODYHEAT

Today’s microchips, while tiny, still use a fair amount of power. This means that batteries have to be large and don’t usually last very long. But what if microchips were just a little bit more efficient? That’s what a team of engineers at MIT was thinking when they set out to redesign the microchip to make it even more efficient. The result is a microchip with a power consumption that is so low it can be recharged by your very own body heat.

And, last but not the least, a link to a website that has a collection of April's Fools Day 2008 links on the web. Enjoy!

Comment with your own stories and experiences.

Google