Board index » delphi » bdpDataAdapter Problem

bdpDataAdapter Problem


2005-10-30 04:50:23 PM
delphi129
I've deployed an asp.net application (built in Delphi2005) to a server.
When I run it, I get the following error:
One or more of the types in the assembly unable to load.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: Borland.Data.Common.BdpException: One or more of the
types in the assembly unable to load.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[BdpException: One or more of the types in the assembly unable to load.]
Borland.Data.Provider.BdpDataAdapter.e() +1025
Borland.Data.Provider.BdpDataAdapter.EndInit() +43
WebForm1.TWebForm1.InitializeComponent()
WebForm1.TWebForm1.OnInit(EventArgs e)
System.Web.UI.Control.InitRecursive(Control namingContainer) +240
System.Web.UI.Page.ProcessRequestMain() +197
I'm using Interbase7.5 as the database and have Borland.Data.Common.dll,
Borland.Data.Provider.dll, Borland.Data.Interbase.dll, and bdpint20.dll in
the bin directory of the application.
I'm at a loss and would apprecitate any help
 
 

Re:bdpDataAdapter Problem

Hi T.J.
Quote
I'm using Interbase7.5 as the database and have Borland.Data.Common.dll,
Borland.Data.Provider.dll, Borland.Data.Interbase.dll, and bdpint20.dll in
the bin directory of the application.
Just double-checking: is the InterBase client also installed on the web
server? (gds32.dll specifically).
Groetjes,
Bob Swart (aka Dr.Bob - www.DrBob42.com)
--
Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner
Delphi 2005 self-study training books: www.drbob42.com/training
 

Re:bdpDataAdapter Problem

I replied to this earlier, but I think I did wrong and it didn't show up.
Anyway, I have Interbase 7.5 on the server. I think it is client/server.
I got by the error message mentioned by installing another dll in the Bin
directory. I now have a new error message as follows:
Exception Details: System.Reflection.ReflectionTypeLoadException: One or
more of the types in the assembly unable to load
I'm beginning to wonder if there is a more basic problem (or something
missing) on the server. How come I have to add these dlls manually, and why
doesn't the Deployment manager do that, if necessary?
T.J.
"Bob Swart" <XXXX@XXXXX.COM>writes
Quote
Hi T.J.

>I'm using Interbase7.5 as the database and have Borland.Data.Common.dll,
>Borland.Data.Provider.dll, Borland.Data.Interbase.dll, and bdpint20.dll
>in the bin directory of the application.

Just double-checking: is the InterBase client also installed on the web
server? (gds32.dll specifically).

Groetjes,
Bob Swart (aka Dr.Bob - www.DrBob42.com)

--
Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner
Delphi 2005 self-study training books: www.drbob42.com/training
 

Re:bdpDataAdapter Problem

Hi T.J.
Quote
Exception Details: System.Reflection.ReflectionTypeLoadException: One or
more of the types in the assembly unable to load
This is the same error message you mentioned in the start of this
thread, right?
Do you use Delphi 2005 Update #2 or later? Where did you find the BDP
assemblies that you deployed to the web server? Did you do the same
thing I have described in www.drbob42.com/examines/examin66.htm
(substituting InterBase for SQL Server, it should still be the same - so
Borland.Data.Interbase.dll and btpint20.dll).
Did you also set the version info to 2.2.0.0 (instead of 2.0.0.0 -
especially if it turns out that the 2.0.0.0 assemblies also exist on the
web server, in the GAC for example!)
Quote
T.J.
Groetjes,
Bob Swart (aka Dr.Bob - www.DrBob42.com)
--
Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner
Delphi 2005 self-study training books: www.drbob42.com/training
 

Re:bdpDataAdapter Problem

Quote
>Exception Details: System.Reflection.ReflectionTypeLoadException: One or
>more of the types in the assembly unable to load

This is the same error message you mentioned in the start of this thread,
right?
That's a different error message than the first one, which I fixed by moving
some dlls to the Bin directory.
Quote
Did you do the same
thing I have described in www.drbob42.com/examines/examin66.htm
(substituting InterBase for SQL Server, it should still be the same - so
Borland.Data.Interbase.dll and btpint20.dll).
Did you also set the version info to 2.2.0.0 (instead of 2.0.0.0 -
especially if it turns out that the 2.0.0.0 assemblies also exist on the
web server, in the GAC for example!)
I did get the application to work by changing the version info in the
web.config file as shown in your article. I also did the Copy Local from
the References section as also mentioned, so I am not sure which did the job.
Quote
Do you use Delphi 2005 Update #2 or later? Where did you find the BDP
assemblies that you deployed to the web server?
I'm using Update 3, and I did get the assemblies from Common Files\Borland
Shared\BDS\3.0\Shared Assemblies directory. I see in your article that you
shouldn't get bdpXXX20.dll from there, but what about the others.
I'm using Windows2000 Server on the server machine. Would the "proper" way
be to have these assemblies in the GAC?
On a side note, I have a forum where I answer questions on a subject other
than computers (obviously), and it seems like I am always answering questions
that have already clearly been answered eleswhere in the forum. However, on
this side of the fence, as a novice, it is hard to filter through the
messages because you don't know what you don't know (and hence, what topics
apply), so thanks for your patience. I see that your web site is going to
be a big help to me, so I will be studying it for a while and may never need
to ask another question. :)
T.J.
Quote

>T.J.

Groetjes,
Bob Swart (aka Dr.Bob - www.DrBob42.com)

--
Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner
Delphi 2005 self-study training books: www.drbob42.com/training