Note that there are some explanatory texts on larger screens.

plurals
  1. POConsume a .NET Assembly from a classic ASP page
    primarykey
    data
    text
    <p>I have an old .net 2005 web site that has some asp pages and having object reference problem accessing .net dll. The maintenance task was handed down to me and the original developer is nowhere to be found :( I started at .Net already so I don't really master handling this dll hell kind of problem.</p> <p>On the arrow below is where I'm encourtering the "(0x80131500) Object reference not set to an instance of an object."</p> <pre><code>Set objCommon = Server.CreateObject("Wrapper.CommonFunctions") Dim machineBuilding ---&gt;&gt;&gt; If objCommon.IsMachineAccount(strLogin, machineBuilding) Then </code></pre> <p>I already followed these steps:</p> <ol> <li>regasm /tbl /codebase mycomdll.dll</li> <li>gacutil /i mycomdll.dll</li> <li>copy the mycomdll.dll to System32 directory</li> <li>From console, execute issreset</li> <li>If your dll is create in framework 2.0 create a "dllhost.exe.config" file in the system32 directory and put this:</li> </ol> <p><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;startup&gt; &lt;supportedRuntime version="v2.0.50727"/&gt; &lt;requiredRuntime version="v2.0.50727"/&gt; &lt;/startup&gt; &lt;/configuration&gt;</code></p> <p>6.- Restart IIS with issreset command</p> <p>and also these ones:</p> <ol> <li>Under project properties a. Under \application\assembly information i. Check “Make assembly Com-Visible”. b. Under build i. Check “Register for Com Interop”</li> <li>DO NOT sign it.</li> <li>Make sure that IUSR has full permissions to the file.</li> <li>Restart IIS via iisreset to flush any caches.</li> </ol> <p>And still not successful running the application. Any more ideas what to check or do? Thanks!</p> <p>Emir</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload