Re: unable to load dll db2app.dll . Error using DB2 in ASP.NET application. - 04-05-2005 , 08:22 AM
Unable to load DLL 'db2app.dll'.
I am not going the standard Visual Studio, add a reference route. I am
using the freebie Visual Studio Developer Express from Microsoft. And I
cant figure out how to add references, so I was told to look in the GAC
( the /WINNT/Assembly directory ) and retrieve the PublicKeyToken and
Version of the DB2 assembly. I then specify those values in an
"@Assembly" directive at the top of the .aspx file.
<%@ Assembly Name="IBM.Data.DB2, Culture=neutral,
Version=188.8.131.52, PublicKeyToken=7c307b91aa13d208" %>
I dont think there is anything wrong with this approach. I actually
prefer the manual step instead of relying on GUI magic. But there is a
lot I dont know, so I dont know if refering to an assembly this way is
ok or not.
Re: unable to load dll db2app.dll . Error using DB2 in ASP.NET application. - 04-05-2005 , 03:12 PM
This issue ended up being caused by two problems. The first was that
DB2Connection was not part of the db2 trial that I had downloaded. I
told to use the Enterprise Server for Windows. The 2nd problem was due
the user ( ASPNET ) that the IIS server on my PC runs as not having
authority to files in the DB2 directory.
This was the trace that the IBM support tech had me run that identified
the authority problem:
db2trc on -f trace.dmp
<reproduce the problem-try to connect from ASP .NET>