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,798 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 

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
 

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

729 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