Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "AppOffline" which prevents my bot application from getting published to the IIS web server?

Just created an application with the Bot Framework, from the template downloaded here: http://aka.ms/bf-bc-vstemplate.

It works well in the testing Emulator. But when publishing to the IIS server, I got this error:

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   

What is the AppOffline error?

like image 674
Blaise Avatar asked May 06 '16 19:05

Blaise


3 Answers

I worked around it by doing the following:

  • locate the .pubxml file for your deployment
  • toggle EnableMSDeployAppOffline True to False.

You may need this feature, so it might not be an option. However my application doesn't have this requirement.

like image 85
Tyson Kamp Avatar answered Nov 11 '22 13:11

Tyson Kamp


Make sure you have the latest version of IIS Web Deploy installed on your server. I was getting this error.

I needed to install Web Deploy 3.6 on our server fixed it.

like image 5
jbtule Avatar answered Nov 11 '22 12:11

jbtule


Check to see if you have a file named app_offline.htm in your deployment folder. That file is for when you're deploying and want to prevent logins on the site until you're done. That file might not have been deleted after deployment.

like image 1
Joe Mayo Avatar answered Nov 11 '22 11:11

Joe Mayo