Question

Is it possible to call a function in a VB.Net dll without having registered the dll file? I need to call it from ASP Classic on shared hosting web server.

Was it helpful?

Solution

The only way to call a VB.NET DLL from Classic ASP is to make it a COM object and call it as such.

OTHER TIPS

Assuming the host also support .NET you can follow those steps to achieve what you want:

  1. Create new ASP.NET web application
  2. Add reference to that DLL
  3. Build .aspx web form that call the function in its Page_Load call it for example Func.aspx
  4. 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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top