如何导入一个dll到一个asp.net web应用程序的Web服务器上运行 [英] how to import a dll into a asp.net web application running on webserver

查看:120
本文介绍了如何导入一个dll到一个asp.net web应用程序的Web服务器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS 2010中创建一个DLL,我把它放到APP_ code文件夹中的Web服务器 然后我访问它通过尝试使用进口GetWebPageData

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

该dll是在VS下斌/调试项目,如果这意味着什么

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

推荐答案

您需要将DLL复制到,而不是( APP_ $ C $ç)文件夹中的Web服务器,甚至更好的 - 点击网站上的Visual Studio中添加引用,并添加您的DLL作为参考。 而且你应该也可能阅读一些有关ASP.NET基本面

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

下面是详细解释了ASP.NET编译的文章: 的http://www.west-wind.com/$p$psentations/AspNetCompilation/AspNetCompilation.asp

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

这篇关于如何导入一个dll到一个asp.net web应用程序的Web服务器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