将Web项目发布到azure失败:“IsolatedCSPack”任务意外失败

将Web项目发布到azure失败:“IsolatedCSPack”任务意外失败,第1张

概述我有Web应用程序,我想发布并上传到 Windows azure. 我使用Visual Studio 2008. 我点击“发布”,在“发布云服务”窗口中选择“仅创建服务包”,然后单击“确定”. 发布失败,例外是: Error 26 The “IsolatedCSPack” task failed unexpectedly. System.OutOfMemoryException: Exceptio 我有Web应用程序,我想发布并上传到 Windows azure.
我使用Visual Studio 2008.
我点击“发布”,在“发布云服务”窗口中选择“仅创建服务包”,然后单击“确定”.
发布失败,例外是:

Error 26 The “IsolatedCSPack” task Failed unexpectedly.
System.OutOfMemoryException: Exception of type ‘System.OutOfMemoryException’ was thrown.

Server stack trace:
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer,Int32 offset,Int32 count)
at MS.Internal.IO.Packaging.SparseMemoryStream.copyMemoryBlocksToStream(Stream targetStream)
at MS.Internal.IO.Packaging.SparseMemoryStream.WritetoStream(Stream stream)
at MS.Internal.IO.Zip.ZipIOfileItemStream.Save()
at MS.Internal.IO.Zip.ZipIolocalfileBlock.Save()
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean closingFlag)
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(ZipIolocalfileBlock blockRequestingFlush,Boolean closingFlag)
at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Packaging.PackagePart.Close()
at System.IO.Packaging.Package.DoClose(PackagePart p)
at System.IO.Packaging.Package.DoOperationOnEachPart(Partoperation operation)
at System.IO.Packaging.Package.System.Idisposable.dispose()
at Microsoft.ServiceHosting.Tools.Packaging.PackageCreator.CreateRolePackages(ModelProcessor modelProcessor,PackageManifest applicationManifest,Package applicationPackage)
at Microsoft.ServiceHosting.Tools.Packaging.PackageCreator.CreatePackage(Stream outputStream)
at Microsoft.ServiceHosting.Tools.Packaging.ServiceApplicationPackage.CreateServiceApplicationPackage(String serviceModelfilename,String serviceDescriptionfile,Stream output,IPackageSecurity encrypt,Dictionary`2 namedStreamCollection,String userInfo,EventHandler`1 rolePackagePartAddedHandler)
at Microsoft.ServiceHosting.Tools.Packaging.ServiceApplicationPackage.CreateServiceApplicationPackage(String serviceModelfilename,RSACryptoServiceProvIDer encrypt,EventHandler`1 rolePackagePartAddedHandler)
at Microsoft.ServiceHosting.Tools.MSBuildTasks.CSPack.TryCreatePackage(ServiceDeFinitionModel sm)
at Microsoft.ServiceHosting.Tools.MSBuildTasks.CSPack.Execute()
at Microsoft.CloudExtensions.MSBuildTasks.IsolatedCSPack.RemoteCSPackBrIDge.Execute(TaskLoggingHelper log,IBuildEngine buildEngine,ITaskHost hostObject,String serviceHostingTasksPath,String output,String serviceDeFinitionfile,ITaskItem[] packRoles,Boolean copyOnly,String generateConfigurationfile,Boolean noEncryptPackage,ITaskItem[]& copIEdfiles,ITaskItem[]& outputfiles)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object[] args,Object server,Int32 methodPtr,Boolean fExecuteInContext,Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md,Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg,Boolean fExecuteInContext)

Exception rethrown at [0]:
at System.Runtime.Remoting.ProxIEs.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)
at System.Runtime.Remoting.ProxIEs.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type)
at Microsoft.CloudExtensions.MSBuildTasks.IsolatedCSPack.RemoteCSPackBrIDge.Execute(TaskLoggingHelper log,ITaskItem[]& outputfiles)
at Microsoft.CloudExtensions.MSBuildTasks.IsolatedCSPack.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy,ItemBucket bucket,TaskExecutionMode howToExecuteTask,ITask task,Boolean& taskResult) C:\Program files\MSBuild\Microsoft\Cloud Service\v1.0\Microsoft.CloudService.targets 865 5 Starlims.SDMS.Azure

我该如何解决这个问题?

解决方法 发生在我之前…尝试重新启动计算机(我知道……这有点“技术支持”建议 – 但它对我有用! 总结

以上是内存溢出为你收集整理的将Web项目发布到azure失败:“IsolatedCSPack”任务意外失败全部内容,希望文章能够帮你解决将Web项目发布到azure失败:“IsolatedCSPack”任务意外失败所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1062484.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存