到目前为止,我们的应用程序已通过Visual Studio"发布"向导使用ClickOnce发布.这非常痛苦,我们使用msbuild/mage自动化了这个过程.
不幸的是,新部署似乎与旧部署不兼容,在(测试)用户更新时给出"部署标识与订阅不匹配"错误.
现在使用"发布"和我们的Mage脚本生成的文件之间存在很多差异,但我们无法全部消除它们.例如,"Publisher"似乎没有得到尊重GenerateDeploymentManifest,而Mage -New Deployment无法将UpdateMode设置为Foreground.还有其他类似的案例.
有没有人成功地离开了"发布"向导而不需要整个用户群重新安装应用程序?你的方法是什么?
PS VisualStudio 2008; 所有用户都在.NET Framework 3.5 SP1上.
我几天来一直在努力解决这个问题.我见过其他帖子,比如ClickOnce Deployment Error:不同于manifest中指定的计算哈希值,但解决方案似乎对我不起作用.
我有一个有效的代码签名证书,并且已经使用它签署我的ClickOnce应用程序数月.我意识到我没有签署可执行文件和dll自己,所以我试图这样做.现在,每次我发布并运行setup.exe时,它都会失败:"文件,xxxxxx.dll,具有与清单中指定的不同的计算哈希值."
如果我不签署exe和Dlls,我可以重新部署.在发布之前,我确保exe/dll的所有副本都在所有目录(Target,Obj)中签名.我尝试过使用Mage/MageUI,但没有成功.是否可以在没有签名代码的情况下配置ClickOnce安装,然后发布签名代码?似乎合乎逻辑,但也许我错过了一些东西.
谢谢,格雷格
我需要放下相互连接的下拉菜单,例如Truck Brand,Truck Model,Model Years.
所以Brand会有一个下拉列表.其中包含Truck Brands的所有属性选项.选择品牌后,将显示另一个下拉列表,其中包含卡车模型的属性选项,但针对该特定品牌进行过滤.选择模型后,年份下拉列表将包含该品牌和型号的过滤年份.我是Magento的新手,我可以通过php使用获取属性及其选项
$attributeId = Mage::getResourceModel('eav/entity_attribute')
->getIdByCode('catalog_product','attribute_code_here');
$attribute = Mage::getModel('catalog/resource_eav_attribute')->load($attributeId);
$attributeOptions = $attribute ->getSource()->getAllOptions();
Run Code Online (Sandbox Code Playgroud)
但是我没有在第一个属性上得到过滤的属性选项.并且特别使用ajax.
我正在尝试使用clickonce安装程序部署Outlook加载项.我有一个几乎可以工作的批处理文件,但是,当我尝试在Windows XP上安装时,我收到错误"xml signature无效".众所周知,XP以SHA256证书为例失败.众所周知,Visual Studio 2013的Update 3修复了使用Visual Studio界面发布时的问题.我想知道如何在命令行上使用signtool或mage完成相同的修复.这是我当前的批处理文件,适用于除Windows XP之外的所有内容:
:: Build and publish
msbuild /target:clean,publish /property:MapFileExtensions=false /property:Configuration="Release" /property:ApplicationVersion="1.0.0.0" /property:InstallUrl="https://example.com" /property:UpdateEnabled="true" /property:UpdateMode="Foreground" /property:UpdateInterval="0" /property:UpdateIntervalUnits="days" /property:PublisherName="Example" /property:ProductName="Example Outlook Add-In" /property:FriendlyName="Example Outlook Add-In" /property:LoadBehavior="3" /property:BootstrapperEnabled="true" /property:IsWebBootstrapper="true"
:: Sign the exe
signtool sign /fd SHA1 /f "certificate.pfx" "publish\setup.exe"
:: Sign the application manifest
mage -sign "publish\Application Files\Example_1_0_0_0\Example.dll.manifest" -CertFile "certificate.pfx"
mage -update "publish\Application Files\Example_1_0_0_0\Example.dll.manifest" -CertFile "certificate.pfx" -algorithm sha1RSA
:: Sign the deployment manifests (there are 2 locations)
mage -update "publish\Application Files\Example_1_0_0_0\Example.vsto" -appmanifest "publish\Application Files\Example_1_0_0_0\Example.dll.manifest" …Run Code Online (Sandbox Code Playgroud) 启动ClickOnce设置时出现此错误.它说'不能继续.该应用程序格式不正确.
编辑:这发生在Visual Studio 2013 Update 4(2013.4)之后
这是我创建文件的方式:
mage -New Application -ToFile "$BinSingleEscape\Release\$ProductNameFile.exe.manifest" -Name "$ProductName" -Version $Version -FromDirectory "$BinSingleEscape\Release" -IconFile "Icon.ico" -SupportURL "$SupportUrl" -UseManifestForTrust true -Publisher "$PublisherCompany" -TimestampUri http://timestamp.verisign.com/scripts/timstamp.dll
mage -Sign "$BinSingleEscape\Release\$ProductNameFile.exe.manifest" -CertHash "d00...66f" -TimestampUri http://timestamp.verisign.com/scripts/timstamp.dll
mage -New Deployment -Install true -AppCodeBase "$Version\$ProductNameFile.exe.manifest" -Name "$ProductNameFile" -Publisher "$PublisherCompany" -AppManifest "$BinSingleEscape\Release\$ProductNameFile.exe.manifest" -ProviderUrl "$InstallUrl/$ProductNameFile.application" -Version $Version -ToFile "$BinSingleEscape\Deploy\$ProductNameFile.application" -SupportURL "$SupportUrl" -TimestampUri http://timestamp.verisign.com/scripts/timstamp.dll
mage -Sign "$BinSingleEscape\Deploy\$ProductNameFile.application" -CertHash "d00...66f" -TimestampUri http://timestamp.verisign.com/scripts/timstamp.dll
Run Code Online (Sandbox Code Playgroud)
错误的详细信息:
ERROR SUMMARY
Below is a summary of the errors, details of these errors are …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用ClickOnce部署VSTO解决方案,这是Word和Outlook的2个插件.由于我们的部署基础架构/实践,我无法使用Visual Studio发布它,而是构建在构建服务器上并通过部署服务器进行部署.
对于本地开发,使用自签名证书.部署使用此自签名证书(如果在计算机上安装了自签名证书),但现在我想添加一个真实的公司证书,以便可以将应用程序部署到用户.
在部署期间,在调配配置文件之后,它们将使用真实证书进行更新和重新签名.但是,这会在安装期间产生以下错误:
System.Security.SecurityException: Customized functionality in this application will not work because the certificate used to sign the deployment manifest for <app name> or its location is not trusted. Contact your administrator for further assistance.
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustPromptKeyInternal(ClickOnceTrustPromptKeyValue promptKeyValue, DeploymentSignatureInformation signatureInformation, String productName, TrustStatus status)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustUsingPromptKey(Uri manifest, DeploymentSignatureInformation signatureInformation, String productName, TrustStatus status)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustUsingPromptKey(Uri manifest, DeploymentSignatureInformation signatureInformation, String productName)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.ProcessSHA1Manifest(ActivationContext context, DeploymentSignatureInformation signatureInformation, PermissionSet permissionsRequested, Uri manifest, ManifestSignatureInformationCollection signatures, AddInInstallationStatus installState)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySecurity(ActivationContext context, Uri manifest, …Run Code Online (Sandbox Code Playgroud) 我想使用ajax调用PHP文件,其中PHP我将通过ajax调用下订单.但是当我使用该文件中的app/Mage.php时,它会抛出错误
require_once '../../../../../../../../../../app/Mage.php';
$customer = Mage::getModel('customer/customer');
Run Code Online (Sandbox Code Playgroud)
然后它说
致命错误:在第432行的app\Mage.php中的非对象上调用成员函数getModelInstance()
谁能帮帮我吗???
mage ×10
clickonce ×7
deployment ×2
magento ×2
.net ×1
.net-4.0 ×1
ajax ×1
batch-file ×1
certificate ×1
command-line ×1
fatal-error ×1
jquery ×1
publish ×1
signing ×1
vsto ×1
wix ×1