question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error DiscordRPC.dll'. Cannot find or open the PDB file.

i have the pdb file within the output folder

this is my program.cs file

`class Program { public static DiscordRpcClient client;

    static void Main(string[] args)
    {
        client = new DiscordRpcClient("id", true, 1);

        //Subscribe to events
        client.OnPresenceUpdate += (sender, e) =>
        {
            Console.WriteLine("Received Update! {0}", e.Presence);
        };

        //Connect to the RPC
        client.Initialize();

        //Set the rich presence
        client.SetPresence(new RichPresence()
        {
            Details = "csharp example",
            State = "csharp example",
            Assets = new Assets()
            {
                LargeImageKey = "removed",
                LargeImageText = "removed",
                SmallImageKey = ""
            }
        });
        Console.ReadLine();
    }
}`

i dont have any idea what the problem is

Kind regards, Phil

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:26

github_iconTop GitHub Comments

1reaction
ghostcommented, Aug 20, 2018

Try to compile the dll with visual studio. Not with the build script. And do not use the native one

0reactions
DopeDealerscommented, Aug 21, 2018

Sorry for the very late reply, but If i set the RPC inside of the init class etc.

How would i set the details of the RPC and state when a user clicks a button

this is the new rpc thing im using

private static RichPresence presence = new RichPresence() { Details = "", State = "", Assets = new Assets() { LargeImageKey = "icon", LargeImageText = "temp", SmallImageKey = "temp", SmallImageText = "temp" } };

edit: i checked the example rpc client and it worked when i tried that, have a great day hampusm!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASP.NET Core fundamentals overview
ASP.NET Core apps created with the web templates contain the application startup code in the Program.cs file. The Program.cs file is where:.
Read more >
ASP.NET Core - Program.cs
Learn about program.cs in ASP.NET Core application. ASP.NET Core web application is actually a console project which starts to execute from the Main() ......
Read more >
What is Program.cs file in ASP.Net Core project?
In an ASP.NET application, the Program.cs file is the entry point of the application. It is a C# file that contains a Main...
Read more >
Program.cs in ASP.NET Core
In this article, we will look at the role of program.cs in ASP.NET Core. It is the entry point of our app, where...
Read more >
C# console app template generates top-level statements
To follow an existing tutorial, add any new statements to the Program.cs file generated by the template. You can imagine that the statements ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found