Site Definitions

I have one particular web site definition which shows two copies in place of one.

I have one directory containing all the files but when I look in manage sites there are always two definitions.

I have deleted one copy several times but the extra copy always returns.

It seems I can work on both copies as they refer to the same directory. It's just a puzzle why two always appear in the list
johnhardyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Havin_itCommented:
Hi,

It may be that something in the Registry is screwing with what the app displays.  Try opening up regedit (Start menu > Run > Regedit) and take a look at the following keys:

HKEY_CURRENT_USER\Software\Macromedia\Dreamweaver 6\Sites
HKEY_CURRENT_USER\Software\Macromedia\Dreamweaver 6\Sites_Backup

All your site definitions are configured in these keys.  If the duplicates exist in here, try deleting one of them (don't do this while DW is running!).  Make your changes in both the above keys if they match, and back them up before you do anything (right-click the key in the tree-view, and select 'export...')
johnhardyAuthor Commented:
Thanks so much

In HKEY_CURRENT_USER\Software\Macromedia\Dreamweaver 6\Sites numbers go up to -Site29

In HKEY_CURRENT_USER\Software\Macromedia\Dreamweaver 6\Sites_Backup numbers go up to -Site30

Should I delete Site30?

Regards

John




Havin_itCommented:
I wouldn't, I have an extra one in Sites_Backup too (if you expand it, you'll probably find it's empty). It probably has a purpose (possibly as a template for new site definitions).

First, does the number of keys in 'Sites' match the number of sites you have, or is there one more?  If the latter, you should look through them to find which one is the dupe.

Sidenote:  if the rogue key is an intermediate number (for example, Site3 out of 5 sites) DW may get confused if it's missing.  It won't be expecting gaps in the numbering of sites, so there might be a confusion there (if you just delete Site3 then you're left with Site0,Site1,Site2,<GAP>,Site4).  Always tread carefully when modding the registry.

Perhaps instead try re-defining one of the dupes in Dreamweaver; Set the site-root to a different folder, change or remove any remote or testing-server info, etc.  Then close and re-open DW and see whether your changes have taken.  If so, have another shot at deleting it.
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

johnhardyAuthor Commented:
Thats interesting, when I come to start counting the sites I notice there are other sites duplicated one, three times!

However the site which I am interested is not listed in Sites or in Sites_Backup

Havin_itCommented:
Not there, you say? Rather odd...

Have you by some chance been using DW under different user-accounts?  If so, you might want to look at this key from each different login.  [Although that still wouldn't quite explain why other users' sites are showing up in your login...]

Another approach:  Try exporting all the site defs as .STE files (Site > Export...), then delete all sites, and re-import them.
johnhardyAuthor Commented:
Thanks only I use this machine so theres no other user.

I had three definitions for another site so I have deleted them all, recreated from an ste. It will be interesting to see if they come back. If that is succesfull then I will do the others.

Should the .ste files be kept anywhere special please?
Havin_itCommented:
No, they are only created on-demand - Dreamweaver doesn't use them, as the information they contain is in the registry.  If they're your only backup, just keep them somewhere *safe*!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.