The name of the site I'm building has changed, and so I need to rename the site in the Commerce Server Manager. How can I accomplish this. i'm aware I'll need to change all references in the web.config for the site, but in particular, how can I change the name of the site in the CSM
Thanks,
Dave

Can I rename a Commerce Server Site?
Swaykid
Joe,
Thanks, that does seem to allow the renaming, although I haven't confirmed it will actually change the entries in the web.config.
Dave
Batool
Hi Dave,
The supported way is packing and unpacking your site. You may need to change certain references in your web.config if the packager didn't pick up on the proper attributes to auto-replace.
The unsupported way is by changing the tables in the MSCS_Admin database, modifying the web.config, and csapp.ini files.
Cheers,
Colin
haihtomy
Hi Dave,
When you say the site doesn't appear in CSM do you mean the listings under Commerce Sites doesn't exist or the listings under the Applications folder in the site definition doesn't exist If it's the former then your site shouldn't be working at all. If it is the latter then you may be missing an MSCS_Address resource entry in the site definition. To further validate this you can run a SQL query against your MSCS_Admin database to find the resources attached to the site:
The above query should show your web services and your core site (where s_Type = Address). Let me know if that helps.
Cheers,
Colin
Territorial Musings
Colin,
The query you gave me returns the web services for the site, but not the main site itself. I kind of figured this was the problem after I saw your last post in a different thread about this issue and checked the MSCS_Admin tables for the resources. The site does work however as expected. My main concern is that the lack of the site in the resources table may mess up something down the line without me knowing about it. I also don't know if populating that table with a record for my main site can be done manually because there are a bunch of resource flags I'm not familiar with that need to be set. Any thoughts on whether I should even bother to make it right
Thanks for the help,
Dave
omicron9839102123
Hi Dave,
If you download the site configuration tools from my blog post you'll have a proper API-based method for setting those properties:
Unfortunately these sets of properties are the few that lack a description in the ExtendedProps table. I'll do my best to describe then:
Hope that helps.
Cheers,
Colin
dba72
Colin,
Yes, the packing and unpacking method worked supurbly, the only glitch being that I did have to manually rename all of the web.config references to the new name, but the error is quite to the point and easy to pinpoint :)
As an aside, have you or anyone you know had issues where when you package a site on a dev server and unpack it on the deployment box, the site appears in IIS and works correctly, but doesn't appear in the Commerce Server Manager as a Commerce Server Site
It worked for the web service sites but not for my main app...i'm curious to know if I packed it wrong..I posted this under a different thread but have had no luck with thoughts so far :)
Thanks,
Dave
levyuk1
Dave,
The easiest way I can think of doing this is to package up your existing application using PUP.exe, and then unpackage it with a different site name. Ideally, this *should* allow you to rename databases, web config entries, and site names during unpackaging.
Not the renaming everything manually is a bad idea, but the last thing you want to do is make a typo and have everything break because of that.