question

SabirAmin-8621 avatar image
0 Votes"
SabirAmin-8621 asked JackJJun-MSFT commented

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.

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.

dotnet-csharp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SabirAmin-8621,Welcome to Microsoft Q&A, Could you tell me what is your current project type? Also, If possible, Please provide the related code you are using about the above question.

We are waiting for your update.

0 Votes 0 ·

1 Answer

SabirAmin-8621 avatar image
0 Votes"
SabirAmin-8621 answered JackJJun-MSFT commented

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SabirAmin-8621, thanks for the feedback, It is hard to reproduce your problem based on the current code. Then, do you add the reference or nuget about Dxgraphics? If so, Please provide it.

0 Votes 0 ·