XNA ClickOnce: Cannot Start Application. What to change? - xna
I have made an XNA game about the 2012 elections a while back ( see here http://www.gfcf14greendream.com/games/votebuster.html ), and to get it to play online, I've used JSIL. However, I've noticed JSIL is still a bit complicated for some computers and it won't run well in them, so I've been looking into different options, then learned about ClickOnce. I've published my game through ClickOnce as CD/DVD files and while the publishing is error-free, I couldn't get it to run (see the question that got me tumbleweed Clickonce application won't run after installation in XNA 4.0 ). Now I believe I know what the error is since my game uses 4 txt files and apparently these are not included with the contents in the publication. So to prove my theory I'm using a try catch as instructed here: I can not run a published application on another computer , for which I add to add System.Windows.Forms as reference. I'm guessing the "FilenotFoundException" should appear upon running, but while I've installed an uninstalled my app countless times before and never got it to run, this time I can't install it for some reason. I get this error once the installation seems to finish:
Application cannot be started. Contact the application vendor. (which I guess means me)
Along with this message, there are two buttons: Ok, and Details. When I press details, a notepad file pops up, with the following:
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.
From the error, I get that clickonce is 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 , yet I checked and at first there was an instance of the game already installed. I uninstalled it, (didn't just delete, I did it through Control Panel) and still, the same error persists. It also says that I could try to modify the manifest version for this application, but that's where I'm stuck. I don't have a clue of what to modify >.< . The manifest within the Application Files folder of the published game is here http://www.gfcf14greendream.com/VoteBusterexemanifest.txt in txt format since putting it up here exceeds the characters allowed for the question. Please anyone, let me know what might be causing this if you can, any help is always appreciated!
The message clearly says your application is not completely removed from the system.
Check in Registry for your application.
Location is
HKCU\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Uninstall.
Copy the Uninstall string from your app and execute in command prompt.
If your application is successfully uninstalled, then you must need to clear the application cache.
Open command prompt and run rundll32 dfshim CleanOnlineAppCache
If this does not succeeds, go to
C:\Users[username]\AppData\Local\Apps
and delete the folder.
Please make sure there are no other clickonce applications installed in your machine, before deleting the folder.
Try with these scenario, and let me know if this answer helps by accepting it. :)
Open command prompt by inputting cmd in Run from Start menu.
Switch to the path which mage.exe is in. In my side, the path is C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin. Input "cd C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin".
Now input Mage.exe -cc. It will appears a notice: Application cache cleared.
Related
Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
I have an ASP.Net MVC Entity Framework project which is working fine on local machine. But when I upload it to Azure Web App, I get following error: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Full screenshot The version I have referenced in project is 3.0.0.0 and same is present in bin folder. I have cleaned and rebuild project several times and also deleted obj and bin directories but in vain. Why is it trying to find version 2.0.0.0 when I have referenced 3.0.0.0?
Update assembly version MvcSportStore
I am trying to follow an example in a book about MVC but i get an error when trying to build the project. This is the error: Error 2 Assembly 'SportsStore.WebUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' c:\Users\XXX\Documents\Visual Studio 2013\Projects\Sport\SportsStore.WebUI\bin\SportsStore.WebUI.dll SportsStore.UnitTests It seems to me that I am running two different versions of the same assembly and I should probably update or "downdate" one of them? Can someone suggest which file and how to change it? Thank you
The answer might be a little too late but hopefully it helps someone else. I had a similar issue and I resolved it by removing the lower version and running the command below inside of package manager console install-package Microsoft.AspNet.Mvc -version 5.2.0
Could not load assembly WebPages.Deployment version 2 at host?
I have a ASP.NET MVC 2 website (VS2010) that I have upgraded to ASP.NET MVC 3 (VS2012) and this works fin on local IIS7 but when publishing it I get this exception on host : Could not load file or assembly 'System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. After some seartch I found this that states that I should set CopyLocal on some of the references(inlcuding the System.Web.WebPages) and also use the publish tool in VS2012, but this generated the following exception? Could not load file or assembly 'System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. And I canĀ“t find any Deployment dll to set copyLocal? How could I solve this?
Have a read of http://joel.net/getting-asp.net-mvc-3-working-on-discountasp.net You need to add a reference to System.Web.WebPages.Deployment and set that also to CopyLocal.
Program crashes when using Managed DirectX with .Net Framework 4.0
We are having a problem using DirectSound with the Managed DirectX dlls and the .Net Framework 4.0 The program works fine with .Net Framework 2.0 - but we have a requirement to upgrade to 4.0 to use some other components. When the program invokes the Sound module, it crashes with the exception noted below. Anybody seen this one and know how to fix it? ============================================== System.IO.FileNotFoundException was unhandled Message=Could not load file or assembly 'Microsoft.DirectX, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Source=Microsoft.DirectX.DirectSound FileName=Microsoft.DirectX, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 FusionLog="" [stack dump snipped] InnerException: System.IO.FileNotFoundException Message=Could not load file or assembly 'Microsoft.DirectX, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. FileName=Microsoft.DirectX, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 FusionLog==== Pre-bind state information === LOG: User = ***************** LOG: DisplayName = Microsoft.DirectX, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (Fully-specified) LOG: Appbase = file:///C:/Users/*********/Documents/Visual Studio 2010/Projects/************/bin/x86/Debug/ LOG: Initial PrivatePath = NULL Calling assembly : Microsoft.DirectX.DirectSound, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Users\***********\Documents\Visual Studio 2010\Projects\****************\bin\x86\Debug\***************.exe.config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Redirect found in application configuration file: 1.0.2902.0 redirected to 2.0.0.0. LOG: Post-policy reference: Microsoft.DirectX, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 LOG: The same bind was seen before, and was failed with hr = 0x80070002. InnerException:
I know this is a late reply but for me to get this working I had to find two DirectX DLL Microsoft.DirectX and Microsoft.DirectX.DirectInput and add then as a reference to the project. Then just use the DirectX namespace for calling methods.
<!-- Uncomment this section when switching from Net2.0 to Net 4.0 It is intended to fix problems loading DirectX dlls - per Microsoft--> <!-- <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0"/> </startup> -->
Officially the legacy DirectX Managed 1.1 assemblies do not support .NET 4.0. See this blog post for details. You could look at using SlimDX or some other alternative...
FSlex/FSyacc crash - can't locate FSharp.Core assembly
I'm having an issue with FSlex/FSyacc crashing on my machine. In context this is inside Visual Studio 11 beta running on Windows 8 Consumer Preview (32 bit) running inside a Parallels virtual machine. ------ Build started: Project: Basis, Configuration: Debug Any CPU ------ C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1546,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Basis -> C:\Users\nexus\Desktop\Statical\trunk\Statical\Basis\bin\Debug\Basis.dll ------ Build started: Project: Syntax, Configuration: Debug Any CPU ------ cd C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\ CALL C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\fsyacc.cmd CALL C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\fslex.cmd Running fsyacc.cmd... CalParser.fsp Running fsyacc.exe... Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at .$FSharp.PowerPack.FsYacc.Driver.main#() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. Running fslex.cmd... Not running fslex.exe as CalLexer.fs is newer than CalLexer.fsl C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1036,5): error MSB3073: The command "cd C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\ CALL C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\fsyacc.cmd CALL C:\Users\nexus\Desktop\Statical\trunk\Statical\Syntax\fslex.cmd" exited with code -532459699. Done building project "Syntax.fsproj" -- FAILED. The relevant piece seems to be this: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at .$FSharp.PowerPack.FsYacc.Driver.main#() Not sure why it can't locate the FSharp.Core assembly. Ideas?
I had forgotten to install F# 2.0. There was a dependency on that.