2012-06-05 12 views
7

के लिए विफल रहता है मैं वेब-तैनाती की कोशिश कर रहा हूं।MsDeploy वेब डिप्लॉय

क्योंकि मैं इस पुन: पेश करने में सक्षम होना चाहता था, मैं एक परीक्षण प्रणाली

विंडोज 2008 आर सी इस्तेमाल किया, आईआईएस 7.5 + तैनाती पैकेज मैं http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/ अनुरेखण http://technet.microsoft.com/en-us/library/ff729439(v=ws.10).aspx

मेरे द्वारा बनाए गए सक्रिय का उपयोग कर तैनाती के लिए कॉन्फ़िगर एक नया डब्ल्यूसीएफ सेवा आवेदन, (कुछ भी नहीं बदला गया) इसे संकलित किया गया और

पर तैनात करने की कोशिश की मुझे निम्नलिखित प्रतिक्रिया मिली (कुछ मिनट के बाद)

------ Build started: Project: WcfService1, Configuration: Debug Any CPU ------ 
    WcfService1 -> C:\Development\BrandShield\Services\WcfService1\bin\WcfService1.dll 
------ Publish started: Project: WcfService1, Configuration: Debug Any CPU ------ 
Transformed Web.config using Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config. 
Auto ConnectionString Transformed obj\Debug\TransformWebConfig\transformed\Web.config into obj\Debug\CSAutoParameterize\transformed\Web.config. 
Copying all files to temporary location below for package/publish: 
obj\Debug\Package\PackageTmp. 
Start Web Deploy Publish the Application/package to http://dev1:8172/msdeploy.axd/MSDEPLOYAGENTSERVICE ... 
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Error : Web deployment task failed.(Could not complete the request to remote agent URL 'http://dev1:8172/msdeploy.axd/MSDEPLOYAGENTSERVICE'.) 
This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server. 
Error details: 
Could not complete the request to remote agent URL 'http://dev1:8172/msdeploy.axd/MSDEPLOYAGENTSERVICE'. 
The underlying connection was closed: An unexpected error occurred on a receive. 
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. 
An existing connection was forcibly closed by the remote host 
Publish failed to deploy. 
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ========== 
========== Publish: 0 succeeded, 1 failed, 0 skipped ========== 

और dev1 सर्वर पक्ष पर कोई लॉग (बिल्कुल नहीं)।

मैंने कई बदलावों की कोशिश की है, लेकिन यह पुन: पेश करने की सबसे सरल, आसान चीज़ है। और यह असफल रहा है।

कोई विचार?

+0

देखो:

चरण 1:

System.Net.HttpWebRequest req = (HttpWebRequest)WebRequest.Create(Url); ServicePointManager.ServerCertificateValidationCallback = AcceptAllCertifications; 

चरण 2 04/वेब तैनाती-ऑन-iis7.html –

उत्तर

9

मुझे समस्या मिली। "Http: //"

बजाय

dev1: के रूप में 8172/msdeploy.axd

इस actaully एक ही है: 8172/msdeploy.axd मैं dev1 इस्तेमाल किया "https: //" dev1: 8172/msdeploy। axd, जो किसी कारण से तैनाती एजेंट सुनता है।

यहाँ से, आप एक नया त्रुटि प्राप्त होगी:

Could not complete the request to remote agent URL 'https://dev1:8172/msdeploy.axd?site=Default web site'. 
The underlying connection was closed: 
Could not establish trust relationship for the SSL/TLS secure channel. 
The remote certificate is invalid according to the validation procedure. 

इसका कारण यह है कि आप SSL के लिए एक प्रमाण पत्र की जरूरत नहीं है।

प्रकाशित प्रोफ़ाइल विंडो में, आप "अविश्वसनीय प्रमाणपत्र अनुमति दें" चेकबॉक्स

जांच करने की आवश्यकता है और succceed चाहिए प्रकाशित करते हैं। सौभाग्य

0

प्रमाण पत्र पारित द्वारा: http://mperlstein.blogspot.co.il/2012/ पर

public Boolean AcceptAllCertifications(Object sender, System.Security.Cryptography.X509Certificates.X509Certificate certification, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors) 
{ 
    return true; 
} 
संबंधित मुद्दे