© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
25 replies
Seventy

❔ System.typeloadexception could not find method due to type load error

Code I am using:

        async void GamerMethod()
        {
            //Doing gamer things...


            await GamerSpace.Grabber.Should_Send_Hello_World_Message();
        }




        public static async Task Should_Send_Hello_World_Message()
        {
            var message = new DiscordMessage("Hello World!");
            var client = new DiscordWebhookClient("//my super cool url");
            await client.SendToDiscord(message);
            Assert.IsTrue(true);
        }
        async void GamerMethod()
        {
            //Doing gamer things...


            await GamerSpace.Grabber.Should_Send_Hello_World_Message();
        }




        public static async Task Should_Send_Hello_World_Message()
        {
            var message = new DiscordMessage("Hello World!");
            var client = new DiscordWebhookClient("//my super cool url");
            await client.SendToDiscord(message);
            Assert.IsTrue(true);
        }

Any ideas why i am getting that error?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

System.TypeLoadException
C#CC# / help
2y ago
❔ System.TypeLoadException
C#CC# / help
3y ago
Could not load type 'System.Web.HttpContext' from assembly
C#CC# / help
2y ago
❔ System.Data.OleDb.OleDbException: 'Could not find installable ISAM.' error
C#CC# / help
3y ago