[Bug 37633] New: .NET's DownloadString method fails (due to RAS?)
https://bugs.winehq.org/show_bug.cgi?id=37633 Bug ID: 37633 Summary: .NET's DownloadString method fails (due to RAS?) Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: rasapi32 Assignee: wine-bugs(a)winehq.org Reporter: andrew(a)bamsoftwaregroup.com Distribution: --- Using: wine-1.7.31 I am trying to run a .NET app that I have the source code to. The C# code looks as follows: var xml = new WebClient().DownloadString("https://raw.githubusercontent.com/Epix37/Hearthstone-Deck-Tracker/master/Hea..."); I see these messages appear in my console: fixme:ras:RasEnumConnectionsW (0x7804d68,0x33e43c,0x33e440),stub! fixme:ras:RasEnumConnectionsW RAS support is not implemented! Configure program to use LAN connection/winsock instead! fixme:ras:RasConnectionNotificationW (0xffffffff,0x2cc,0x00000003),stub! fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform fixme:winhttp:WinHttpDetectAutoProxyConfigUrl discovery via DHCP not supported And then the C# stack trace which bubbles, originating from DownloadString: ########## 11/25/2014 8:58:27 PM ########## System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'Hearthstone_Deck_Tracker.MainWindow' that matches the specified binding constraints threw an exception. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Net.UnsafeNclNativeMethods.SafeNetHandlesXPOrLater.freeaddrinfo(IntPtr info) at System.Net.SafeFreeAddrInfo.ReleaseHandle() at System.Runtime.InteropServices.SafeHandle.InternalDispose() at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing) at System.Net.Dns.TryGetAddrInfo(String name, AddressInfoHints flags, IPHostEntry& hostinfo) at System.Net.Dns.TryInternalResolve(String hostName, IPHostEntry& result) at System.Net.ServicePoint.GetIPAddressInfoList(Int32& currentIndex, IPAddress[] addresses) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, GeneralAsyncDelegate asyncCallback) at System.Net.Connection.CompleteStartConnection(Boolean async, HttpWebRequest httpWebRequest) at System.Net.Connection.CompleteStartRequest(Boolean onSubmitThread, HttpWebRequest request, TriState needReConnect) at System.Net.Connection.SubmitRequest(HttpWebRequest request, Boolean forcedsubmit) at System.Net.ServicePoint.SubmitRequest(HttpWebRequest request, String connName) at System.Net.HttpWebRequest.SubmitRequest(ServicePoint servicePoint) at System.Net.HttpWebRequest.GetResponse() at System.Net.WebClient.GetWebResponse(WebRequest request) at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream, CompletionDelegate completionDelegate, AsyncOperation asyncOp) at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at Hearthstone_Deck_Tracker.Helper.CheckForUpdates(Version& newVersionOut) I am not positive what the exact error here is, although it is pretty severe that a simple .NET web-related download method fails. Any insight to get this to work would be appreciated. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37633 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|rasapi32 |-unknown Severity|major |normal -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37633 --- Comment #1 from Bruno Jesus <00cpxxx(a)gmail.com> --- Please attach source and compiled sample. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37633 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian(a)fds-team.de -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37633 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet CC| |focht(a)gmx.net Version|unspecified |1.7.31 Summary|.NET's DownloadString |Custom .NET 4.x app using |method fails (due to RAS?) |System.Net.WebClient.Downlo | |adString fails --- Comment #2 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, I compiled the C# snippet into small console app and it works as expected. --- snip --- using System; namespace bug37557 { class Program { static void Main(string[] args) { var xml = new System.Net.WebClient().DownloadString("https://raw.githubusercontent.com/Epix37/Hearthstone-Deck-Tracker/master/Hea..."); Console.WriteLine(xml); } } } --- snip --- Output: --- snip --- $ wine ./bug37557.exe fixme:heap:HeapSetInformation (nil) 1 (nil) 0 fixme:process:SetProcessDEPPolicy (1): stub fixme:heap:HeapSetInformation (nil) 1 (nil) 0 fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub. fixme:thread:SetThreadStackGuarantee (0x33fbc4): stub fixme:shell:URL_ParseUrl failed to parse L"System" fixme:shell:URL_ParseUrl failed to parse L"System.Xml" fixme:shell:URL_ParseUrl failed to parse L"System.Configuration" fixme:crypt:SystemFunction041 (0x152374, 10, 0): stub [RtlDecryptMemory] fixme:ras:RasEnumConnectionsW (0x159b18,0x33f06c,0x33f070),stub! fixme:ras:RasEnumConnectionsW RAS support is not implemented! Configure program to use LAN connection/winsock instead! fixme:ntdll:server_ioctl_file Unsupported ioctl 28000017 (device=2800 access=0 func=5 method=3) fixme:winsock:server_ioctl_sock Unsupported ioctl 28000017 (device=2800 access=0 func=5 method=3) fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIO(IOC_WS2, 23)) fixme:ras:RasConnectionNotificationW (0xffffffff,0x194,0x00000003),stub! fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform fixme:winhttp:WinHttpDetectAutoProxyConfigUrl discovery via DHCP not supported fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform fixme:ntdll:server_ioctl_file Unsupported ioctl 28000017 (device=2800 access=0 func=5 method=3) fixme:winsock:server_ioctl_sock Unsupported ioctl 28000017 (device=2800 access=0 func=5 method=3) fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIO(IOC_WS2, 23)) fixme:secur32:schannel_get_kx_algid unknown algorithm 12 fixme:secur32:schannel_get_kx_algid unknown algorithm 12 fixme:crypt:CertAddCertificateLinkToStore (0x15d188, 0x162784, 00000004, (nil)): semi-stub Read xml content: <?xml version="1.0" encoding="utf-8" ?> <Version> <Major>0</Major> <Minor>5</Minor> <Revision>6</Revision> <Build>0</Build> </Version> fixme:process:FlushProcessWriteBuffers : stub --- snip --- Your host network configuration is likely broken. Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37633 Andrew Fuchs <andrew(a)bamsoftwaregroup.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Andrew Fuchs <andrew(a)bamsoftwaregroup.com> --- Thank you Anastasius. I was not aware wine had a host configuration. I will try again with a modified config and reopen this if the bug persists. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37633 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED |--- --- Comment #4 from Bruno Jesus <00cpxxx(a)gmail.com> --- The FIXED status is used when something in wine is fixed. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37633 --- Comment #5 from Bruno Jesus <00cpxxx(a)gmail.com> --- (In reply to Anastasius Focht from comment #2)
Hello folks,
I compiled the C# snippet into small console app and it works as expected.
--- snip --- using System;
namespace bug37557 { class Program { static void Main(string[] args) { var xml = new System.Net.WebClient().DownloadString("https://raw.githubusercontent.com/ Epix37/Hearthstone-Deck-Tracker/master/Hearthstone%20Deck%20Tracker/Version. xml"); Console.WriteLine(xml); } } } --- snip ---
Anastasius, can you please attach the compiled exe? Did you run in mono? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37633 --- Comment #6 from Anastasius Focht <focht(a)gmx.net> --- Created attachment 50093 --> https://bugs.winehq.org/attachment.cgi?id=50093 .NET 2.0 console app using System.Net.WebClient().DownloadString Hello folks, attached is the small .NET 2.0 executable (3K) for testing purpose. VirusTotal (Google owned) scan report of the attachment: https://www.virustotal.com/en/file/91061550f82895ba782e075e1ee1e26cf90bfe434... You can easily (re)create it on your own by using 'winetricks dotnet20sdk' on clean 32-bit WINEPREFIX which installs .NET Framework 2.0 and the SDK. Create a text file 'bug37633.cs' with following content: --- snip --- using System; namespace bug37557 { class Program { static void Main(string[] args) { String xml = new System.Net.WebClient().DownloadString("https://raw.githubusercontent.com/Epix37/Hearthstone-Deck-Tracker/master/Hea..."); Console.WriteLine(xml); } } } --- snip --- Compile it to .NET executable using the SDK C# compiler. --- snip --- $ wine "C:\\windows\\Microsoft.NET\\Framework\\v2.0.50727\\csc.exe" /debug+ bug37633.cs ... Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42 for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727 Copyright (C) Microsoft Corporation 2001-2005. All rights reserved. ... --- snip --- --- quote --- Did you run in mono? --- quote --- No, since OP used MS .NET Framework (his app uses WPF so it's obvious). Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37633 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME --- Comment #7 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, resolving here since OP didn't bother to update the status (being invalid). Otherwise bugs like this will just bitrot away with no purpose and my time wasted. Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37633 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #8 from Austin English <austinenglish(a)gmail.com> --- Closing. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org