Great question! I don't think this has been documented yet so I'll give it a shot.
Configuring a local development install of AC7
A local dev install is pretty similar to a full IIS deployment. The main battle is in how OS permissions are handled.
From your original post, it sounds like you've got all the basics started well. VWD is installed, SQL 2005 Express is going and you can connect to the db. We'll check IIS a little later. Windows XP Professional is required because XP Home lacks the local file permissions functionality necessary to host .Net web sites.
Permissions
Let's start with the first step, permissions. Find your site folder and right-click/properties. Hit the Security tab. Make sure you have the user ASPNET listed with full permissions. Click the Advanced button and click the "Replace permissions on the..." checkbox. Choose apply. This will force WinXP to re-apply the currently listed permissions to every file and sub-folder in your site. Failure to do so will result in IIS being able to see the root pages of your site but not anything beneath it.
It's important to note that WinXP
does not do permissions inheritence like Win2K3 does. When you add a new file to WinXP folder, it inherits a different set of permissions than what is already assigned to the folder. So keep in mind that you will need to repeat this first step if you add new files to the site outside of VWD. I'd explain it better, but it all depends on how the new file is created and under what context it was created. Another topic for another time...
IIS Setup
Now let's go over IIS setup. I assume you've already created a folder and have all the store files located in it. You've got IIS installed, but we need to make sure it's configured properly for a .Net 2.0 application.
First, open your Internet Information Services Manager. Expand the Local Computer and then the Web Sites folder. You should see one site, "Default Web Site". WinXP keeps all locally hosted websites in a single "virtual site", unlike Win2K3 which allows multiple virtual site folders. Expand "Default Web Site".
Now, if you don't have your website listed here then we need to add it. Just right-click "Default Web Site", choose New and choose Virtual Directory. Follow the wizard prompts and specify an alias of your choosing(a site name to distinguish between different hosted sites). For the purposes of this document, let's use the word "Solunar" but you can use anything you want. Now choose the local path to the site, click next and leave the permissions alone - those don't matter for our purposes. Click Finish and your newly-minted virtual directory is listed (and active) on your IIS install.
If we've already got it added or you just added it, right-click and choose properties so we can verify settings. First things first, go to the Documents tab and make sure "Default.aspx" is added and the first document listed. If it's not, add it and use the arrows to re-position it to be the first document in the list. This makes sure that IIS always looks for a default.aspx page before any other page in a website.
Now click the Home Directory tab and make sure the Application Name field has something in it and the button next to it says "Remove". If it doesn't just click the "Create" button, IIS should populate the Application Name field with the site alias you specified earlier. What you just did is tell IIS that this website is to be treated as a full .Net application instead of a bunch of individual HTML/ASP pages.
Next click the Directory Security tab and the first button for Authentication Control. Make sure "Anonymous Access" is checked (leave the rest alone, WinXP will set the proper defaults for you) and
be sure to check Integrated Windows Authentication at the bottom. This is critical if you want to use the VWD debugger...and you will
Hit the OK button and choose the ASP.Net tab. Here we just need to make sure the ASP.Net version is set to 2.x. That's it - hit OK and you'll be returned to the virtual directory listing. At this point I usually Restart IIS just to be clean - Right click the Local Computer icon, choose All Tasks and select "Restart IIS". WinXP will restart all IIS services for you. Close IIS Manager, we're done with it. Consider adding a shortcut to it to your desktop, it comes in handy when debugging so you can quickly restart IIS in the event a file or page has locked, stuck in a loop etc.
AC7 Licensing
Now we get to the fun part. If you've copied your site from a live environment, it was probably already licensed. Able licensing is such that the HTTP engine will automatically redirect to the live site domain, even if the site is hosted on a completely different host name. This makes for a good copy protection scheme but makes for a bad developer install. To force AC7 to "think" it's a fresh install from a license perspective, just rename the CommerceBuilder.lic file in the ~/App_Data/ folder to CommerceBuilder.old.
If the install wasn't licensed, you're probably running in demo and you're ready to go.
Hit the site
Every web server can be contacted in two ways. You can hit with a domain name, or you can it with a straight IP address. Since you're most-likely not hosting DNS on your home/development PC, we'll go the IP address route for the purposes of this document. Let's assume your development PC has an IP address of 192.168.1.100 today. I use the word "today" because it is probably dynamic, so technically it could change on you. But that's ok, you'll know it pretty quick because the site won't come up at all.
To determine your current IP address, just open a Command Prompt window and enter IPCONFIG. WinXP will tell your your IP right there.
Let's see if the site works - open your web browser, type the address
http://192.168.1.100/solunar/ and press enter. You should see your hard drive light go crazy, that's IIS compiling the entire AC7 site into more efficient web-server language. Depending on your PC oomph, this could take 3 minutes or longer. My PC takes about 6 seconds, but I spent $3,000 custom-building it for this very purpose
If it doesn't load, don't panic: Just wait 3-5 minutes until either the home page appears or the hard drive stops going crazy. Now try hitting the site again with the same URL, it should come up pretty quickly since now it's been compiled, like 5-10 seconds at the most.
Opening the site in VWD
Fire up your copy of VWD. Select File, Open Web Site. Choose the Local IIS option on the left side. VWD should now connect to your local IIS install and show you the available aliases currently being hosted. Select the "Solunar" one and click OK. VWD should now open the site and you can begin development work.
Troubleshooting
There are several things that can keep the site from loading locally. I'll cover the most common possibilities here and expand the post as more are confirmed.
1. You didn't wait long enough. IIS on WinXP isn't known for speed, especially now that you've loaded a full SQL database engine and still have all the other stuff your PC was doing. Give it 5 minutes and relaunch the home page, your PC might just be underpowered for what you're trying to do.
2. You copied your DB from a live install with SSL enabled. You're not hosting an SSL certificate locally so AC7 redirects any secure logins to a (now) invalid URL. This is easy to fix, just open your SQL Manager, open the AC_StoreSettings table and set the
SSL Enabled flag to "false".
3. You copied a live license file when you copied the live install down to your WinXP development machine. The AC7 HTTP engine will automatically redirect to the licensed domain even if the host server is running on a different domain or IP. This is also easy to fix. Just rename the ~/App_Data/CommerceBuilder.lic file to CommerceBuilder.old. now AC7 thinks it's a fresh install (from a license perspective) and reverts to unlicensed mode. Follow the Able installation documentation on how to license a development copy or activate the "demo" mode (new to RC3).
4. Port 80 is already in use. IIS hosts websites on TCP/IP port 80 by default. If you have other software running on your PC that is listening on port 80, IIS can't snag the port. This will require more advanced troubleshooting and cannot be covered in this document.
Conclusion
There are several steps to configuring a local development install of any .Net application. The trick is knowing what steps to accomplish and in what order. It's a really, really good idea to make a full system backup both before and after you begin this task. As you begin development work on your install, regular backups ensure hard-earned programming work isn't lost to the 1:30am accidental right-click/delete syndrome. Trust me on that one
