Hi,
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.
On the arrow below is where I'm encourtering the "(0x80131500) Object reference not set to an instance of an object."
Set objCommon = Server.CreateObject("Wrapper.CommonFunctions")
Dim machineBuilding
--->>> If objCommon.IsMachineAccount(strLogin, machineBuilding) Then
I already followed these steps:
- regasm /tbl /codebase mycomdll.dll
- gacutil /i mycomdll.dll
- copy the mycomdll.dll to System32 directory
- From console, execute issreset
- If your dll is create in framework 2.0 create a "dllhost.exe.config" file in the system32 directory and put this:
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/>
<requiredRuntime version="v2.0.50727"/>
</startup>
</configuration>
6.- Restart IIS with issreset command
and also these ones:
- Under project properties a. Under \application\assembly information i. Check “Make assembly Com-Visible”. b. Under build i. Check “Register for Com Interop”
- DO NOT sign it.
- Make sure that IUSR has full permissions to the file.
- Restart IIS via iisreset to flush any caches.
And still not successful running the application. Any more ideas what to check or do? Thanks!
Emir