Could not load file or assembly 'DXGraphics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Sabir Amin 1 Reputation point
2022-05-19T14:49:53.443+00:00

Could not load file or assembly 'DXGraphics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

  1. Hide Call Stack

at Kingdoms.MyFormBase..ctor()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

I am getting this error, please help in solving it.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,306 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sabir Amin 1 Reputation point
    2022-05-20T04:39:59.09+00:00

    namespace EducationGame
    {
    // Token: 0x0200020F RID: 527
    public partial class JoiningWorldPopup : global::Kingdoms.MyFormBase
    {
    // Token: 0x06001648 RID: 5704 RVA: 0x00017997 File Offset: 0x00015B97
    protected override void Dispose(bool disposing)
    {
    if (disposing && this.components != null)
    {
    this.components.Dispose();
    }
    base.Dispose(disposing);
    }

        // Token: 0x06001649 RID: 5705 RVA: 0x001605F0 File Offset: 0x0015E7F0
        private void InitializeComponent()
        {
            new global::System.ComponentModel.ComponentResourceManager(typeof(global::Kingdoms.JoiningWorldPopup));
            this.label1 = new global::System.Windows.Forms.Label();
            this.lblCounty = new global::System.Windows.Forms.Label();
            this.label2 = new global::System.Windows.Forms.Label();
            base.SuspendLayout();
            this.label1.BackColor = global::ARGBColors.Transparent;
            this.label1.Location = new global::System.Drawing.Point(28, 52);
            this.label1.Name = "label1";
            this.label1.Size = new global::System.Drawing.Size(305, 17);
            this.label1.TabIndex = 0;
            this.label1.Text = "Trying to Find Village in";
            this.label1.TextAlign = global::System.Drawing.ContentAlignment.TopCenter;
            this.lblCounty.BackColor = global::ARGBColors.Transparent;
            this.lblCounty.Location = new global::System.Drawing.Point(28, 76);
            this.lblCounty.Name = "lblCounty";
            this.lblCounty.Size = new global::System.Drawing.Size(305, 20);
            this.lblCounty.TabIndex = 1;
            this.lblCounty.Text = "County";
            this.lblCounty.TextAlign = global::System.Drawing.ContentAlignment.TopCenter;
            this.label2.BackColor = global::ARGBColors.Transparent;
            this.label2.Location = new global::System.Drawing.Point(28, 101);
            this.label2.Name = "label2";
            this.label2.Size = new global::System.Drawing.Size(305, 17);
            this.label2.TabIndex = 2;
            this.label2.Text = "Please wait, this may take a few moments.";
            this.label2.TextAlign = global::System.Drawing.ContentAlignment.TopCenter;
            base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.None;
            base.ClientSize = new global::System.Drawing.Size(361 * global::Kingdoms.InterfaceMgr.UIScale, 139 * global::Kingdoms.InterfaceMgr.UIScale);
            base.Controls.Add(this.label2);
            base.Controls.Add(this.lblCounty);
            base.Controls.Add(this.label1);
            base.Icon = StrongholdKingdoms.Resources.Kingdoms_Properties_Resources.shk_icon;
            base.Name = "JoiningWorldPopup";
            this.Text = "Finding Village";
            base.Controls.SetChildIndex(this.label1, 0);
            base.Controls.SetChildIndex(this.lblCounty, 0);
            base.Controls.SetChildIndex(this.label2, 0);
            base.ResumeLayout(false);
        }
    
        // Token: 0x04002695 RID: 9877
        private global::System.ComponentModel.IContainer components;
    
        // Token: 0x04002696 RID: 9878
        private global::System.Windows.Forms.Label label1;
    
        // Token: 0x04002697 RID: 9879
        private global::System.Windows.Forms.Label lblCounty;
    
        // Token: 0x04002698 RID: 9880
        private global::System.Windows.Forms.Label label2;
    }
    

    }

    Hello. It is the code inside the Designer.cs file of MyFormBase. The above is the code. When I want to open the designer, it shows this error for Dxgraphics.