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@winehq.org Reporter: andrew@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.