[Bug 37633] Custom .NET 4.x app using System.Net.WebClient.DownloadString fails

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Nov 27 14:38:03 CST 2014


https://bugs.winehq.org/show_bug.cgi?id=37633

--- Comment #6 from Anastasius Focht <focht at 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/91061550f82895ba782e075e1ee1e26cf90bfe434777aa49d5dcc74e31fd4911/analysis/1417120466/

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/Hearthstone%20Deck%20Tracker/Version.xml");
            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.



More information about the wine-bugs mailing list