如何使用windows dll的refence构建Web应用程序。 [英] How to build web application with refence of windows dll.

查看:96
本文介绍了如何使用windows dll的refence构建Web应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨......



我正在使用Visual Studio 2012处理Web应用程序。我有一个问题,每当我在Web应用程序中添加一个特定的dll时正在开发环境中工作但在IIS上发布后无法正常工作。我已经检查了那个dll,发现它中有System.Windos.Forms的引用。



我的WEB应用程序中必须引用的dll引用可以告诉我有什么变化我需要在我的Web应用程序中进行操作,即使在发布代码之后也能使该dll工作。

Hi....

I am working on web application using Visual Studio 2012. I have one issue that whenever I add one particular dll in web application it is working in development environment but not working after publishing it on IIS. I have checked that dll and found it has reference of System.Windos.Forms in it.

That dll reference is must in my WEB application can anybody tell me what changes I need to do in my web application to make that dll work even after publishing the code.

推荐答案

如果您使用的是Windows窗体dll,那么您还没有开发网站正常。它仅在本地计算机上工作,因为客户端和服务器是相同的物理计算机,服务器代码将在您的本地帐户下运行。您必须停止使用相关的dll并使用正确的网站等价物,因为我假设代码需要访问桌面以显示某种对话框,并且由于对话框出现在服务器上,这将无法在已部署的网站上运行没有人能看到它。
If you are using windows forms dlls then you're not developing your website properly. It is only working on your local machine as client and server are the same physical machine and the server code will be running under your local account. You have to stop using the relevant dll and use proper website equivalents, as I am assuming the code needs access to the desktop to show a dialog of some sort, and that won't work on a deployed website as the dialog appears on the server where no-one can see it.


这篇关于如何使用windows dll的refence构建Web应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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