I made a class in an external vb file. I want 3 pages to import this class. It works fine in Visual Studio.net, but when I copy my files to the server it can not load the class and I get an error. Thanks!
Three answers:
anonymous
2007-06-16 14:12:13 UTC
Have you checked that the assemblies are in the Bin folder on your server?
Smutty
2007-06-16 13:03:18 UTC
What do you mean by external file? Is it part of a another application which you referenced?
If the file is part of another application, then you should compile and add the DLL to your main application's (web application's) bin folder.
If the file is part of the same application, it will compile within the your application's DLL and you should have no problem.
If you are using ASP.NET 2.0 and your class is within the App_Code folder, you might have to copy this folder to your web server according to your deployment mode of the web application.
Hope this helps.
redstorm
2007-06-16 12:58:03 UTC
What is the error?
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Search results for 'VB.net, can't access my custom class?' (Questions and Answers)