在asp.net中注册dll的代码

编程入门 行业动态 更新时间:2024-10-18 16:46:28
本文介绍了在asp中注册dll的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想创建一个应在单击按钮时注册dll的应用程序.

Hi, I want to create an application which should register a dll on click of a button.

推荐答案

我建​​议改进此问题,因为您的问题中有很多假设. 否1我假设您希望在将dll复制到服务器系统32目录的客户端后再执行regsvr32命令. 然后 假设您希望在客户端PC上注册: 您将需要创建一个clickonce(fulltrust)应用,该应用将使用其基本目录中的dll进行注册 假设您希望在服务器上注册它: 您将必须在asp网页上使用上传控件将文件上传到windir \ system32目录 然后,您将必须在oder中调用System.Diagnostics.Process类以运行将执行注册的控制台命令 希望对您有帮助 I would suggest improving the question because there are alot of assumtions into you question. no 1 i assume you wish to wun the regsvr32 command after copying the dll to the client of servers system 32 directory. Then Assuming you wish to registerit on the clients PC: You will need to create a clickonce(fulltrust) app that will do the registration with the dll in its base directory Assuming you wish to register it on the server: you will have to use an upload control on the asp web page upload the file to the windir\system32 directory Then you will have to call the System.Diagnostics.Process class in oder to run the console command that will do the registration Hoep this helps

更多推荐

在asp.net中注册dll的代码

本文发布于:2023-11-14 04:19:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586195.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:代码   asp   net   dll

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!