By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,688 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

DLL Referencing Wrong Directory

P: 13
Hello,

Up until now I've had all my code in code behind files or class files that were in the App_Code directory of the website. Well, with a new project I'm working on I created a seperate project in Visual Web Developer and put all my class files and datasets in that project and build it to a DLL.

I then add a reference to that DLL by browsing to the debug/bin folder of the project and any website locally will work with that DLL with no issue.

However, when I move the code to a dedicated server, I'm having an issue. I upload the website files first and then upload a copy of the DLL into the bin directory. The page throws an object not reference exception. In the error it shows the directory as what is on my local machine and not the bin directory of the website.

I've looked in the project with all my classes and I can't figure out how to build it as a final release and have it where I can put in the bin directory on any website and reference it that way.

If you can understand what I'm talking about, any help would be greatly appreciated.

Thanks!
Sep 16 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.