简体   繁体   中英

how to import a dll into a asp.net web application running on webserver

I have a dll created in VS 2010. i put it into the app_code folder on the webserver and then i accesses it by trying to use imports GetWebPageData

the dll is in the vs project under bin/debug if that means anything

You need to copy the DLL to the bin (instead of app_code ) folder of the web server, and even better - click on Add Reference on the Web Site in Visual Studio and add your DLL as a reference. And you should also probably read some more about ASP.NET fundamentals

Here is an article that explains ASP.NET compilation in detail: http://www.west-wind.com/presentations/AspNetCompilation/AspNetCompilation.asp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM