Server.CreateObject Failed in Classic ASP

前端 未结 8 1047
抹茶落季
抹茶落季 2021-01-05 21:34

I created the ASP.NET dll with one function that i need to use in Classic ASP page.

I used the below code for creating object in classic asp page

set         


        
8条回答
  •  春和景丽
    2021-01-05 22:11

    There is another reason you might get the error "Server.CreateObject Failed". A COM Visible DLL does not behave the same as a regular .NET DLL when it is being loaded by COM. You can't expect it to load other DLLs that are sitting in the same directory as your DLL, or downloaded through the Nuget package manager. If you want to load other DLLs you have to register them in the global assembly cache (GAC).

    see: https://stackoverflow.com/a/23902131/2616170

    If the assembly doesn't have a strong name then you won't be able to register it in the GAC.

提交回复
热议问题