Robba's Weblog

My thoughts on Tech and life.

May 2007 - Posts

ASPNET_RegIIS failed (how to correct)

WOW, it has been a while since I had something to blog about.  The last week or so has been very busy, but filled with the normal everyday happenings.  Nothing to really pique my noggin and necessitate me to dig in to find an answer to what's going on.  But today I got something so I thought I would share.

I was installing a web app on an XP Pro box that had the 1.1, 2.0 and 3.0 frameworks all installed, however the app kept failing its install with an error that aspnet_regiis was failing.  Well honestly I've never run into that before and I wasn't even sure if the app would install on IIS 5.1.  The only things I was finding on the web mentioned having that error when trying to run the app on a 64bit system.  Well, just to be sure I verified that I had the 32bit version of XP on the box and kept looking.  Eventually I found a post that had nothing to do with my app, but I thought I'd give it a try.

Running aspnet_regiis -i from a cmd prompt (within the C:\Windows\Microsoft.NET\Framework\v2.0.50727 folder) cleared up my problem.  Seems that somehow the 2.0 framework wasn't running and being connected to by IIS.  Running the command registered the framework and all was good.

By the way Exchange is coming along well.  Tonight I should be installing it on the domain in order to start getting everything set for next month's roll out.  I'm really excited about some of the features Exchange 2007 has, like the differentiation between user account and resource accounts.  (I know that sounds minor and silly, but hey I'm a network geek.)

Well, not a long post, but it was kinda interesting solving that little puzzle today.
 

Posted: May 15 2007, 08:19 PM by robba | with 1 comment(s)
Filed under: , ,
Setup SQL2005 connection using secondary network

On Friday I had an opportunity to setup a web application connecting a front end IIS server to a backend SQL 2005 server using two separate networks.  I addition to connecting via a dedicated secondary network I was also connecting to a second instance of SQL 2005 on the server.  The first network is the 172 network that is used throughout the company.  The second network (192) is a dedicated gigabyte network used only for the IIS and SQL servers to communicate SQL data.  I hadn't setup a solution like this before now, but decided it would be beneficial to a project that we needed to run.  So let me break down the steps to put this in place.

1. Both servers need to have two NICs.  I designated NIC 1 as the 172 network and NIC 2 as the 192 network on each server.  I set the SQL server NIC 2 to use 192.168.0.100 and the IIS NIC 2 to use 192.168.0.102.

2. Install the SQL 2005 Connection tools on the IIS server.  You'll need this to direct the client connection to the correct port and IP for the instance on the SQL server.

3. On the SQL server open the SQL Server Configuration Manager\ SQL Server 2005 Network Configuration\ Protocols for Instance Name (where instance name is the name of the SQL instance) and make sure that IP2 is Active, Enabled and has the correct IP and port.  The IP should be the IP for NIC 2 of the SQL server.  In this case I used port 1533 as 1433 was already being used by the first instance of SQL running on the server.

 

4. On the IIS server open the SQL Server Configuration Manager\ SQL Native Client Configuration\ Aliases.  Create a new alias for the SQL server.  This alias is what will be used in the connection string of the web application.  In this case I had to configure not only the SQL server IP but also the instance name of the SQL server.  Having this connection set up in the connection manager gives the web app a shortcut to the explicit directions to the server name, instance name and the IP of the SQL server that is needed for the connection.  In this case the SQL instance is at IP 192.168.0.100, port 1533 and instance name Stage.  In the web application connection string all that is needed to designate the server is SQL001Stage.

5. Make sure that the firewall is not enabled on NIC 2 for either server.

6. Configure the connection string to connect to the SQL server and recycle the app pool.

At this point the web application should be connecting to the SQL server and returning data.

 
Thanks to Jason for his assistance getting this set up.

Posted: May 05 2007, 10:03 PM by robba | with no comments
Filed under: , ,