x360ce / x360ce

Primary repository for the x360ce library, front-end and tools.
2.61k stars 485 forks source link

Exception! error when launching x360 64-bit exe #219

Open Kaedy opened 9 years ago

Kaedy commented 9 years ago

error

I had no problems launching the previous versions but this one just won't work. Any ideas? I'm sure I've installed every other prerequisites for this program.

Thanks in advance!

Squall-Leonhart commented 9 years ago

Permissions on programdata directory or x360ce subdirectory are incorrect.

Kaedy commented 9 years ago

I managed to solve this by deleting the x360ce folder in program data. The previous version probably screwed over the new one. Thanks!

Squall-Leonhart commented 9 years ago

My theory is that when this folder was originally created, you had launched the application as Administrator as the game you were using it for was in a UAC protected location.

The subsequent start on a new version was not elevated so the GDB was unable to be replaced with the more current version as when folders are created from an elevated application, they are created with respective administrator privileges and not those of the current user account.

Ejocy, does dotnet provide any way to ensure a folder/file creation inherits parent permissions?

EJocys commented 9 years ago

I will try to replicate and fix this bug. Solution, probably would be for application to relaunch itself with administrative privileges and fix permissions. For example: add Write/Modify permission for Users group on INI file and etc.

Squall-Leonhart commented 9 years ago

Reopening

Squall-Leonhart commented 9 years ago

http://stackoverflow.com/questions/12811850/setting-a-files-acl-to-be-inherited or http://stackoverflow.com/a/2930969

This looks like what i was suggesting.

Ompolar commented 9 years ago

@Squall-Leonhart What is that? How do i use these code/whatever is that? I got this problem too on my PC

Squall-Leonhart commented 9 years ago

You don't, its for Ejocy to implement in our software.

You can resolve this issue by deleting the x360ce folder under c:\programdata and running the x360ce application atleast once without elevation.

Squall-Leonhart commented 9 years ago

Any progress on this ejocy?

EJocys commented 9 years ago

