dbTalk Databases Forums  

Re: unable to load dll db2app.dll . Error using DB2 in ASP.NET application.

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Re: unable to load dll db2app.dll . Error using DB2 in ASP.NET application. in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shiggy
 
Posts: n/a

Default Re: unable to load dll db2app.dll . Error using DB2 in ASP.NET application. - 04-05-2005 , 07:51 AM






did you initalize command line enviroment for both visual stuido and
db2?


Reply With Quote
  #2  
Old   
Steve Richter
 
Posts: n/a

Default Re: unable to load dll db2app.dll . Error using DB2 in ASP.NET application. - 04-05-2005 , 08:22 AM







shiggy wrote:
Quote:
did you initalize command line enviroment for both visual stuido and
db2?
just did that and I got the same results ( sad face )
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=8.1.2.1, 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.

thanks,

-Steve



Reply With Quote
  #3  
Old   
Steve Richter
 
Posts: n/a

Default 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
was
told to use the Enterprise Server for Windows. The 2nd problem was due
to
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>
db2trc off

-Steve


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.