Call function in VB.Net DLL without registering the DLL
Is it possible to call a function in a VB.Net dll without开发者_Python百科 having registered the dll file? I need to call it from ASP Classic on shared hosting web server.
The only way to call a VB.NET DLL from Classic ASP is to make it a COM object and call it as such.
Assuming the host also support .NET you can follow those steps to achieve what you want:
- Create new ASP.NET web application
- Add reference to that DLL
- Build .aspx web form that call the function in its Page_Load call it for example
Func.aspx
- In the classic ASP use XMLHTTP to send request to
Func.aspx
thus invoking the function and parse the results if needed.
I've done similar thing in the past to resize images on the fly from classic ASP without third party component so the concept itself is working.
精彩评论