在asp.net中注册dll的代码 [英] Code to register a dll in asp.net

查看:73
本文介绍了在asp.net中注册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.net网页上使用上传控件将文件上传到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.net 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的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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