我已經做了一個關於2012年選舉的XNA遊戲(參見這裏的http://www.gfcf14greendream.com/games/votebuster.html),並且爲了讓它在線玩,我已經使用了JSIL。但是,我注意到JSIL對於某些計算機來說仍然有點複雜,並且它不能很好地運行,所以我一直在研究不同的選項,然後學習了ClickOnce。我已經通過ClickOnce發佈了我的遊戲作爲CD/DVD文件,雖然發佈沒有錯誤,但是我無法運行它(請參閱讓我跌跌撞撞的問題Clickonce application won't run after installation in XNA 4.0)。現在我相信我知道錯誤是什麼,因爲我的遊戲使用4個txt文件,顯然這些文件不包含在出版物中。因此,爲了證明我的理論,我按照這裏的指示使用try catch:I can not run a published application on another computer,爲此添加System.Windows.Forms作爲參考。我猜應該在運行時出現「FilenotFoundException」,但是雖然我安裝了無數次之前卸載了我的應用程序並且從未運行它,但這次由於某種原因我無法安裝它。一旦安裝似乎完成我得到這個錯誤:XNA ClickOnce:無法啓動應用程序。要改變什麼?
Application cannot be started. Contact the application vendor.
(我想指的是我)
隨着這個消息,有兩個按鈕:好吧,和Details
。當我按下細節,一個記事本文件彈出,具有下列內容:
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.1008
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.1008 (RTMGDR.030319-1000)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
SOURCES
Deployment url : file:///E:/My%20Projects/XNA/Finished/VoteBuster/VoteBuster/VoteBuster/publish/VoteBuster.application
Application url : file:///E:/My%20Projects/XNA/Finished/VoteBuster/VoteBuster/VoteBuster/publish/Application%20Files/VoteBuster_1_0_0_0/VoteBuster.exe.manifest
IDENTITIES
Deployment Identity : VoteBuster.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b4915d412ad8da99, processorArchitecture=x86
Application Identity : VoteBuster.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b4915d412ad8da99, processorArchitecture=x86, type=win32
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of E:\My Projects\XNA\Finished\VoteBuster\VoteBuster\VoteBuster\publish\VoteBuster.application resulted in exception. Following failure messages were detected:
+ Unable to install this application because an application with the same identity is already installed. To install this application, either modify the manifest version for this application or uninstall the preexisting application.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [8/16/2013 11:04:15 PM] : Activation of E:\My Projects\XNA\Finished\VoteBuster\VoteBuster\VoteBuster\publish\VoteBuster.application has started.
* [8/16/2013 11:04:15 PM] : Processing of deployment manifest has successfully completed.
* [8/16/2013 11:04:15 PM] : Installation of the application has started.
* [8/16/2013 11:04:15 PM] : Processing of application manifest has successfully completed.
* [8/16/2013 11:04:18 PM] : Found compatible runtime version 4.0.30319.
* [8/16/2013 11:04:18 PM] : Detecting dependent assembly Microsoft.Xna.Framework.GamerServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842CF8BE1DE50553, processorArchitecture=msil using Microsoft.Xna.Framework.GamerServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=msil.
* [8/16/2013 11:04:18 PM] : Detecting dependent assembly Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842CF8BE1DE50553, processorArchitecture=x86 using Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86.
* [8/16/2013 11:04:18 PM] : Detecting dependent assembly Microsoft.Xna.Framework.Video, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842CF8BE1DE50553, processorArchitecture=msil using Microsoft.Xna.Framework.Video, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=msil.
* [8/16/2013 11:04:18 PM] : Detecting dependent assembly Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842CF8BE1DE50553, processorArchitecture=x86 using Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86.
* [8/16/2013 11:04:18 PM] : Detecting dependent assembly Microsoft.Xna.Framework.Input.Touch, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842CF8BE1DE50553, processorArchitecture=msil using Microsoft.Xna.Framework.Input.Touch, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=msil.
* [8/16/2013 11:04:18 PM] : Detecting dependent assembly Microsoft.Xna.Framework.Avatar, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842CF8BE1DE50553, processorArchitecture=msil using Microsoft.Xna.Framework.Avatar, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=msil.
* [8/16/2013 11:04:18 PM] : Detecting dependent assembly Microsoft.Xna.Framework.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842CF8BE1DE50553, processorArchitecture=msil using Microsoft.Xna.Framework.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=msil.
* [8/16/2013 11:04:18 PM] : Detecting dependent assembly Microsoft.Xna.Framework.Storage, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842CF8BE1DE50553, processorArchitecture=msil using Microsoft.Xna.Framework.Storage, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=msil.
* [8/16/2013 11:04:18 PM] : Detecting dependent assembly Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842CF8BE1DE50553, processorArchitecture=x86 using Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86.
* [8/16/2013 11:04:18 PM] : Detecting dependent assembly Microsoft.Xna.Framework.Xact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842CF8BE1DE50553, processorArchitecture=x86 using Microsoft.Xna.Framework.Xact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86.
* [8/16/2013 11:04:18 PM] : Request of trust and detection of platform is complete.
* [8/16/2013 11:04:19 PM] : Downloading of subscription dependencies is complete.
* [8/16/2013 11:04:19 PM] : Commit of the downloaded application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [8/16/2013 11:04:19 PM] System.Deployment.Application.DeploymentException (Subscription)
- Unable to install this application because an application with the same identity is already installed. To install this application, either modify the manifest version for this application or uninstall the preexisting application.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SubscriptionStore.CheckApplicationPayload(CommitApplicationParams commitParams)
at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState& subState, CommitApplicationParams commitParams)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
從錯誤中,我得到的ClickOnce是Unable to install this application because an application with the same identity is already installed. To install this application, either modify the manifest version for this application or uninstall the preexisting application
,但我檢查,並在第一已經有安裝遊戲的一個實例。我卸載了它(不僅僅是刪除,而是通過控制面板完成),仍然存在相同的錯誤。它也說我可以嘗試modify the manifest version for this application
,但那是我卡住的地方。我不知道要修改什麼>.<
。已發佈的遊戲的Application Files
文件夾中的清單以txt格式在此處爲http://www.gfcf14greendream.com/VoteBusterexemanifest.txt,因爲將它放在此處超出了允許的問題字符。請任何人,讓我知道什麼可能導致這個,如果可以的話,任何幫助總是感激!