Solved

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

Posted on 2011-02-28
18
3,304 Views
Last Modified: 2012-05-11
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
Comment
Question by:medacRyan
  • 10
  • 6
18 Comments
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35025873
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
 

Author Comment

by:medacRyan
ID: 35026536
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
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35026689
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
 

Author Comment

by:medacRyan
ID: 35026759
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
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35027155
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
 

Author Comment

by:medacRyan
ID: 35027694
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
 

Author Comment

by:medacRyan
ID: 35027716
Sorry another typo the cmd was msdeploy -verb=sync -source=package:c:\site.zip -dest:auto  > c:\deploy.log
0
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35027754
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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:medacRyan
ID: 35027932
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
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35028310
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
 

Author Comment

by:medacRyan
ID: 35028546
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
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35034320
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
 

Author Comment

by:medacRyan
ID: 35035918
I'll try to import the cert then run the package.
0
 

Author Comment

by:medacRyan
ID: 35039099
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
 

Accepted Solution

by:
medacRyan earned 0 total points
ID: 35506468
I Manually copied the website over. Still unknown why msdeploy didn't work.
0
 

Author Closing Comment

by:medacRyan
ID: 35711369
I was unable to use msdeploy to move the site.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now