@Squall-Leonhart: Done, just now. Need to complete feature with Virtual Joysticks and ability to see all Direct Input devices (https://github.com/x360ce/x360ce/issues/254). Other projects are eating time. I will try to release new version, this weekend.

benjaminstubbs999 commented 8 years ago

I have the same problem. I'm running windows 7 64bit. Trying to make a Logitech f710 work with Fallout 4. Bethesda support suggested this program. Any help would be great... Its really sucks to wait this long to play this game and then have issues. Thanks!

benjaminstubbs999 commented 8 years ago

Sorry, I think I have a different problem...

System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS0012: The type 'x360ce.Engine.Data.Game' is defined in an assembly that is not referenced. You must add a reference to assembly 'x360ce.Engine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. error CS0012: The type 'x360ce.Engine.Data.Program' is defined in an assembly that is not referenced. You must add a reference to assembly 'x360ce.Engine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. error CS0012: The type 'x360ce.Engine.Data.PadSetting' is defined in an assembly that is not referenced. You must add a reference to assembly 'x360ce.Engine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer..ctor(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer..ctor(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, String defaultNamespace, String location) at System.Xml.Serialization.XmlSerializer..ctor(Type type, Type[] extraTypes) at x360ce.App.Serializer.GetXmlSerializer(Type type) at x360ce.App.Serializer.SerializeToXmlFile(Object o, String path, Encoding encoding, Boolean omitXmlDeclaration, Int32 attempts, Int32 waitTime) at x360ce.App.SettingsFile.Save(Boolean updateGameDatabase) at x360ce.App.SettingsFile.Load() at x360ce.App.Controls.GameSettingsUserControl.InitDefaultList() at x360ce.App.Controls.GameSettingsUserControl..ctor() at x360ce.App.MainForm.InitializeComponent() at x360ce.App.MainForm..ctor() at x360ce.App.Program.Main(String[] args)

Squall-Leonhart commented 8 years ago

It means you did not install the requirements.

benjaminstubbs999 commented 8 years ago

what dose that mean? What requirements could i be missing? I installed the copy I got from Bethesda.

Fuzzy-McBerts commented 8 years ago

@benjaminstubbs999 think it means you need to download and install the files in the requirements section http://www.x360ce.com/

having same issue... hope it works!

PARASF commented 8 years ago

@Fuzzy-McBerts i am having the same problem. i have just purchased a gamepad and i plugged it in my p.c, after that i dowloaded the x360ce but its showing an exception erro. please help.me out

Fuzzy-McBerts commented 8 years ago

@PARASF make sure you install all the files in the System Requirements section before installing x360ce. Specifically:

System Requirements

• Windows Vista or newer. • .NET 3.5 (includes 2.0 and 3.0) - included in Windows 7. In Windows 8 and 10: Control Panel > Programs and Features > Turn Windows features on or off > enable “.NET Framework 3.5 (includes 2.0 and 3.0)”. • .NET 4.6 (includes 4.0) - included in Windows 8 and 10. • DirectX End-User Runtime (June 2010) - Required regardless of OS; .NET MUST be installed prior to the DirectX update. • Visual C++ Redistributable for Visual Studio 2013 - For x64 systems install both x86 and x64 redistributables.

PARASF commented 8 years ago

thanks buddy..it worked.

On Mon, Apr 11, 2016 at 2:41 AM, Fuzzy-McBerts notifications@github.com wrote:

@PARASF https://github.com/PARASF make sure you install all the files in the System Requirements section before installing x360ce. Specifically:

System Requirements

• Windows Vista or newer. • .NET 3.5 (includes 2.0 and 3.0) - included in Windows 7. In Windows 8 and 10: Control Panel > Programs and Features > Turn Windows features on or off > enable “.NET Framework 3.5 (includes 2.0 and 3.0)”. • .NET 4.6 (includes 4.0) - included in Windows 8 and 10. • DirectX End-User Runtime (June 2010) - Required regardless of OS; .NET MUST be installed prior to the DirectX update. • Visual C++ Redistributable for Visual Studio 2013 - For x64 systems install both x86 and x64 redistributables.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/x360ce/x360ce/issues/219#issuecomment-208072331

PARASF commented 8 years ago

hey buddy i need ur help !!!

On Thursday, April 14, 2016, sahil kumar sahil.k10101@gmail.com wrote:

thanks buddy..it worked. On Mon, Apr 11, 2016 at 2:41 AM, Fuzzy-McBerts notifications@github.com wrote:

@PARASF make sure you install all the files in the System Requirements section before installing x360ce. Specifically:

System Requirements

• Windows Vista or newer. • .NET 3.5 (includes 2.0 and 3.0) - included in Windows 7. In Windows 8 and 10: Control Panel > Programs and Features > Turn Windows features on or off > enable “.NET Framework 3.5 (includes 2.0 and 3.0)”. • .NET 4.6 (includes 4.0) - included in Windows 8 and 10. • DirectX End-User Runtime (June 2010) - Required regardless of OS; .NET MUST be installed prior to the DirectX update. • Visual C++ Redistributable for Visual Studio 2013 - For x64 systems install both x86 and x64 redistributables.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub< https://ci4.googleusercontent.com/proxy/nfuYMlWoKYpnKpD3Sb0TLG-KknvVJAsgv4P48VWgfhy8VmSI-YFOsBawt3n8k28BUMLaRFwyBd4n7qQOSQ6xELvuSSt7lvFPV-5o3dmLtqUSOQb-QKYSetPKFZy4rFEe_mC2X7DkdAfZBylRjoCCgflvLeoteA=s0-d-e1-ft#https://github.com/notifications/beacon/ARg9H-LOcC35sHhvQSplrvy-1XsaBTwHks5p2WdrgaJpZM4FyddI.gif

olusegvn commented 2 years ago

Try using XOutput. It'll save you the stress.