This is the head. This is a deal.
When deploying a beta copy of an ASP.NET application created using Delphi 2007 for .NET on a test server, I ran into an odd problem. The application failed to start because it could not load the correct version of the ADO.NET data provider that I used.
Only including a version of the old assembly in the bin directory will launch the application. However, I don't want to get attached to this higher .NET data provider, so I decided to find a solution to this problem.
I originally compiled the project using the assembly of the .net data provider used as Copy Local, which was supposed to force Delphi to use a copy of the version of the assembly that I selected when I added it to the Links folder in the project manager, the actual assembly that I chose, there was version 9.10.2.0, and this is the version of the assembly that appears in the bin directory, along with the application. However, at run time, the application tried to bundle an earlier version of the same assembly, 9.0.2.7.
(Actually, this problem occurs regardless of whether I am using the GAC Copy Local version, but I do not think it is a problem.)
While investigating this problem, I created a new project and added a link to assembly 9.10.2.0. However, both the .NET 2.0 configuration utility and Reflector showed that the application was compiled with reference to build 9.0.2.7.
GAC, , 9.0.2.7 9.10.2.0. 9.0.2.7 , GAC.
9.0.2.7. GAC. . , 9.10.2.0 , , - , . , , 9.10.2.0, , 9.0.2.7 .
Ive Delphi. ( ASP.NET). . Issam Alis AppManifest , , -, ASP.NET Delphi 2007 .NET.
, GAC 9.0.2.7, , Delphi, 9.0.2.7 . web.config, machine.config , . , Delphi , 9.10.2.0. (, Delphi, , .)
9.10.2.0 ( ) , , ( , -, ).
Ive ( ), . - ? , . Delphi .
Im, . , . , 9.0.2.7 GAC. , .
: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
c:\windows\microsoft.net\framework\v2.0.50727\aspnet_wp.exe
--- .
=== ===
LOG: = TRAINING8A\ASPNET
LOG: DisplayName = Advantage.Data.Provider, Version = 9.0.2.7, Culture = neutral, PublicKeyToken = e33137c86a38dc06
( )
LOG: Appbase = file:///C:/Inetpub/wwwroot/TestAdsVer2/
LOG: Initial PrivatePath = C:\Inetpub\wwwroot\TestAdsVer2\bin
: TestAdsVer2, Version = 1.0.3572.17384, Culture = , PublicKeyToken = null.
LOG: .
LOG: : C:\Inetpub\wwwroot\TestAdsVer2\web.config
LOG: : c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: : Advantage.Data.Provider, Version = 9.0.2.7, Culture = neutral, PublicKeyToken = e33137c86a38dc06
LOG: URL:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/testadsver2/07545aea/3d068a5/Advantage.Data.Provider.DLL.
LOG: URL:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/testadsver2/07545aea/3d068a5/Advantage.Data.Provider/Advantage.Data.Provider.DLL.
LOG: URL:///C:/Inetpub/wwwroot/TestAdsVer2/bin/Advantage.Data.Provider.DLL.
WRN: :
ERR: (hr = 0x80131040).
, , LanceSC, . , .
LanceSC
, , , . , , . . , - .NET - , . - . .
. , (5 2010 .), .NET(9.0.2.1). , . , . , gac. , MSBuild . . , .
Delphi 2007 ( , Delphi 2007, .NET. .
, . , . , .
, , .