Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Problem with deplyoing SFML.NET app  (Read 1203 times)

0 Members and 1 Guest are viewing this topic.

scoops

  • Newbie
  • *
  • Posts: 3
    • View Profile
Problem with deplyoing SFML.NET app
« on: August 08, 2019, 12:42:32 pm »
Hello.

I'm using SFML.NET 2.4 in Visual Studio 2017. (I had problem with linking in 2.5, so I decided to use older version)

I have a problem with deplyoing my app. I want to send it to friend of mine so she could try to play it.
The problem occurs when I try to start the compiled app, when I do it in /Release/ folder everything works correctly, but when I copy that folder to any other directory it just doesn't start. Without any error.

I've read on main SFML main page that I need to link static libraries, but I don't have any in downloaded .zip file. I tried to use ILMerge to get everything in one file, but this doesn't work at all.

Can someone tell me what to do step by step to get this working?

Thanks


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Problem with deplyoing SFML.NET app
« Reply #1 on: August 08, 2019, 02:01:36 pm »
Try launching it from the command line, maybe there's some output.
Or check the Windows event log.

Otherwise, without errors it's kind of impossible to tell what's going on...
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

scoops

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Problem with deplyoing SFML.NET app
« Reply #2 on: August 09, 2019, 11:19:54 am »
I checked Windows Event Log and here is the problem:
Quote
Error packet 1823664934440769961, type 5
Event name: CLR20r3
Answer: Unavailable
CAB file identifier: 0


P1: spaceinvadersfml2.exe
P2: 0.0.0.0
P3: ab37e89d
P4: sfml-graphics
P5: 2.4.2.0
P6: ae1f697c
P7: 2a
P8: 34
P9: SFML.LoadingFailedException
P10:

Assigned files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERB435.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERB55F.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERB57F.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERB589.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERB5B9.tmp.txt

These files could be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_spaceinvadersfml_28d917fdc24e15b4b1d9c57de6ec42ffca43e26e_1f4fde9f_108cbc73


It looks like there are missing files, but how can I attach them to my .exe file?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Problem with deplyoing SFML.NET app
« Reply #3 on: August 09, 2019, 01:11:06 pm »
Are you still on Windows 7?

Googling the event name, I found various posts, such as this one: https://hasstoppedworking.com/fix-clr20r3-event-issues/
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

scoops

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Problem with deplyoing SFML.NET app
« Reply #4 on: August 09, 2019, 06:40:54 pm »
No, I'm on Windows 10 Home version.
According to your link:
On Home version I can not open gpedit.msc (it's only available on pro/enterprise version).
I have already checked 'Copy always' to every file in my solution also I have latest version of Microsoft SQL.
I've tried to paste to my app.config file these lines:
Quote

<startup useLegacyV2RuntimeActivationPolicy=”true”>

<supportedRuntime version=”v4.0″/>

</startup>

and I can not compile my program, this parameter is unacceptable: useLegacyV2RuntimeActivationPolicy=”true”

 

anything