使用DLL从ASP脚本的最佳方法 [英] Best way to use a dll from an ASP script

查看:98
本文介绍了使用DLL从ASP脚本的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是从我的公司的Intranet一个简单的HTML表单写一些ASP code到服务请求。在code需要调用从(COM)DLL方法。我使用的是code:

I'm writing some ASP code to service requests from a simple HTML form on my company's intranet. The code needs to call methods from a (COM) dll. I'm using the code:

myObject = Server.CreateObject("myDLL.myClass")

但它在这一行给了一个错误。我不知道如果DLL注册的服务器上,但我怀疑它可能不是。我不知道如何找到了这一点。

but it's giving an error at this line. I'm not sure if the dll is registered on the server, but I suspect it may not be. I'm not sure how to find this out.

如果它没有登记,是它可能/最佳实践:

If it's not registered, is it possible/best practice to:

  1. 使用DLL不注册到服务器上(我有.dll文件);

  2. 安全使用ASP code远程注册的dll;或

  3. 请我需要联系IT部门得到它注册?

我担心选项2会发飙IT部门出来,也可能碰坏 - 但我有一个最后期限,这是不可能的,他们会得到解决之前再注册任何

I'm worried that option 2 might freak the IT department out and also possibly break something - but I have a deadline and it's unlikely that they will get around to registering anything before then.

有什么办法,我可以使用DLL不涉及他们,纯粹与ASP?

我也得到了<一个href=\"http://stackoverflow.com/questions/5711602/activex-control-in-ie-intranet-zone-blocked-without-a-prompt\">this问题打开就通过在企业内部网的形式嵌入运行客户端的计算机上的DLL,的这是我的preferred方法,如果可能的话。的这是同一个DLL,而且它已登记在所有客户的机器,但到目前为止,我一直无法得到它通过IE Intranet安全设置。

I've also got this question open regarding running the dll on the client's computers by embedding in the intranet form, which is my preferred method if it's possible. It's the same dll, and it's already registered on all clients' machines but so far I've been unable to get it passed the IE intranet security settings.

任何帮助/意见/建议href=\"http://stackoverflow.com/questions/5711602/activex-control-in-ie-intranet-zone-blocked-without-a-prompt\">my其他线程将大大AP preciated。

ANY help/comments/suggestions on this or my other thread would be greatly appreciated.

感谢您的阅读。

推荐答案

您需要注册的DLL据我所知,无论是与一个安装程序,这样做,或手动REGSVR32(或类似)

you need to register the DLL AFAIK, either with a setup program that does it, or manually with regsvr32 (or similar)

这篇关于使用DLL从ASP脚本的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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