Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4189
  • Last Modified:

I'm getting an Error: Site '.' does not exist when using msdeploy to move sites to a new server

I've migrating about 30 websites from IIS 6 to an IIS 7 server farm. For one site when I run msdeploy -verb=sync -source=package:c\site.zip -dest:auto > c:\deploy.log I get a error. The error is Error: Site '.' does not exist. Here is my log, Info: Adding MSDeploy.contentPath (MSDeploy.contentPath).
Info: Adding contentPath (.). I have not been able to find anything about fixing this. I've seen where the default website gets this error but you just create it. You cannot create a website with the name of (.). Someone please help!
0
medacRyan
Asked:
medacRyan
  • 10
  • 6
1 Solution
 
pcsmitpraCommented:
Please enable this under IIS 7 rule  -> Metabase edit and script support . And then try to run the same command.

Hope this will help.
0
 
medacRyanAuthor Commented:
Pcsmitpra thank you for your comment. Could you please elaborate, what are the steps to enabling this under IIS 7 rule? I new to administering web servers and I don't quite understand.
0
 
pcsmitpraCommented:
Windows 2008 -> Server Manager -> Add role Service -> Under Management tools  -> IIS 6 management compatibility ->
Select
IIS6 metabase compatibility
IIS 6 WMI compatibility
IIS 6 scripting tool

0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
medacRyanAuthor Commented:
I already have that installed. All the other websites I've migrated have gone smoothly. I'm only having a problem with this one site.
0
 
pcsmitpraCommented:
msdeploy -verb=sync -source=package:c\site.zip -dest:auto > c:\deploy.log


> Please check the command 'c\site.zip' it is missing ' : ' .
> If it is correct, Please remove this package and create the package again by msdeploy .
> Try to run again with new package.
0
 
medacRyanAuthor Commented:
Sorry my original post had a typo. the cmd was msdeploy -verb:=sync -source=package:c:\site.zip -dest:auto  > c:\deploy.log. I have recreated the package and ran it again with the new package. I'm still getting the same error. The only thing that is different from this site is the cert that is associated with it. The previous admin imported the cert so you cannot export the private key. Could this have something to do with this?
0
 
medacRyanAuthor Commented:
Sorry another typo the cmd was msdeploy -verb=sync -source=package:c:\site.zip -dest:auto  > c:\deploy.log
0
 
pcsmitpraCommented:
Wow , Great finding. As you have a website running with SSL without any private key. You could not EXPORT same with SSL. So, You should generate the package without SSL now. Second, You wont be able to use same SSL on IIS 7 because it does not have 'private key' . So you need to order a NEW one.
0
 
medacRyanAuthor Commented:
How do I generate the package without SSL? Here is my cmd to generate the package: msdeploy -verb:sync -source:metakey=lm/w3svc/48171 -dest:package=\\server\c$\site.zip -enablelink:AppPool
0
 
pcsmitpraCommented:
On IIS 6.0 , launch the command prompt and run this command
httpcfg query ssl
Note its output on a notepad , then run
httpcfg query ssl | findstr Hash

It will list out some values for Hash  like :
Hash       : 1474561214474561 5456a4c56456v12f3121456484 46454
Note this output on another notepad , Change the Space with '0' ... We have a command to modify :
Actual command : msdeploy.exe -verb:sync -source:cert=(STORENAME\HASHOfCERTIFICATE) -dest:cert=(STORENAME\HASHOfCERTIFICATE),computername=DESTINATIONCOMPUTER

STORENAME  >>>> You can find this value in first comamdn output as name "CertStoreName"
HASHOfCERTIFICATE >>>>> Output of second command
DESTINATIONCOMPUTER >>>> Your IIS 7.0 server

You can run this command to move the SSL certificate from your one server to IIS 7. Its a long method. But I have tested it for you. But still I am doubtfull because you are running an SSL without private key.
Probably you need to remove the SSL from your website on IIS 6, then generate the package and then do the migration.

Hope this will help. Cheers.
0
 
medacRyanAuthor Commented:
I was looking and the cert has a private key I just can export it. When it was imported it the check box was not checked to allow the private key to be exportable. If I fun the above cmd will that import the cert and private key since I can't do it the normal way?
0
 
pcsmitpraCommented:
First you can export and import SSL cert, ,manually or using above mentiond method; then you can migrate the website package. So at the new server it wont give error because of SSL
0
 
medacRyanAuthor Commented:
I'll try to import the cert then run the package.
0
 
medacRyanAuthor Commented:
I was able to import the cert making the passkey exportable with jailbreak. I recreated the package and tried to deploy it but I'm still getting the same error. I've also manually imported the cert with the passkey and still getting the error. I'm at a loss.
0
 
medacRyanAuthor Commented:
I Manually copied the website over. Still unknown why msdeploy didn't work.
0
 
medacRyanAuthor Commented:
I was unable to use msdeploy to move the site.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 10
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now