Sign in to follow this  

A non-existant existant reference

This topic is 3320 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So, I am making a program for Twitter by using the Twitterizer library. I have the DLL referenced but, when it calls from it, the program crashes and says it can't find it. I checked the debug and release folder, it is in there, it is referenced. (I am using C# by the way.) Here is the code that it crashes on:
using Twitterizer.Framework;

...

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text != "" && textBox2.Text != "")
            {
                twit = new Twitter(textBox1.Text, textBox2.Text);
                if (remember == true)
                {
                    user = textBox1.Text;
                    pass = textBox2.Text;
                }
                else
                {
                }
                login(false);
            }
            else
            {
                label3.Text = "User/Pass is empty! :O";
            }
        }

Share this post


Link to post
Share on other sites
Simply referencing the DLL in your project is not enough. When you start the debugger or the release executable you have to make sure the DLL file is located in the same folder as the executable. (Most likely bin/debug while debugging.)

Is that the case?

Share this post


Link to post
Share on other sites
Quote:
Original post by tyfius
Simply referencing the DLL in your project is not enough. When you start the debugger or the release executable you have to make sure the DLL file is located in the same folder as the executable. (Most likely bin/debug while debugging.)

Is that the case?


Yes, it is. I checked. It is quite odd, I have never had this problem with other things I have done. (Even though, that is very few.)

Share this post


Link to post
Share on other sites

This topic is 3320 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this