且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用windows dll的refence构建Web应用程序。

更新时间:2023-11-14 18:47:46

如果您使用的是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.