Error 'Microsoft.CSharp.Runtimebinder.Runtimebinderexception' in System.Core.dll

Asked

Viewed 386 times

1

I am trying to debug a C# application and is showing this error:

Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
'Emulador AFO.vshost.exe' (CLR v4.0.30319: Emulador AFO.vshost.exe): Loaded 'Anonymously Hosted DynamicMethods Assembly'. 
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in System.Core.dll

Part of the code showing the error:

public EnvironmentForm()
{
    InitializeComponent();
    LoadingForm lForm = new LoadingForm();
    if (lForm.ShowDialog().ToString() != null)
    {
        #region <Show EnvironmentForm>
        this.SizeGripStyle = SizeGripStyle.Show;
        this.ShowIcon = true;
        this.ShowInTaskbar = true;
        this.WindowState = FormWindowState.Normal;
        #endregion
        ConnectedUsers = this.lbl_ConnectedUsers;
        Library.F.UpgradeConnectedUsersEvent();
        DB.m_Logger = new Logger(this.rBox_Logger);
        DB.CanLogger = this.cBox_Logger.Checked;
        SetIpDoor();
        return;
    }
    else Environment.Exit(0);
}

Does anyone know what it can be ?

  • On which line is the exception being generated ?

  • you’re in what visual studio? what have you tried?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.