2016-05-06 48 views
1

剛剛從這裏下載的模板創建了一個Bot框架的應用程序:http://aka.ms/bf-bc-vstemplate什麼是「AppOffline」,它阻止我的機器人應用程序發佈到IIS Web服務器?

它在測試模擬器中運行良好。但是發佈到IIS服務器時,我得到這個錯誤:

Error Web deployment task failed. ((5/6/2016 3:03:54 PM) An error occurred when the request was processed on the remote computer.)

(5/6/2016 3:03:54 PM) An error occurred when the request was processed on the remote computer. 
Exception has been thrown by the target of an invocation. 
    at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context) 
    at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context) 
    at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder) 
    at System.Runtime.Serialization.ObjectManager.DoFixups() 
    at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) 
    at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) 
    at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage) 
    at Microsoft.Web.Deployment.Base64EncodingHelper.DeserializeHelper(BinaryFormatter formatter, Byte[] buffer) 
    at Microsoft.Web.Deployment.Base64EncodingHelper.Deserialize(String str, Exception& handledException) 
    at Microsoft.Web.Deployment.SerializationHelper.Deserialize(String str) 
    at Microsoft.Web.Deployment.DeploymentAgentWorkerRequest.GetTraceMessage(String[] additionalMessage) 
    at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentWorkerRequest workerRequest) 
    at Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAgentAsyncData asyncData) 
    at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyncData asyncData) 
    at Microsoft.Web.Deployment.DeploymentAgent.BeginProcessRequest(DeploymentAgentWorkerRequest workerRequest, AsyncCallback callback, Object extraData) 
Unrecognized rule 'AppOffline'. ParkingBot  0 

什麼是AppOffline錯誤?

回答

1

檢查您的部署文件夾中是否有名爲app_offline.htm的文件。該文件適用於部署時,並希望在完成之前阻止登錄該網站。部署後,該文件可能未被刪除。

0

我工作圍繞它通過執行以下操作:

  • 找到.pubxml文件部署
  • 切換EnableMSDeployAppOffline真到假 。

您可能需要此功能,因此它可能不是一個選項。但是我的應用程序沒有這個要求。

相關問題