powered by UserVoice

Code Converter Forum

Welcome to our official feedback forum for the code converter. If you spot problems with the converter, just leave a note here. **Please make sure you include a code sample***

  1. 1 vote

    Service Down

    "Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists".

    Status: completed

    Sorry about that - fixed now

  2. 41 votes

    Full project conversion

    Would be awesome to upload a pile of files, having them spit back out in converted form

    Status: completed

    We've now implemented this - let us know how you get on!

  3. 1 vote

    Getting error message from conversion

    Getting several messages "Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists". This just started today 9/15/2011. Having issues with server?

    Status: completed

    Hi Rick - this should be fixed now, but please do let us know if you see it again.

  4. 4 votes

    This Linq statement doesn't translate from VB to C#

    Dim Table1() As String = {"One", "Two", "Three"}
    Dim Table2() As String = {"One", "Three", "Four"}

    Dim Results = From Value In Table1 Where Not Table2.Contains(Value)

    The resulting C# for the Linq is just
    var Results = ;

    Status: completed

    This is fixed.

  5. 48 votes

    X = new ColorBlend(4); X.Colors = { C2, C3, C3, C2 };

    I am getting a huge error here . . .please if anyone knows how to correct this leave a quick feedback!
    X = new ColorBlend(4);
    X.Colors = {
    C2,
    C3,
    C3,
    C2
    };

    Status: completed

    This appears to work fine for us now? Let me know if you are still getting the problem - please post before/after code. Thanks

  6. 1 vote

    protected void Page_Load(object sender, EventArgs e)

    This code:

    using System.Data.SqlClient;

    protected void Page_Load(object sender, EventArgs e)
    {
    using (SqlConnection cnn = new SqlConnection("Persist Security Info=True;Data Source=datasource;database=; User ID=userid;password=password"))
    {
    cnn.Open();
    using (SqlCommand cmd = new SqlCommand(" SELECT [name] FROM sys.Tables ", cnn))
    }

    Gives this error:

    -- line 3 col 11: invalid TypeDecl

    Status: declined

    Hi Alan,

    That's not actually valid C#, although ASP.NET does let you get away with it. If you wrap the method in a class, or remove the namespace declaration it should work fine.

    All the best

    James

  7. 3 votes

    Comment Marks aren't converting properly.//

    C# // to VB.NET ' is not converting properly right now, it's converting too '

    Status: completed

    Thanks for the heads up - I've fixed this :)

  8. 6 votes

    line 1 col 1: EOF expected

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    using System.ComponentModel.Composition;
    using System.ComponentModel.Composition.Hosting;
    using System.Reflection;

    namespace ConsoleTest
    {
    class Program
    {

    static void Main(string[] args)
    {
    Program p = new Program();
    p.Run();

    }

    public void Run()
    {
    Compose();

    }

    private void Compose()
    {
    AssemblyCatalog catalog = new AssemblyCatalog(Assembly.GetExecutingAssembly());
    var container =… more

    Status: completed

    This has been fixed. Let us know if you continue to have problems. Thanks!

  9. 3 votes

    Converting large code file generates error

    Error message: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

    This was on a C# to VB conversion of a file with about 4100 lines of code.

    Status: completed

    This has been fixed - thanks for letting us know!

  10. 3 votes

    public static string EncodePassword(string originalPassword) doesn't convert

    Can't get the following code to convert, it complains about an invalid TypeDecl which I can't see is wrong.

    ----------------

    using System.Security.Cryptography;

    public static string EncodePassword(string originalPassword)
    {

    Byte[] originalBytes;
    Byte[] encodedBytes;
    MD5 md5;

    // Conver the original password to bytes; then create the hash
    md5 = new MD5CryptoServiceProvider();
    originalBytes… more

    Status: completed
  11. 3 votes

    <Strong></Strong> causes code block to be skipped

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using System.Reflection;

    namespace AssemblyLoad
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

    private void Form1_Load(object sender, EventArgs e)
    {
    //The AssemblyResolve event is called when the common language runtime tries to… more

    Status: completed
  12. 7 votes

    Disclaimer - Do you store data?

    Do you guys store any of the code pasted on your site for conversion?
    A disclaimer to this effect can be posted on the site, a lot of people might not be using the converter with this in view.

    Status: completed

    We do not store the data - and have posted a message on the site to reflect this :)

  13. 9 votes

    string.empty

    In VB the syntax is -

    If inputValue.Trim = String.Empty Then...

    When converting to C# it is not adding the "()" to the end of "string.Empty".

    Status: declined

    Unfortuately we have no way of knowing (without analyzing the entire code base) whether Trim is in fact a method or a property - and therefore whether or not it needs parenthesis

  14. 9 votes

    "Copy to Clipboard" doesn't work in FireFox

    Status: completed

    This has been fixed

  15. 15 votes

    Object initializers not converting

    Hi there, trying to convert this line from c#
    Person p = new Person { FirstName = "Joe", LastName="Doe" };

    the converter ignores the object initializer, a new C# 3.5 feature, and just converts it into
    Dim p as new Person()

    Thanks.

    Status: completed
  16. 16 votes

    fix Linq conversion bugs

    var orig = myDSet.Tables[0].AsEnumerable();

    translates to the following incorrect code

    Dim orig As var = myDSet.Tables(0).AsEnumerable()

    it should translate to

    Dim orig = myDSet.Tables(0).AsEnumerable()

    var newRec = from u in dsChanged
    where !(from o in orig
    select o.Field<decimal>("PRIMARY_KEY_FIELD"))
    .Contains(u.Field<decimal>(" PRIMARY_KEY_FIELD"))
    select new
    {
    prim_key = u.Field<decimal>("PRIMARY_KEY_FIELD"),
    field1 = u.Field<decimal>("FIELD1"),
    field2=u.Field<decimal>("FIELD2"), … more

    Status: completed

    This has been fixed

  17. 10 votes

    implements/interface

    When Converting a c# class that implements an interface to VB

    The c# element (property/method) is converted to VB, but the Implements keyword and the name of the element being implemented is not generated. I guess in c# you do not explicitly declare the interface method being implemented, but in… more

    Status: declined
  18. 3 votes

    Fix dependencyProperty Bug

    The converter converts this code

    public static readonly DependencyProperty ChildSizeProperty
    = DependencyProperty.RegisterAttached("ChildSize", typeof(double), typeof(VirtualizingTilePanel),
    new FrameworkPropertyMetadata(200.0d, FrameworkPropertyMetadataOptions.AffectsMeasure |
    FrameworkPropertyMetadataOptions.AffectsArrange));

    to

    Public Shared ChildSizeProperty As DependencyProperty = DependencyProperty.RegisterAttached("ChildSize", GetType(Double), GetType(VirtualizingWrapPanel), New FrameworkPropertyMetadata(200, FrameworkPropertyMetadataOptions.AffectsMeasure Or FrameworkPropertyMetadataOptions.AffectsArrange))

    The vb code throws a exception when wpf tries to create a custom control with this… more

    Status: completed
  19. 4 votes

    While loop issues

    while ((bytes = input.Read(buffer,0,buffer.Length)) > 0)
    {

    }

    Status: completed
  20. 3 votes

    Error when submittng any code:

    Could not connect to http://localhost:12968/CodeConverter/ConverterService.svc. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:12968.

    Status: completed

    This was just a temporary outage

powered by UserVoice