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

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

问题描述

我正在为公司内部网上的简单HTML表单提供一些ASP代码来为服务请求提供服务。代码需要从(COM)DLL中调用方法。我正在使用代码:

  myObject = Server.CreateObject(myDLL.myClass)

但是在这一行发生错误。我不知道dll是否在服务器上注册,但我怀疑它可能不是。我不知道如何找到这个。



如果没有注册,是否可能/最佳做法:

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

  2. 使用ASP代码安全地注册该DLL;或

  3. 我需要联系IT部门才能注册?

我担心该选项2可能会吓倒IT部门,也可能打破某些事情 - 但是我有一个截止日期,他们不太可能在此之前注册任何东西。



有没有什么办法可以使用dll而不涉及他们,纯粹使用ASP?



我也有此问题 ,这是我的首选方法,如果可能的话。这是相同的dll,它已经在所有客户端的机器上注册,但到目前为止,我一直无法让它通过IE内部网安全设置。 / p>

对此有任何帮助/意见/建议或我的其他主题将不胜感激。



感谢您的阅读。

解决方案

您需要注册DLL AFAIK,或者使用一个安装程序,或者使用regsvr32 (或类似)


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")

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. Use the dll without registering it on the server (I have the .dll file);
  2. Remotely register the dll safely using ASP code; or
  3. Do I need to contact the IT dept to get it registered?

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.

Is there any way I can use the dll without involving them, purely with ASP?

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.

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

Thanks for reading.

解决方案

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

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

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