nerdunit / androidsideloader

GNU General Public License v3.0
236 stars 54 forks source link

404 Error when launching #32

Closed Justin27482 closed 3 years ago

Justin27482 commented 3 years ago

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.Net.WebException: The request was aborted: The connection was closed unexpectedly. at System.Net.WebClient.DownloadFile(Uri address, String fileName) at System.Net.WebClient.DownloadFile(String address, String fileName) at AndroidSideloader.Sideloader.downloadFiles() at AndroidSideloader.MainForm.d18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b6_0(Object state)

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

AndroidSideloader Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/*****/Rookie's%20Sideloader/AndroidSideloader.exe

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System Assembly Version: 4.0.0.0 Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

SergeUtils Assembly Version: 1.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/*****/Rookie's%20Sideloader/AndroidSideloader.exe

** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

nerdunit commented 3 years ago

Your internet might have had some problems, please post full logs..

bombe1 commented 3 years ago

I'm receiving 404 as well

crashlog: Message: The system cannot find the file specified Data: System.Collections.ListDictionaryInternal Source: System TargetSite: Boolean StartWithCreateProcess(System.Diagnostics.ProcessStartInfo)

debuglog: Running command shell input keyevent KEYCODE_WAKEUP Running command shell input keyevent KEYCODE_WAKEUP Running command shell input keyevent KEYCODE_WAKEUP Running command shell input keyevent KEYCODE_WAKEUP

phatal commented 3 years ago

Your internet might have had some problems, please post full logs..

I have same problem. And maybe I'm wrong, but looks like the answer in Sideloader.cs. I decompiled exe with dnSpy and find that file in repo and compiled has little diffs:

if (!File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\warning.png"))
{
    webClient.DownloadFile("https://github.com/nerdunit/androidsideloader/raw/master/secret", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\warning.png");
}

looks like this lines the reason. btw if I click continue at exception window after that sideloader work properly (but this exception I get at every launch) p.s. ssory for awful Eng, not native.

Kuro1138 commented 3 years ago

Yes it seems to be trying to find "warning.png" and can't then crashes.

Adding my own png named as "warning.png" to "C:\Users\ [USERNAME] \AppData\Roaming\" lets it proceed.

Just seems to be a wrong url for downloading the image.

Downloaded the source code for version 2.0-WIP-SU2 and simply commenting out the following line in Sideloader.cs also lets the program run.

            if (!File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\warning.png"))
                client.DownloadFile("https://github.com/nerdunit/androidsideloader/raw/master/secret", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\warning.png");
nerdunit commented 3 years ago

Fixed, sorry, it was for the 1april prank and I removed the file from github